X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiDocument.h;h=0bfbc1692e9512cd28562f49892729f0f30bc981;hb=be5965ae9183ebd17e71b74d4721520d85be6e6c;hp=69067df6e7a7449f9809e0990b5e3f97b602b1c1;hpb=1e947e3a18f3676c527684affa96cd41aa61345c;p=lyx.git diff --git a/src/frontends/qt4/GuiDocument.h b/src/frontends/qt4/GuiDocument.h index 69067df6e7..0bfbc1692e 100644 --- a/src/frontends/qt4/GuiDocument.h +++ b/src/frontends/qt4/GuiDocument.h @@ -120,7 +120,9 @@ private Q_SLOTS: void deleteNoteFontColor(); void changeBoxBackgroundColor(); void deleteBoxBackgroundColor(); + void languageChanged(int); void osFontsChanged(bool); + void mathFontChanged(int); void branchesRename(docstring const &, docstring const &); private: /// validate listings parameters and return an error message, if any @@ -174,8 +176,6 @@ private: /// void setLayoutComboByIDString(std::string const & idString); - /// available classes - GuiIdListModel classes_model_; /// available modules GuiIdListModel modules_av_model_; /// selected modules @@ -227,14 +227,14 @@ private: void setLanguage() const; /// void saveAsDefault() const; - /// - bool isFontAvailable(std::string const & font) const; /// does this font provide Old Style figures? - bool providesOSF(std::string const & font) const; + bool providesOSF(QString const & font) const; /// does this font provide true Small Caps? - bool providesSC(std::string const & font) const; + bool providesSC(QString const & font) const; /// does this font provide size adjustment? - bool providesScale(std::string const & font) const; + bool providesScale(QString const & font) const; + /// does this font provide an alternative without math? + bool providesNoMath(QString const & font) const; /// void executeBranchRenaming() const; /// @@ -245,6 +245,18 @@ private: /// void updateUnknownBranches(); /// + void updateTexFonts(); + /// + void updateMathFonts(QString const & rm); + /// + void updateFontOptions(); + /// + bool ot1() const; + /// + bool completeFontset() const; + /// + bool noMathFont() const; + /// BufferParams bp_; /// List of names of available modules std::list moduleNames_; @@ -287,7 +299,7 @@ public: LocalLayout(); void update(BufferParams const & params, BufferId id); void apply(BufferParams & params); - bool isValid() const { return is_valid_; } + bool isValid() const { return validated_; } Q_SIGNALS: /// signal that something's changed in the Widget. @@ -303,7 +315,7 @@ private Q_SLOTS: private: BufferId current_id_; - bool is_valid_; + bool validated_; };