]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.h
adjust
[lyx.git] / src / buffer_funcs.h
index 350f438161a1b0a14a75a357ba9988704590ac70..1316fc1afd07996c4fa90d022ef823e68a0106e7 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef BUFFER_FUNCS_H
 #define BUFFER_FUNCS_H
 
-#include "lyxlayout_ptr_fwd.h"
 #include "support/docstring.h"
 
 #include <string>
@@ -28,6 +27,12 @@ class ErrorList;
 class TeXErrors;
 class ParIterator;
 
+
+/** 
+ * Returns true if the file is already loaded into a buffer.
+ */
+bool checkIfLoaded(support::FileName const & fn);
+
 /**
  *  Loads a LyX file \c filename into \c Buffer
  *  and \return success status.
@@ -41,8 +46,8 @@ bool loadLyXFile(Buffer *, support::FileName const & filename);
  */
 Buffer * checkAndLoadLyXFile(support::FileName const & filename);
 
-/* Make a new file (buffer) with name \c filename based on a template
- * named \c templatename
+/** Make a new file (buffer) with name \c filename based on a template
+ *  named \c templatename
  */
 Buffer * newFile(std::string const & filename, std::string const & templatename,
                 bool isNamed = false);
@@ -59,9 +64,18 @@ int countWords(DocIterator const & from, DocIterator const & to);
 /// updates all counters
 void updateLabels(Buffer const &, bool childonly = false);
 
+///
+void updateLabels(Buffer const &, ParIterator &);
+
 ///
 void checkBufferStructure(Buffer &, ParIterator const &);
 
+///
+textclass_type defaultTextclass();
+
+///
+void loadChildDocuments(Buffer const & buffer);
+
 } // namespace lyx
 
 #endif // BUFFER_FUNCS_H