diff options
Diffstat (limited to 'sw/source/uibase/inc/optpage.hxx')
-rw-r--r-- | sw/source/uibase/inc/optpage.hxx | 154 |
1 files changed, 124 insertions, 30 deletions
diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx index eebacf51ef53..68192a64f1d4 100644 --- a/sw/source/uibase/inc/optpage.hxx +++ b/sw/source/uibase/inc/optpage.hxx @@ -33,65 +33,92 @@ class FontList; // Tools->Options->Writer->View // Tools->Options->Writer/Web->View -class SwContentOptPage : public SfxTabPage +class SwContentOptPage final : public SfxTabPage { std::unique_ptr<weld::CheckButton> m_xCrossCB; + std::unique_ptr<weld::Widget> m_xCrossImg; std::unique_ptr<weld::ComboBox> m_xHMetric; + std::unique_ptr<weld::Widget> m_xHMetricImg; std::unique_ptr<weld::CheckButton> m_xVRulerCBox; + std::unique_ptr<weld::Widget> m_xVRulerImg; std::unique_ptr<weld::CheckButton> m_xVRulerRightCBox; + std::unique_ptr<weld::Widget> m_xVRulerRightImg; std::unique_ptr<weld::ComboBox> m_xVMetric; std::unique_ptr<weld::CheckButton> m_xSmoothCBox; + std::unique_ptr<weld::Widget> m_xSmoothImg; std::unique_ptr<weld::CheckButton> m_xGrfCB; + std::unique_ptr<weld::Widget> m_xGrfImg; std::unique_ptr<weld::CheckButton> m_xTableCB; + std::unique_ptr<weld::Widget> m_xTableImg; std::unique_ptr<weld::CheckButton> m_xDrwCB; + std::unique_ptr<weld::Widget> m_xDrwImg; std::unique_ptr<weld::CheckButton> m_xPostItCB; std::unique_ptr<weld::Frame> m_xSettingsFrame; std::unique_ptr<weld::Label> m_xSettingsLabel; std::unique_ptr<weld::Label> m_xMetricLabel; std::unique_ptr<weld::ComboBox> m_xMetricLB; + std::unique_ptr<weld::Widget> m_xMetricImg; std::unique_ptr<weld::CheckButton> m_xShowInlineTooltips; - std::unique_ptr<weld::Label> m_xOutlineLabel; + std::unique_ptr<weld::Widget> m_xShowInlineTooltipsImg; std::unique_ptr<weld::CheckButton> m_xShowOutlineContentVisibilityButton; + std::unique_ptr<weld::Widget> m_xShowOutlineContentVImg; std::unique_ptr<weld::CheckButton> m_xTreatSubOutlineLevelsAsContent; + std::unique_ptr<weld::Widget> m_xTreatSubOutlineLevelsImg; std::unique_ptr<weld::CheckButton> m_xShowChangesInMargin; + std::unique_ptr<weld::Widget> m_xShowChangesInMarginImg; std::unique_ptr<weld::CheckButton> m_xFieldHiddenCB; + std::unique_ptr<weld::Widget> m_xFieldHiddenImg; std::unique_ptr<weld::CheckButton> m_xFieldHiddenParaCB; + std::unique_ptr<weld::Widget> m_xFieldHiddenParaImg; - DECL_LINK(VertRulerHdl, weld::ToggleButton&, void); - DECL_LINK(ShowOutlineContentVisibilityButtonHdl, weld::ToggleButton&, void); + DECL_LINK(VertRulerHdl, weld::Toggleable&, void); + DECL_LINK(ShowOutlineContentVisibilityButtonHdl, weld::Toggleable&, void); public: SwContentOptPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); virtual ~SwContentOptPage() override; static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet); + virtual OUString GetAllStrings() override; + virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; }; // TabPage printer settings additions -class SwAddPrinterTabPage : public SfxTabPage +class SwAddPrinterTabPage final : public SfxTabPage { - OUString sNone; - bool bAttrModified; - bool bPreview; + OUString m_sNone; + bool m_bAttrModified; + bool m_bPreview; + bool m_bHTMLMode; std::unique_ptr<weld::CheckButton> m_xGrfCB; + std::unique_ptr<weld::Widget> m_xGrfImg; std::unique_ptr<weld::CheckButton> m_xCtrlFieldCB; + std::unique_ptr<weld::Widget> m_xCtrlFieldImg; std::unique_ptr<weld::CheckButton> m_xBackgroundCB; + std::unique_ptr<weld::Widget> m_xBackgroundImg; std::unique_ptr<weld::CheckButton> m_xBlackFontCB; + std::unique_ptr<weld::Widget> m_xBlackFontImg; std::unique_ptr<weld::CheckButton> m_xPrintHiddenTextCB; + std::unique_ptr<weld::Widget> m_xPrintHiddenTextImg; std::unique_ptr<weld::CheckButton> m_xPrintTextPlaceholderCB; + std::unique_ptr<weld::Widget> m_xPrintTextPlaceholderImg; std::unique_ptr<weld::Widget> m_xPagesFrame; std::unique_ptr<weld::CheckButton> m_xLeftPageCB; + std::unique_ptr<weld::Widget> m_xLeftPageImg; std::unique_ptr<weld::CheckButton> m_xRightPageCB; + std::unique_ptr<weld::Widget> m_xRightPageImg; std::unique_ptr<weld::CheckButton> m_xProspectCB; + std::unique_ptr<weld::Widget> m_xProspectImg; std::unique_ptr<weld::CheckButton> m_xProspectCB_RTL; + std::unique_ptr<weld::Widget> m_xProspectImg_RTL; std::unique_ptr<weld::Widget> m_xCommentsFrame; std::unique_ptr<weld::RadioButton> m_xNoRB; @@ -99,12 +126,16 @@ class SwAddPrinterTabPage : public SfxTabPage std::unique_ptr<weld::RadioButton> m_xEndRB; std::unique_ptr<weld::RadioButton> m_xEndPageRB; std::unique_ptr<weld::RadioButton> m_xInMarginsRB; + std::unique_ptr<weld::Widget> m_xMarginsImg; std::unique_ptr<weld::CheckButton> m_xPrintEmptyPagesCB; + std::unique_ptr<weld::Widget> m_xPrintEmptyPagesImg; std::unique_ptr<weld::CheckButton> m_xPaperFromSetupCB; + std::unique_ptr<weld::Widget> m_xPaperFromSetupImg; std::unique_ptr<weld::ComboBox> m_xFaxLB; + std::unique_ptr<weld::Widget> m_xFaxImg; - DECL_LINK(AutoClickHdl, weld::ToggleButton&, void); + DECL_LINK(AutoClickHdl, weld::Toggleable&, void); DECL_LINK(SelectHdl, weld::ComboBox&, void); public: @@ -113,6 +144,8 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet); + virtual OUString GetAllStrings() override; + virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; void SetFax(const std::vector<OUString>& ); @@ -120,7 +153,7 @@ public: virtual void PageCreated(const SfxAllItemSet& aSet) override; }; -class SwStdFontTabPage : public SfxTabPage +class SwStdFontTabPage final : public SfxTabPage { OUString m_sShellStd; OUString m_sShellTitle; @@ -143,10 +176,6 @@ class SwStdFontTabPage : public SfxTabPage bool m_bSetIdxDefault :1; bool m_bDisposePrinter :1; - bool m_bListHeightDefault :1; - bool m_bLabelHeightDefault :1; - bool m_bIndexHeightDefault :1; - sal_uInt8 m_nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL] OUString m_sScriptWestern; @@ -155,15 +184,25 @@ class SwStdFontTabPage : public SfxTabPage std::unique_ptr<weld::Label> m_xLabelFT; std::unique_ptr<weld::ComboBox> m_xStandardBox; + std::unique_ptr<weld::Widget> m_xStandardBoxImg; std::unique_ptr<FontSizeBox> m_xStandardHeightLB; + std::unique_ptr<weld::Widget> m_xStandardHeightImg; std::unique_ptr<weld::ComboBox> m_xTitleBox; + std::unique_ptr<weld::Widget> m_xTitleBoxImg; std::unique_ptr<FontSizeBox> m_xTitleHeightLB; + std::unique_ptr<weld::Widget> m_xTitleHeightImg; std::unique_ptr<weld::ComboBox> m_xListBox; + std::unique_ptr<weld::Widget> m_xListBoxImg; std::unique_ptr<FontSizeBox> m_xListHeightLB; + std::unique_ptr<weld::Widget> m_xListHeightImg; std::unique_ptr<weld::ComboBox> m_xLabelBox; + std::unique_ptr<weld::Widget> m_xLabelBoxImg; std::unique_ptr<FontSizeBox> m_xLabelHeightLB; + std::unique_ptr<weld::Widget> m_xLabelHeightImg; std::unique_ptr<weld::ComboBox> m_xIdxBox; + std::unique_ptr<weld::Widget> m_xIdxBoxImg; std::unique_ptr<FontSizeBox> m_xIndexHeightLB; + std::unique_ptr<weld::Widget> m_xIndexHeightImg; std::unique_ptr<weld::Button> m_xStandardPB; DECL_LINK(StandardHdl, weld::Button&, void ); @@ -175,37 +214,51 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet); virtual ~SwStdFontTabPage() override; + virtual OUString GetAllStrings() override; + virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; virtual void PageCreated(const SfxAllItemSet& aSet) override; }; -class SwTableOptionsTabPage : public SfxTabPage +class SwTableOptionsTabPage final : public SfxTabPage { SwWrtShell* m_pWrtShell; bool m_bHTMLMode; std::unique_ptr<weld::CheckButton> m_xHeaderCB; + std::unique_ptr<weld::Widget> m_xHeaderImg; std::unique_ptr<weld::CheckButton> m_xRepeatHeaderCB; + std::unique_ptr<weld::Widget> m_xRepeatHeaderImg; std::unique_ptr<weld::CheckButton> m_xDontSplitCB; + std::unique_ptr<weld::Widget> m_xDontSplitImg; std::unique_ptr<weld::CheckButton> m_xBorderCB; + std::unique_ptr<weld::Widget> m_xBorderImg; std::unique_ptr<weld::CheckButton> m_xNumFormattingCB; + std::unique_ptr<weld::Widget> m_xNumFormattingImg; std::unique_ptr<weld::CheckButton> m_xNumFormatFormattingCB; + std::unique_ptr<weld::Widget> m_xNumFormatFormattingImg; std::unique_ptr<weld::CheckButton> m_xNumAlignmentCB; + std::unique_ptr<weld::Widget> m_xNumAlignmentImg; std::unique_ptr<weld::MetricSpinButton> m_xRowMoveMF; + std::unique_ptr<weld::Widget> m_xRowMoveImg; std::unique_ptr<weld::MetricSpinButton> m_xColMoveMF; + std::unique_ptr<weld::Widget> m_xColMoveImg; std::unique_ptr<weld::MetricSpinButton> m_xRowInsertMF; + std::unique_ptr<weld::Widget> m_xRowInsertImg; std::unique_ptr<weld::MetricSpinButton> m_xColInsertMF; + std::unique_ptr<weld::Widget> m_xColInsertImg; std::unique_ptr<weld::RadioButton> m_xFixRB; std::unique_ptr<weld::RadioButton> m_xFixPropRB; std::unique_ptr<weld::RadioButton> m_xVarRB; + std::unique_ptr<weld::Widget> m_xBehaviorOfImg; - DECL_LINK(CheckBoxHdl, weld::Button&, void); + DECL_LINK(CheckBoxHdl, weld::Toggleable&, void); public: SwTableOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); @@ -213,6 +266,8 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet); + virtual OUString GetAllStrings() override; + virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; @@ -221,33 +276,51 @@ public: }; // TabPage for ShadowCursor -class SwShdwCursorOptionsTabPage : public SfxTabPage +class SwShdwCursorOptionsTabPage final : public SfxTabPage { SwWrtShell * m_pWrtShell; + bool m_bHTMLMode; //nonprinting characters std::unique_ptr<weld::CheckButton> m_xParaCB; + std::unique_ptr<weld::Widget> m_xParaImg; std::unique_ptr<weld::CheckButton> m_xSHyphCB; + std::unique_ptr<weld::Widget> m_xSHyphImg; std::unique_ptr<weld::CheckButton> m_xSpacesCB; + std::unique_ptr<weld::Widget> m_xSpacesImg; std::unique_ptr<weld::CheckButton> m_xHSpacesCB; + std::unique_ptr<weld::Widget> m_xHSpacesImg; std::unique_ptr<weld::CheckButton> m_xTabCB; + std::unique_ptr<weld::Widget> m_xTabImg; std::unique_ptr<weld::Label> m_xTabLabel; std::unique_ptr<weld::CheckButton> m_xBreakCB; + std::unique_ptr<weld::Widget> m_xBreakImg; std::unique_ptr<weld::CheckButton> m_xCharHiddenCB; + std::unique_ptr<weld::Widget> m_xCharHiddenImg; std::unique_ptr<weld::CheckButton> m_xBookmarkCB; + std::unique_ptr<weld::Widget> m_xBookmarkImg; std::unique_ptr<weld::Label> m_xBookmarkLabel; std::unique_ptr<weld::Frame> m_xDirectCursorFrame; std::unique_ptr<weld::CheckButton> m_xOnOffCB; + std::unique_ptr<weld::Widget> m_xOnOffImg; std::unique_ptr<weld::ComboBox> m_xDirectCursorFillMode; + std::unique_ptr<weld::Widget> m_xDirectCursorFillModeImg; std::unique_ptr<weld::Frame> m_xCursorProtFrame; std::unique_ptr<weld::Frame> m_xImageFrame; std::unique_ptr<weld::CheckButton> m_xCursorInProtCB; + std::unique_ptr<weld::Widget> m_xCursorInProtImg; std::unique_ptr<weld::ComboBox> m_xDefaultAnchorType; + std::unique_ptr<weld::Widget> m_xDefaultAnchorTypeImg; std::unique_ptr<weld::CheckButton> m_xMathBaselineAlignmentCB; + std::unique_ptr<weld::Widget> m_xMathBaselineAlignmentImg; + + std::unique_ptr<weld::Frame> m_xFmtAidsAutoComplFrame; + std::unique_ptr<weld::CheckButton> m_xEncloseWithCharactersCB; + std::unique_ptr<weld::Widget> m_xEncloseWithCharactersImg; public: SwShdwCursorOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); @@ -255,6 +328,8 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet); + virtual OUString GetAllStrings() override; + virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; @@ -262,7 +337,7 @@ public: }; // mark preview -class SwMarkPreview : public weld::CustomWidgetController +class SwMarkPreview final : public weld::CustomWidgetController { Color m_aBgCol; // background Color m_aTransCol; // transparency @@ -272,11 +347,11 @@ class SwMarkPreview : public weld::CustomWidgetController Color m_aTextCol; // text Color m_aPrintAreaCol; // frame for print area - tools::Rectangle aPage; - tools::Rectangle aLeftPagePrtArea; - tools::Rectangle aRightPagePrtArea; + tools::Rectangle m_aPage; + tools::Rectangle m_aLeftPagePrtArea; + tools::Rectangle m_aRightPagePrtArea; - sal_uInt16 nMarkPos; + sal_uInt16 m_nMarkPos; virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; void PaintPage(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect); @@ -288,29 +363,37 @@ public: virtual ~SwMarkPreview() override; void SetColor(const Color& rCol) { m_aMarkCol = rCol; } - void SetMarkPos(sal_uInt16 nPos) { nMarkPos = nPos; } + void SetMarkPos(sal_uInt16 nPos) { m_nMarkPos = nPos; } }; // redlining options -class SwRedlineOptionsTabPage : public SfxTabPage +class SwRedlineOptionsTabPage final : public SfxTabPage { std::unique_ptr<weld::ComboBox> m_xInsertLB; + std::unique_ptr<weld::Widget> m_xInsertImg; std::unique_ptr<ColorListBox> m_xInsertColorLB; + std::unique_ptr<weld::Widget> m_xInsertColorImg; std::unique_ptr<SvxFontPrevWindow> m_xInsertedPreviewWN; std::unique_ptr<weld::CustomWeld> m_xInsertedPreview; std::unique_ptr<weld::ComboBox> m_xDeletedLB; + std::unique_ptr<weld::Widget> m_xDeletedImg; std::unique_ptr<ColorListBox> m_xDeletedColorLB; + std::unique_ptr<weld::Widget> m_xDeletedColorImg; std::unique_ptr<SvxFontPrevWindow> m_xDeletedPreviewWN; std::unique_ptr<weld::CustomWeld> m_xDeletedPreview; std::unique_ptr<weld::ComboBox> m_xChangedLB; + std::unique_ptr<weld::Widget> m_xChangedImg; std::unique_ptr<ColorListBox> m_xChangedColorLB; + std::unique_ptr<weld::Widget> m_xChangedColorImg; std::unique_ptr<SvxFontPrevWindow> m_xChangedPreviewWN; std::unique_ptr<weld::CustomWeld> m_xChangedPreview; std::unique_ptr<weld::ComboBox> m_xMarkPosLB; + std::unique_ptr<weld::Widget> m_xMarkPosImg; std::unique_ptr<ColorListBox> m_xMarkColorLB; + std::unique_ptr<weld::Widget> m_xMarkColorImg; std::unique_ptr<SwMarkPreview> m_xMarkPreviewWN; std::unique_ptr<weld::CustomWeld> m_xMarkPreview; @@ -328,6 +411,8 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet); + virtual OUString GetAllStrings() override; + virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; @@ -336,7 +421,7 @@ public: #ifdef DBG_UTIL -class SwTestTabPage : public SfxTabPage +class SwTestTabPage final : public SfxTabPage { public: SwTestTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); @@ -344,11 +429,13 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet); + virtual OUString GetAllStrings() override; + virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; private: - bool bAttrModified; + bool m_bAttrModified; std::unique_ptr<weld::CheckButton> m_xTest1CBox; std::unique_ptr<weld::CheckButton> m_xTest2CBox; @@ -362,22 +449,27 @@ private: std::unique_ptr<weld::CheckButton> m_xTest10CBox; void Init(); - DECL_LINK(AutoClickHdl, weld::Button&, void); + DECL_LINK(AutoClickHdl, weld::Toggleable&, void); }; #endif // DBG_UTIL -class SwCompareOptionsTabPage : public SfxTabPage +class SwCompareOptionsTabPage final : public SfxTabPage { std::unique_ptr<weld::RadioButton> m_xAutoRB; std::unique_ptr<weld::RadioButton> m_xWordRB; std::unique_ptr<weld::RadioButton> m_xCharRB; + std::unique_ptr<weld::Widget> m_xCompareModeImg; std::unique_ptr<weld::CheckButton> m_xRsidCB; + std::unique_ptr<weld::Widget> m_xRsidImg; std::unique_ptr<weld::CheckButton> m_xIgnoreCB; + std::unique_ptr<weld::Widget> m_xIgnoreImg; std::unique_ptr<weld::SpinButton> m_xLenNF; + std::unique_ptr<weld::Widget> m_xLenImg; std::unique_ptr<weld::CheckButton> m_xStoreRsidCB; + std::unique_ptr<weld::Widget> m_xStoreRsidImg; - DECL_LINK(ComparisonHdl, weld::Button&, void); - DECL_LINK(IgnoreHdl, weld::Button&, void); + DECL_LINK(ComparisonHdl, weld::Toggleable&, void); + DECL_LINK(IgnoreHdl, weld::Toggleable&, void); public: SwCompareOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); @@ -385,6 +477,8 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet ); + virtual OUString GetAllStrings() override; + virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; }; |