]> 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 11f7ead1e18c345a6c9ee5e054f407ee97ea411a..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
@@ -166,6 +167,8 @@ public:
        /// \name GuiBufferDelegate.
        //@{
        void resetAutosaveTimers();
+       // shows an error list
+       // if from_master is true, show master's error list
        void errors(std::string const &, bool from_master = false);
        void structureChanged();
        void updateTocItem(std::string const &, DocIterator const &);
@@ -233,6 +236,8 @@ private Q_SLOTS:
        ///
        void resetWindowTitle();
 
+       ///
+       void checkCancelBackground();
        ///
        void on_currentWorkAreaChanged(GuiWorkArea *);
        ///
@@ -370,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
@@ -470,6 +482,9 @@ private:
        /// Statusbar widget that shows version control status
        QLabel * version_control_;
 
+       /// The rate from which the actual zoom value is calculated
+       /// from the default zoom pref
+       double zoom_ratio_ = 1.0;
        /// Minimum zoom percentage
        static int const zoom_min_ = 10;