- /// Apply changes
- virtual void apply();
- /// update
- virtual void update_contents();
- /// build the dialog
- virtual void build_dialog();
-
- std::vector<FamilyPair> family;
- std::vector<SeriesPair> series;
- std::vector<ShapePair> shape;
- std::vector<SizePair> size;
- std::vector<BarPair> bar;
- std::vector<ColorPair> color;
- std::vector<LanguagePair> language;
+ /// \name Dialog inherited methods
+ //@{
+ void applyView();
+ void updateContents();
+ bool initialiseParams(std::string const & data);
+ void clearParams() {}
+ void dispatchParams();
+ bool isBufferDependent() const { return true; }
+ FuncCode getLfun() const { return LFUN_TEXTSTYLE_UPDATE; }
+ void saveSession() const;
+ void restoreSession();
+ //@}
+
+ ///
+ void paramsToDialog(Font const & font);
+
+ QList<FamilyPair> family;
+ QList<SeriesPair> series;
+ QList<ShapePair> shape;
+ QList<SizePair> size;
+ QList<BarPair> bar;
+ QList<ColorPair> color;
+ QList<LanguagePair> language;
+
+ ///
+ ///
+ Font font_;
+ ///
+ bool toggleall_;
+ /// If true the language should be reset.
+ /// If false the language of font_ is used.
+ bool reset_lang_;