X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FWorkAreaManager.h;h=0434074ab45769fa9944972a304f1c4bbf5e0c87;hb=0d54d3b762e4aae2450d218971fc667448a0e164;hp=00f7de53fe3eec9eb63678a395f617dcad161192;hpb=fe8bce66763174f67f8546cb51008e2bc8863144;p=lyx.git diff --git a/src/frontends/WorkAreaManager.h b/src/frontends/WorkAreaManager.h index 00f7de53fe..0434074ab4 100644 --- a/src/frontends/WorkAreaManager.h +++ b/src/frontends/WorkAreaManager.h @@ -15,6 +15,9 @@ #include namespace lyx { + +class Buffer; + namespace frontend { class WorkArea; @@ -28,27 +31,26 @@ class WorkArea; class WorkAreaManager { public: + /// WorkAreaManager() {} - /// void add(WorkArea * wa); - /// void remove(WorkArea * wa); - /// - void redrawAll(); - + void redrawAll(bool update_metrics); /// void closeAll(); - - /// This function is called when the buffer readonly status change. - virtual void setReadOnly(bool); - - /// Update window titles of all users. - virtual void updateTitles(); + /// 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::iterator iterator; + /// std::list work_areas_; };