]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkAreaManager.h
Check whether a class is known before loading it
[lyx.git] / src / frontends / WorkAreaManager.h
index 7b7e715fd194e8dd44090a62449edb307fd146b3..0434074ab45769fa9944972a304f1c4bbf5e0c87 100644 (file)
@@ -15,6 +15,9 @@
 #include <list>
 
 namespace lyx {
+
+class Buffer;
+
 namespace frontend {
 
 class WorkArea;
@@ -38,10 +41,12 @@ public:
        void redrawAll(bool update_metrics);
        ///
        void closeAll();
-       /// This function is called when the buffer readonly status change.
-       void setReadOnly(bool);
-       /// Update window titles of all users.
+       /// Update window titles of all users and the external modifications
+       /// warning.
        void updateTitles();
+       /// If there is no work area, create a new one in the current view using the
+       /// buffer buf. Returns false if not possible.
+       bool unhide(Buffer * buf);
 
 private:
        typedef std::list<WorkArea *>::iterator iterator;