]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiView.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiView.h
index 2d0ad0097aabf87f3a318821ba1fd7680d2fcebf..007e4f9c196e0a14729777e4b241b5b769221f60 100644 (file)
@@ -105,7 +105,8 @@ public:
        BufferView const * documentBufferView() const;
 
        void newDocument(std::string const & filename,
-               bool fromTemplate);
+                        std::string templatefile = std::string(),
+                        bool fromTemplate = false);
 
        /// display a message in the view
        /// could be called from any thread
@@ -235,6 +236,8 @@ private Q_SLOTS:
        ///
        void resetWindowTitle();
 
+       ///
+       void checkCancelBackground();
        ///
        void on_currentWorkAreaChanged(GuiWorkArea *);
        ///
@@ -372,14 +375,21 @@ private:
        ///
        void toggleFullScreen();
        ///
-       void insertLyXFile(docstring const & fname);
+       void insertLyXFile(docstring const & fname, bool ignorelang = false);
        ///
        /// Open Export As ... dialog. \p iformat is the format the
        /// filter is initially set to.
        bool exportBufferAs(Buffer & b, docstring const & iformat);
 
        ///
-       enum RenameKind { LV_WRITE_AS, LV_VC_RENAME, LV_VC_COPY };
+       enum RenameKind {
+               LV_WRITE_AS,
+               LV_WRITE_AS_TEMPLATE,
+               LV_VC_RENAME,
+               LV_VC_COPY,
+       };
+       /// Get a path for LFUN_BUFFER_WRITE_AS_TEMPLATE
+       std::string const getTemplatesPath(Buffer & buf);
        /// Save a buffer as a new file.
        /**
        Write a buffer to a new file name and rename the buffer