X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FApplication.h;h=cf82776039e98217d779f2a013475fd395c27f8e;hb=5249eaaa60b0f0dae2f59d948758fdcae005e3a0;hp=df0be95493e4cbe5ff2bcbdf71434ec5c7413e66;hpb=7ac700920f0de8165b834010e211517098afbe14;p=lyx.git diff --git a/src/frontends/Application.h b/src/frontends/Application.h index df0be95493..cf82776039 100644 --- a/src/frontends/Application.h +++ b/src/frontends/Application.h @@ -18,7 +18,7 @@ #include "support/strfwd.h" -#include +#include #include @@ -59,7 +59,7 @@ initialisation should be done before the instanciation of this class. | GuiView-1 (one or more in case of split-view mode). | | - | + | | | | | | WorkArea-1-1-1 (M1-1 WorkAreas, M1-1 <= N) | | | | @@ -73,7 +73,7 @@ initialisation should be done before the instanciation of this class. | | | | | | | Cursor | | - | + | | GuiView-2 (one or more in case of split-view mode). | | @@ -216,12 +216,12 @@ public: * passing Color_white returns "ffffff". */ virtual std::string const hexName(ColorCode col) = 0; - + /** * add a callback for socket read notification * @param fd socket descriptor (file/socket/etc) */ - typedef boost::function SocketCallback; + typedef std::function SocketCallback; virtual void registerSocketCallback(int fd, SocketCallback func) = 0; /** @@ -233,6 +233,8 @@ public: virtual bool searchMenu(FuncRequest const & func, docstring_list & names) const = 0; + virtual bool hasBufferView() const = 0; + /// \return the icon file name for the given action. static docstring iconName(FuncRequest const & f, bool unknown); /// \return the math icon name for the given command. @@ -251,6 +253,8 @@ public: /// A started long operation is still in progress ? virtual bool longOperationStarted() = 0; + // Add a buffer to the current view, do not switch to it. + virtual bool unhide(Buffer * buf) = 0; }; /// Return the list of loadable formats.