#include "support/strfwd.h"
#include "support/types.h"
-#include "support/SignalSlot.h"
#include <list>
#include <set>
class DispatchResult;
class DocIterator;
class docstring_list;
-class ErrorItem;
class ErrorList;
class FuncRequest;
class FuncStatus;
class Font;
class Format;
class Lexer;
-class LyXRC;
class Text;
class LyXVC;
class LaTeXFeatures;
/// return true if the main lyx file does not need saving
bool isClean() const;
///
- bool isBakClean() const;
- ///
bool isDepClean(std::string const & name) const;
/// whether or not disk file has been externally modified
/// mark the main lyx file as not needing saving
void markClean() const;
- ///
- void markBakClean() const;
-
///
void markDepClean(std::string const & name);
///
bool isMultiLingual() const;
+ ///
+ std::set<Language const *> getLanguages() const;
///
BufferParams & params();
bool isExportableFormat(std::string const & format) const;
///
- typedef std::vector<std::pair<InsetRef *, ParIterator> > References;
+ typedef std::vector<std::pair<Inset *, ParIterator> > References;
References & references(docstring const & label);
References const & references(docstring const & label) const;
void clearReferenceCache() const;
WordLangTuple & word_lang, docstring_list & suggestions) const;
private:
- /// search for macro in local (buffer) table or in children
- MacroData const * getBufferMacro(docstring const & name,
- DocIterator const & pos) const;
- /** Update macro table starting with position of it
- \param it in some text inset
- */
- void updateMacros(DocIterator & it,
- DocIterator & scope) const;
- ///
- void setLabel(ParIterator & it, UpdateType utype) const;
- ///
- void collectRelatives(BufferSet & bufs) const;
-
///
bool readFileHelper(support::FileName const & s);
///
*/
ReadStatus readFile(Lexer &, support::FileName const & filename,
bool fromString = false);
-
- /** If we have branches that use the file suffix
- feature, return the file name with suffix appended.
- */
- support::FileName exportFileName() const;
+ ///
+ void getLanguages(std::set<Language const *> &) const;
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
Impl * const d;
- ///
- frontend::GuiBufferDelegate * gui_;
-
- /// This function is called when the buffer structure is changed.
- Signal structureChanged_;
- /// This function is called when some parsing error shows up.
- //Signal errors(std::string const &) = 0;
- /// This function is called when some message shows up.
- //Signal message(docstring const &) = 0;
- /// This function is called when the buffer busy status change.
- //Signal setBusy(bool) = 0;
- /// Reset autosave timers for all users.
- Signal resetAutosaveTimers_;
};