tdf#164420 Fix unselected Check/Radio buttons not following themes in GTK
[LibreOffice.git] / sw / source / uibase / inc / optpage.hxx
blobca60e8f002193377bb4ae0aa4291b8ec515398f0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <sfx2/tabdlg.hxx>
24 #include <vcl/weld.hxx>
25 #include <svtools/ctrlbox.hxx>
26 #include <svx/colorbox.hxx>
27 #include <svx/fntctrl.hxx>
28 #include "fontcfg.hxx"
29 class SfxPrinter;
30 class SwStdFontConfig;
31 class SwWrtShell;
32 class FontList;
34 // Tools->Options->Writer->View
35 // Tools->Options->Writer/Web->View
36 class SwContentOptPage final : public SfxTabPage
38 std::unique_ptr<weld::CheckButton> m_xCrossCB;
39 std::unique_ptr<weld::Widget> m_xCrossImg;
41 std::unique_ptr<weld::ComboBox> m_xHMetric;
42 std::unique_ptr<weld::Widget> m_xHMetricImg;
43 std::unique_ptr<weld::CheckButton> m_xVRulerCBox;
44 std::unique_ptr<weld::Widget> m_xVRulerImg;
45 std::unique_ptr<weld::CheckButton> m_xVRulerRightCBox;
46 std::unique_ptr<weld::Widget> m_xVRulerRightImg;
47 std::unique_ptr<weld::ComboBox> m_xVMetric;
48 std::unique_ptr<weld::CheckButton> m_xSmoothCBox;
49 std::unique_ptr<weld::Widget> m_xSmoothImg;
51 std::unique_ptr<weld::CheckButton> m_xGrfCB;
52 std::unique_ptr<weld::Widget> m_xGrfImg;
53 std::unique_ptr<weld::CheckButton> m_xTableCB;
54 std::unique_ptr<weld::Widget> m_xTableImg;
55 std::unique_ptr<weld::CheckButton> m_xDrwCB;
56 std::unique_ptr<weld::Widget> m_xDrwImg;
57 std::unique_ptr<weld::CheckButton> m_xPostItCB;
59 std::unique_ptr<weld::Frame> m_xSettingsFrame;
60 std::unique_ptr<weld::Label> m_xSettingsLabel;
61 std::unique_ptr<weld::Label> m_xMetricLabel;
62 std::unique_ptr<weld::ComboBox> m_xMetricLB;
63 std::unique_ptr<weld::Widget> m_xMetricImg;
65 std::unique_ptr<weld::CheckButton> m_xShowInlineTooltips;
66 std::unique_ptr<weld::Widget> m_xShowInlineTooltipsImg;
67 std::unique_ptr<weld::CheckButton> m_xShowOutlineContentVisibilityButton;
68 std::unique_ptr<weld::Widget> m_xShowOutlineContentVImg;
69 std::unique_ptr<weld::CheckButton> m_xTreatSubOutlineLevelsAsContent;
70 std::unique_ptr<weld::Widget> m_xTreatSubOutlineLevelsImg;
71 std::unique_ptr<weld::CheckButton> m_xShowChangesInMargin;
72 std::unique_ptr<weld::Widget> m_xShowChangesInMarginImg;
73 std::unique_ptr<weld::CheckButton> m_xFieldHiddenCB;
74 std::unique_ptr<weld::Widget> m_xFieldHiddenImg;
75 std::unique_ptr<weld::CheckButton> m_xFieldHiddenParaCB;
76 std::unique_ptr<weld::Widget> m_xFieldHiddenParaImg;
78 std::unique_ptr<weld::Frame> m_xZoomFrame;
79 std::unique_ptr<weld::RadioButton> m_xZoomLatestRB;
80 std::unique_ptr<weld::RadioButton> m_xZoomPreferredRB;
81 std::unique_ptr<weld::RadioButton> m_xZoomOptimalRB;
82 std::unique_ptr<weld::RadioButton> m_xZoomWidthAndHeightRB;
83 std::unique_ptr<weld::RadioButton> m_xZoomWidthRB;
84 std::unique_ptr<weld::RadioButton> m_xZoom100RB;
85 std::unique_ptr<weld::RadioButton> m_xZoomCustomRB;
86 std::unique_ptr<weld::MetricSpinButton> m_xZoomValue;
88 DECL_LINK(VertRulerHdl, weld::Toggleable&, void);
89 DECL_LINK(ShowOutlineContentVisibilityButtonHdl, weld::Toggleable&, void);
90 DECL_LINK(ZoomHdl, weld::Toggleable&, void);
91 DECL_LINK(ZoomLatestHdl, weld::Toggleable&, void);
92 public:
93 SwContentOptPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
94 virtual ~SwContentOptPage() override;
96 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
98 virtual OUString GetAllStrings() override;
100 virtual bool FillItemSet(SfxItemSet* rSet) override;
101 virtual void Reset(const SfxItemSet* rSet) override;
104 // TabPage printer settings additions
105 class SwAddPrinterTabPage final : public SfxTabPage
107 OUString m_sNone;
108 bool m_bAttrModified;
109 bool m_bPreview;
110 bool m_bHTMLMode;
112 std::unique_ptr<weld::CheckButton> m_xGrfCB;
113 std::unique_ptr<weld::Widget> m_xGrfImg;
114 std::unique_ptr<weld::CheckButton> m_xCtrlFieldCB;
115 std::unique_ptr<weld::Widget> m_xCtrlFieldImg;
116 std::unique_ptr<weld::CheckButton> m_xBackgroundCB;
117 std::unique_ptr<weld::Widget> m_xBackgroundImg;
118 std::unique_ptr<weld::CheckButton> m_xBlackFontCB;
119 std::unique_ptr<weld::Widget> m_xBlackFontImg;
120 std::unique_ptr<weld::CheckButton> m_xPrintHiddenTextCB;
121 std::unique_ptr<weld::Widget> m_xPrintHiddenTextImg;
122 std::unique_ptr<weld::CheckButton> m_xPrintTextPlaceholderCB;
123 std::unique_ptr<weld::Widget> m_xPrintTextPlaceholderImg;
125 std::unique_ptr<weld::Widget> m_xPagesFrame;
126 std::unique_ptr<weld::CheckButton> m_xLeftPageCB;
127 std::unique_ptr<weld::Widget> m_xLeftPageImg;
128 std::unique_ptr<weld::CheckButton> m_xRightPageCB;
129 std::unique_ptr<weld::Widget> m_xRightPageImg;
130 std::unique_ptr<weld::CheckButton> m_xProspectCB;
131 std::unique_ptr<weld::Widget> m_xProspectImg;
132 std::unique_ptr<weld::CheckButton> m_xProspectCB_RTL;
133 std::unique_ptr<weld::Widget> m_xProspectImg_RTL;
135 std::unique_ptr<weld::Widget> m_xCommentsFrame;
136 std::unique_ptr<weld::RadioButton> m_xNoRB;
137 std::unique_ptr<weld::RadioButton> m_xOnlyRB;
138 std::unique_ptr<weld::RadioButton> m_xEndRB;
139 std::unique_ptr<weld::RadioButton> m_xEndPageRB;
140 std::unique_ptr<weld::RadioButton> m_xInMarginsRB;
141 std::unique_ptr<weld::Widget> m_xMarginsImg;
143 std::unique_ptr<weld::CheckButton> m_xPrintEmptyPagesCB;
144 std::unique_ptr<weld::Widget> m_xPrintEmptyPagesImg;
145 std::unique_ptr<weld::CheckButton> m_xPaperFromSetupCB;
146 std::unique_ptr<weld::Widget> m_xPaperFromSetupImg;
147 std::unique_ptr<weld::ComboBox> m_xFaxLB;
148 std::unique_ptr<weld::Widget> m_xFaxImg;
150 DECL_LINK(AutoClickHdl, weld::Toggleable&, void);
151 DECL_LINK(SelectHdl, weld::ComboBox&, void);
153 public:
154 SwAddPrinterTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
155 virtual ~SwAddPrinterTabPage() override;
157 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
159 virtual OUString GetAllStrings() override;
161 virtual bool FillItemSet(SfxItemSet* rSet) override;
162 virtual void Reset(const SfxItemSet* rSet) override;
163 void SetFax(const std::vector<OUString>& );
164 void SetPreview(bool bPrev);
165 virtual void PageCreated(const SfxAllItemSet& aSet) override;
168 class SwStdFontTabPage final : public SfxTabPage
170 OUString m_sShellStd;
171 OUString m_sShellTitle;
172 OUString m_sShellList;
173 OUString m_sShellLabel;
174 OUString m_sShellIndex;
176 VclPtr<SfxPrinter> m_pPrt;
177 std::unique_ptr<FontList> m_pFontList;
178 SwStdFontConfig* m_pFontConfig;
179 SwWrtShell* m_pWrtShell;
180 LanguageType m_eLanguage;
182 // only defaults were there? they were signed with the boxes
183 bool m_bListDefault :1;
184 bool m_bSetListDefault :1;
185 bool m_bLabelDefault :1;
186 bool m_bSetLabelDefault :1;
187 bool m_bIdxDefault :1;
188 bool m_bSetIdxDefault :1;
189 bool m_bDisposePrinter :1;
191 sal_uInt8 m_nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL]
193 OUString m_sScriptWestern;
194 OUString m_sScriptAsian;
195 OUString m_sScriptComplex;
197 std::unique_ptr<weld::Label> m_xLabelFT;
198 std::unique_ptr<weld::ComboBox> m_xStandardBox;
199 std::unique_ptr<weld::Widget> m_xStandardBoxImg;
200 std::unique_ptr<FontSizeBox> m_xStandardHeightLB;
201 std::unique_ptr<weld::Widget> m_xStandardHeightImg;
202 std::unique_ptr<weld::ComboBox> m_xTitleBox;
203 std::unique_ptr<weld::Widget> m_xTitleBoxImg;
204 std::unique_ptr<FontSizeBox> m_xTitleHeightLB;
205 std::unique_ptr<weld::Widget> m_xTitleHeightImg;
206 std::unique_ptr<weld::ComboBox> m_xListBox;
207 std::unique_ptr<weld::Widget> m_xListBoxImg;
208 std::unique_ptr<FontSizeBox> m_xListHeightLB;
209 std::unique_ptr<weld::Widget> m_xListHeightImg;
210 std::unique_ptr<weld::ComboBox> m_xLabelBox;
211 std::unique_ptr<weld::Widget> m_xLabelBoxImg;
212 std::unique_ptr<FontSizeBox> m_xLabelHeightLB;
213 std::unique_ptr<weld::Widget> m_xLabelHeightImg;
214 std::unique_ptr<weld::ComboBox> m_xIdxBox;
215 std::unique_ptr<weld::Widget> m_xIdxBoxImg;
216 std::unique_ptr<FontSizeBox> m_xIndexHeightLB;
217 std::unique_ptr<weld::Widget> m_xIndexHeightImg;
218 std::unique_ptr<weld::Button> m_xStandardPB;
220 DECL_LINK(StandardHdl, weld::Button&, void );
221 DECL_LINK(ModifyHdl, weld::ComboBox&, void );
222 DECL_LINK(LoseFocusHdl, weld::Widget&, void );
224 public:
225 SwStdFontTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
226 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
227 virtual ~SwStdFontTabPage() override;
229 virtual OUString GetAllStrings() override;
231 virtual bool FillItemSet(SfxItemSet* rSet) override;
232 virtual void Reset(const SfxItemSet* rSet) override;
234 virtual void PageCreated(const SfxAllItemSet& aSet) override;
237 class SwTableOptionsTabPage final : public SfxTabPage
239 SwWrtShell* m_pWrtShell;
240 bool m_bHTMLMode;
242 std::unique_ptr<weld::CheckButton> m_xHeaderCB;
243 std::unique_ptr<weld::Widget> m_xHeaderImg;
244 std::unique_ptr<weld::CheckButton> m_xRepeatHeaderCB;
245 std::unique_ptr<weld::Widget> m_xRepeatHeaderImg;
246 std::unique_ptr<weld::CheckButton> m_xDontSplitCB;
247 std::unique_ptr<weld::Widget> m_xDontSplitImg;
248 std::unique_ptr<weld::CheckButton> m_xBorderCB;
249 std::unique_ptr<weld::Widget> m_xBorderImg;
251 std::unique_ptr<weld::CheckButton> m_xNumFormattingCB;
252 std::unique_ptr<weld::Widget> m_xNumFormattingImg;
253 std::unique_ptr<weld::CheckButton> m_xNumFormatFormattingCB;
254 std::unique_ptr<weld::Widget> m_xNumFormatFormattingImg;
255 std::unique_ptr<weld::CheckButton> m_xNumAlignmentCB;
256 std::unique_ptr<weld::Widget> m_xNumAlignmentImg;
258 std::unique_ptr<weld::MetricSpinButton> m_xRowMoveMF;
259 std::unique_ptr<weld::Widget> m_xRowMoveImg;
260 std::unique_ptr<weld::MetricSpinButton> m_xColMoveMF;
261 std::unique_ptr<weld::Widget> m_xColMoveImg;
263 std::unique_ptr<weld::MetricSpinButton> m_xRowInsertMF;
264 std::unique_ptr<weld::Widget> m_xRowInsertImg;
265 std::unique_ptr<weld::MetricSpinButton> m_xColInsertMF;
266 std::unique_ptr<weld::Widget> m_xColInsertImg;
268 std::unique_ptr<weld::RadioButton> m_xFixRB;
269 std::unique_ptr<weld::RadioButton> m_xFixPropRB;
270 std::unique_ptr<weld::RadioButton> m_xVarRB;
271 std::unique_ptr<weld::Widget> m_xBehaviorOfImg;
273 DECL_LINK(CheckBoxHdl, weld::Toggleable&, void);
275 public:
276 SwTableOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
277 virtual ~SwTableOptionsTabPage() override;
279 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
281 virtual OUString GetAllStrings() override;
283 virtual bool FillItemSet(SfxItemSet* rSet) override;
284 virtual void Reset(const SfxItemSet* rSet) override;
286 virtual void PageCreated( const SfxAllItemSet& aSet) override;
290 // TabPage for ShadowCursor
291 class SwShdwCursorOptionsTabPage final : public SfxTabPage
293 SwWrtShell * m_pWrtShell;
294 bool m_bHTMLMode;
296 //nonprinting characters
297 std::unique_ptr<weld::CheckButton> m_xParaCB;
298 std::unique_ptr<weld::Widget> m_xParaImg;
299 std::unique_ptr<weld::CheckButton> m_xSHyphCB;
300 std::unique_ptr<weld::Widget> m_xSHyphImg;
301 std::unique_ptr<weld::CheckButton> m_xSpacesCB;
302 std::unique_ptr<weld::Widget> m_xSpacesImg;
303 std::unique_ptr<weld::CheckButton> m_xHSpacesCB;
304 std::unique_ptr<weld::Widget> m_xHSpacesImg;
305 std::unique_ptr<weld::CheckButton> m_xTabCB;
306 std::unique_ptr<weld::Widget> m_xTabImg;
307 std::unique_ptr<weld::Label> m_xTabLabel;
308 std::unique_ptr<weld::CheckButton> m_xBreakCB;
309 std::unique_ptr<weld::Widget> m_xBreakImg;
310 std::unique_ptr<weld::CheckButton> m_xCharHiddenCB;
311 std::unique_ptr<weld::Widget> m_xCharHiddenImg;
312 std::unique_ptr<weld::CheckButton> m_xBookmarkCB;
313 std::unique_ptr<weld::Widget> m_xBookmarkImg;
314 std::unique_ptr<weld::Label> m_xBookmarkLabel;
315 std::unique_ptr<weld::RadioButton> m_xTextBoundariesFull;
316 std::unique_ptr<weld::RadioButton> m_xTextBoundariesCrop;
318 std::unique_ptr<weld::Frame> m_xDirectCursorFrame;
319 std::unique_ptr<weld::CheckButton> m_xOnOffCB;
320 std::unique_ptr<weld::Widget> m_xOnOffImg;
322 std::unique_ptr<weld::ComboBox> m_xDirectCursorFillMode;
323 std::unique_ptr<weld::Widget> m_xDirectCursorFillModeImg;
324 std::unique_ptr<weld::Frame> m_xCursorProtFrame;
325 std::unique_ptr<weld::Frame> m_xImageFrame;
326 std::unique_ptr<weld::CheckButton> m_xCursorInProtCB;
327 std::unique_ptr<weld::Widget> m_xCursorInProtImg;
329 std::unique_ptr<weld::ComboBox> m_xDefaultAnchorType;
330 std::unique_ptr<weld::Widget> m_xDefaultAnchorTypeImg;
332 std::unique_ptr<weld::CheckButton> m_xMathBaselineAlignmentCB;
333 std::unique_ptr<weld::Widget> m_xMathBaselineAlignmentImg;
335 std::unique_ptr<weld::Frame> m_xFmtAidsAutoComplFrame;
336 std::unique_ptr<weld::CheckButton> m_xEncloseWithCharactersCB;
337 std::unique_ptr<weld::Widget> m_xEncloseWithCharactersImg;
339 std::unique_ptr<weld::CheckButton> m_xTextBoundariesCB;
340 std::unique_ptr<weld::CheckButton> m_xSectionBoundariesCB;
341 std::unique_ptr<weld::CheckButton> m_xTableBoundariesCB;
343 DECL_LINK(TextBoundariesHdl, weld::Toggleable&, void);
345 public:
346 SwShdwCursorOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
347 virtual ~SwShdwCursorOptionsTabPage() override;
349 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
351 virtual OUString GetAllStrings() override;
353 virtual bool FillItemSet( SfxItemSet* rSet ) override;
354 virtual void Reset( const SfxItemSet* rSet ) override;
356 virtual void PageCreated( const SfxAllItemSet& aSet ) override;
359 // mark preview
360 class SwMarkPreview final : public weld::CustomWidgetController
362 Color m_aBgCol; // background
363 Color m_aTransCol; // transparency
364 Color m_aMarkCol; // marks
365 Color m_aLineCol; // general lines
366 Color m_aShadowCol; // shadow
367 Color m_aTextCol; // text
368 Color m_aPrintAreaCol; // frame for print area
370 tools::Rectangle m_aPage;
371 tools::Rectangle m_aLeftPagePrtArea;
372 tools::Rectangle m_aRightPagePrtArea;
374 sal_uInt16 m_nMarkPos;
376 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override;
377 void PaintPage(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect);
378 void InitColors();
380 public:
381 SwMarkPreview();
382 virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
383 virtual ~SwMarkPreview() override;
385 void SetColor(const Color& rCol) { m_aMarkCol = rCol; }
386 void SetMarkPos(sal_uInt16 nPos) { m_nMarkPos = nPos; }
389 // redlining options
390 class SwRedlineOptionsTabPage final : public SfxTabPage
392 std::unique_ptr<weld::ComboBox> m_xInsertLB;
393 std::unique_ptr<weld::Widget> m_xInsertImg;
394 std::unique_ptr<ColorListBox> m_xInsertColorLB;
395 std::unique_ptr<weld::Widget> m_xInsertColorImg;
396 std::unique_ptr<SvxFontPrevWindow> m_xInsertedPreviewWN;
397 std::unique_ptr<weld::CustomWeld> m_xInsertedPreview;
399 std::unique_ptr<weld::ComboBox> m_xDeletedLB;
400 std::unique_ptr<weld::Widget> m_xDeletedImg;
401 std::unique_ptr<ColorListBox> m_xDeletedColorLB;
402 std::unique_ptr<weld::Widget> m_xDeletedColorImg;
403 std::unique_ptr<SvxFontPrevWindow> m_xDeletedPreviewWN;
404 std::unique_ptr<weld::CustomWeld> m_xDeletedPreview;
406 std::unique_ptr<weld::ComboBox> m_xChangedLB;
407 std::unique_ptr<weld::Widget> m_xChangedImg;
408 std::unique_ptr<ColorListBox> m_xChangedColorLB;
409 std::unique_ptr<weld::Widget> m_xChangedColorImg;
410 std::unique_ptr<SvxFontPrevWindow> m_xChangedPreviewWN;
411 std::unique_ptr<weld::CustomWeld> m_xChangedPreview;
413 std::unique_ptr<weld::ComboBox> m_xMarkPosLB;
414 std::unique_ptr<weld::Widget> m_xMarkPosImg;
415 std::unique_ptr<ColorListBox> m_xMarkColorLB;
416 std::unique_ptr<weld::Widget> m_xMarkColorImg;
417 std::unique_ptr<SwMarkPreview> m_xMarkPreviewWN;
418 std::unique_ptr<weld::CustomWeld> m_xMarkPreview;
420 DECL_LINK(AttribHdl, weld::ComboBox&, void);
421 void ChangedMaskPrev();
422 DECL_LINK(ChangedMaskPrevHdl, weld::ComboBox&, void);
423 DECL_LINK(ChangedMaskColorPrevHdl, ColorListBox&, void);
424 DECL_LINK(ColorHdl, ColorListBox&, void);
426 static void InitFontStyle(SvxFontPrevWindow& rExampleWin, const OUString& rText);
428 public:
429 SwRedlineOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
430 virtual ~SwRedlineOptionsTabPage() override;
432 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
434 virtual OUString GetAllStrings() override;
436 virtual bool FillItemSet( SfxItemSet* rSet ) override;
437 virtual void Reset( const SfxItemSet* rSet ) override;
440 // TabPage test settings for SW
442 #ifdef DBG_UTIL
444 class SwTestTabPage final : public SfxTabPage
446 public:
447 SwTestTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
448 virtual ~SwTestTabPage() override;
450 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
452 virtual OUString GetAllStrings() override;
454 virtual bool FillItemSet( SfxItemSet* rSet ) override;
455 virtual void Reset( const SfxItemSet* rSet ) override;
457 private:
458 bool m_bAttrModified;
460 std::unique_ptr<weld::CheckButton> m_xTest1CBox;
461 std::unique_ptr<weld::CheckButton> m_xTest2CBox;
462 std::unique_ptr<weld::CheckButton> m_xTest3CBox;
463 std::unique_ptr<weld::CheckButton> m_xTest4CBox;
464 std::unique_ptr<weld::CheckButton> m_xTest5CBox;
465 std::unique_ptr<weld::CheckButton> m_xTest6CBox;
466 std::unique_ptr<weld::CheckButton> m_xTest7CBox;
467 std::unique_ptr<weld::CheckButton> m_xTest8CBox;
468 std::unique_ptr<weld::CheckButton> m_xTest9CBox;
469 std::unique_ptr<weld::CheckButton> m_xTest10CBox;
471 void Init();
472 DECL_LINK(AutoClickHdl, weld::Toggleable&, void);
474 #endif // DBG_UTIL
476 class SwCompareOptionsTabPage final : public SfxTabPage
478 std::unique_ptr<weld::RadioButton> m_xAutoRB;
479 std::unique_ptr<weld::RadioButton> m_xWordRB;
480 std::unique_ptr<weld::RadioButton> m_xCharRB;
481 std::unique_ptr<weld::Widget> m_xCompareModeImg;
482 std::unique_ptr<weld::CheckButton> m_xRsidCB;
483 std::unique_ptr<weld::Widget> m_xRsidImg;
484 std::unique_ptr<weld::CheckButton> m_xStoreRsidCB;
485 std::unique_ptr<weld::Widget> m_xStoreRsidImg;
487 DECL_LINK(ComparisonHdl, weld::Toggleable&, void);
489 public:
490 SwCompareOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
491 virtual ~SwCompareOptionsTabPage() override;
493 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
495 virtual OUString GetAllStrings() override;
497 virtual bool FillItemSet( SfxItemSet* rSet ) override;
498 virtual void Reset( const SfxItemSet* rSet ) override;
501 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */