]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / GuiDocument.h
index ea87a21bc34eb8fe8784187cb2b480899a334174..ea9924effccaf172720296d881d87027d54ed42c 100644 (file)
@@ -34,6 +34,7 @@
 #include "ui_PDFSupportUi.h"
 #include "ui_ModulesUi.h"
 #include "ui_OutputUi.h"
+#include "ui_ListingsSettingsUi.h"
 
 #include <list>
 #include <map>
@@ -87,12 +88,14 @@ private Q_SLOTS:
        void useDefaultsClicked();
        void setLSpacing(int);
        void setMargins(bool);
-       void setCustomPapersize(int);
+       void papersizeChanged(int);
        void setColSep();
        void setCustomMargins(bool);
        void romanChanged(int);
        void sansChanged(int);
        void ttChanged(int);
+       void setIndent(int);
+       void enableIndent(bool);
        void setSkip(int);
        void enableSkip(bool);
        void portraitChanged();
@@ -105,6 +108,7 @@ private Q_SLOTS:
        void changeBackgroundColor();
        void deleteBackgroundColor();
        void xetexChanged(bool);
+       void branchesRename(docstring const &, docstring const &);
 private:
        /// validate listings parameters and return an error message, if any
        QString validateListingsParameters();
@@ -121,6 +125,7 @@ private:
        UiWidget<Ui::PDFSupportUi> *pdfSupportModule;
        UiWidget<Ui::ModulesUi> *modulesModule;
        UiWidget<Ui::OutputUi> *outputModule;
+       UiWidget<Ui::ListingsSettingsUi> *listingsModule;
        PreambleModule * preambleModule;
        
        GuiBranches * branchesModule;
@@ -211,6 +216,10 @@ private:
        bool providesSC(std::string const & font) const;
        /// does this font provide size adjustment?
        bool providesScale(std::string const & font) const;
+       ///
+       void executeBranchRenaming() const;
+       ///
+       void setCustomPapersize(bool custom);
 private:
        ///
        void loadModuleInfo();
@@ -220,6 +229,8 @@ private:
        BufferParams bp_;
        /// List of names of available modules
        std::list<modInfoStruct> moduleNames_;
+       ///
+       std::map<docstring, docstring> changedBranches_;
 };