LibreOffice Module cui (master) 1
cuitabarea.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <svtools/valueset.hxx>
22#include <svx/dlgctrl.hxx>
23#include <svx/xflasit.hxx>
24#include <svx/tabarea.hxx>
29#include <svx/svdview.hxx>
30
31#define NO_BUTTON_SELECTED -1
32
33class ColorListBox;
34class SdrModel;
35class SvxBitmapCtl;
36
37/************************************************************************/
39{
40 private:
41 sal_Int32 mnCurrentButton;
42 std::vector<weld::Toggleable*> maButtonList;
43 std::map<weld::Toggleable*, sal_Int32 > maButtonToPos;
44 void SelectButtonImpl( sal_Int32 nPos )
45 {
47 {
48 maButtonList[mnCurrentButton]->set_active(false);
49 }
51 maButtonList[mnCurrentButton]->set_active(true);
52 };
53 public:
55 {
57 };
59 {
60 maButtonList.push_back(pButton);
61 maButtonToPos.insert( std::make_pair(pButton, maButtonList.size() - 1) );
62 }
63 sal_Int32 GetCurrentButtonPos() const { return mnCurrentButton; }
64 sal_Int32 GetButtonPos(weld::Toggleable* pButton)
65 {
66 std::map<weld::Toggleable*, sal_Int32>::const_iterator aBtnPos = maButtonToPos.find(pButton);
67 if(aBtnPos != maButtonToPos.end())
68 return aBtnPos->second;
69 else
70 return -1;
71 }
73 {
74 sal_Int32 nPos = GetButtonPos(pButton);
75 if(nPos != -1)
77 }
78};
79
80enum class PageType
81{
82 Area,
84 Hatch,
85 Bitmap,
86 Shadow,
88};
89
91{
93
104
110
111 virtual void PageCreated(const OUString& rId, SfxTabPage &rPage) override;
112
113 virtual short Ok() override;
114 DECL_LINK(CancelHdlImpl, weld::Button&, void);
115 void SavePalettes();
116
117public:
118 SvxAreaTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, bool bShadow,
119 bool bSlideBackground);
120
121 void SetNewColorList( XColorListRef const & pColorList )
122 { mpNewColorList = pColorList; }
124};
125
126/************************************************************************/
127
129{
131
133
135 sal_uInt16 nDlgType;
136
138
141
144
145 // main selection
146 std::unique_ptr<weld::RadioButton> m_xRbtTransOff;
147 std::unique_ptr<weld::RadioButton> m_xRbtTransLinear;
148 std::unique_ptr<weld::RadioButton> m_xRbtTransGradient;
149
151 std::unique_ptr<weld::MetricSpinButton> m_xMtrTransparent;
152
153 // gradient transparency
154 std::unique_ptr<weld::Widget> m_xGridGradient;
155 std::unique_ptr<weld::ComboBox> m_xLbTrgrGradientType;
156 std::unique_ptr<weld::Label> m_xFtTrgrCenterX;
157 std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrCenterX;
158 std::unique_ptr<weld::Label> m_xFtTrgrCenterY;
159 std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrCenterY;
160 std::unique_ptr<weld::Label> m_xFtTrgrAngle;
161 std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrAngle;
162 std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrBorder;
163 std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrStartValue;
164 std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrEndValue;
165 std::unique_ptr<weld::Widget> m_xCtlBitmapBorder;
166 std::unique_ptr<weld::Widget> m_xCtlXRectBorder;
167
168 // preview
169 std::unique_ptr<weld::CustomWeld> m_xCtlBitmapPreview;
170 std::unique_ptr<weld::CustomWeld> m_xCtlXRectPreview;
171
172 // MCGR: Preserve ColorStops until we have a UI to edit these
174
175 DECL_LINK(ClickTransOffHdl_Impl, weld::Toggleable&, void);
176 DECL_LINK(ClickTransLinearHdl_Impl, weld::Toggleable&, void);
177 DECL_LINK(ClickTransGradientHdl_Impl, weld::Toggleable&, void );
178 DECL_LINK(ModifyTransparentHdl_Impl, weld::MetricSpinButton&, void);
179 DECL_LINK(ModifiedTrgrEditHdl_Impl, weld::MetricSpinButton&, void);
180 DECL_LINK(ModifiedTrgrListBoxHdl_Impl, weld::ComboBox&, void);
182
183 void ActivateLinear(bool bActivate);
184 void ActivateGradient(bool bActivate);
185 void SetControlState_Impl(css::awt::GradientStyle eXGS);
186
187 bool InitPreview ( const SfxItemSet& rSet );
188 void InvalidatePreview (bool bEnable = true );
189
190 // MCGR: Preserve ColorStops until we have a UI to edit these
192
193public:
194 SvxTransparenceTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
195 virtual ~SvxTransparenceTabPage() override;
196
197 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*);
199
200 virtual bool FillItemSet(SfxItemSet*) override;
201 virtual void Reset(const SfxItemSet*) override;
202 virtual void ChangesApplied() override;
203 virtual void ActivatePage(const SfxItemSet& rSet) override;
204 virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
205
206 void SetPageType(PageType nInType) { nPageType = nInType; }
207 void SetDlgType(sal_uInt16 nInType) { nDlgType = nInType; }
208 virtual void PageCreated(const SfxAllItemSet& aSet) override;
209};
210
211/************************************************************************/
212
214{
216private:
217 std::unique_ptr<SfxTabPage> m_xFillTabPage;
219
225
226 // Placeholders for pointer-based entries; these will be inited
227 // to point to these so that the page is usable without that
228 // SvxAreaTabDialog has to call the setter methods (e.g. SetColorChgd).
229 // Without that the pages used in SvxAreaTabDialog are not usable
231
237
240
241 bool m_bBtnClicked = false;
242
243protected:
244 std::unique_ptr<weld::Container> m_xFillTab;
245 std::unique_ptr<weld::Toggleable> m_xBtnNone;
246 std::unique_ptr<weld::Toggleable> m_xBtnColor;
247 std::unique_ptr<weld::Toggleable> m_xBtnGradient;
248 std::unique_ptr<weld::Toggleable> m_xBtnHatch;
249 std::unique_ptr<weld::Toggleable> m_xBtnBitmap;
250 std::unique_ptr<weld::Toggleable> m_xBtnPattern;
251 std::unique_ptr<weld::Toggleable> m_xBtnUseBackground;
252
253 void SetOptimalSize(weld::DialogController* pController);
254
255 void SelectFillType( weld::Toggleable& rButton, const SfxItemSet* _pSet = nullptr );
257
258 bool IsBtnClicked() const { return m_bBtnClicked; }
259
260private:
261 DECL_LINK(SelectFillTypeHdl_Impl, weld::Toggleable&, void);
262
263 template< typename TabPage >
265 template< typename TabPage >
266 void Reset_Impl( const SfxItemSet* );
267 template< typename TabPage >
269
270public:
272 const SfxItemSet& rInAttrs, bool bSlideBackground = false);
273 virtual ~SvxAreaTabPage() override;
274
275 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
276 static std::unique_ptr<SfxTabPage>
278 const SfxItemSet*);
280
281 virtual bool FillItemSet( SfxItemSet* ) override;
282 virtual void Reset( const SfxItemSet * ) override;
283 virtual void ActivatePage( const SfxItemSet& rSet ) override;
284 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
285
286 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
287 void SetGradientList( XGradientListRef const & pGrdLst)
288 { m_pGradientList = pGrdLst; }
289 void SetHatchingList( XHatchListRef const & pHtchLst)
290 { m_pHatchingList = pHtchLst; }
291 void SetBitmapList( XBitmapListRef const & pBmpLst) { m_pBitmapList = pBmpLst; }
292 void SetPatternList( XPatternListRef const &pPtrnLst ) { m_pPatternList = pPtrnLst; }
293 virtual void PageCreated(const SfxAllItemSet& aSet) override;
294 void CreatePage(sal_Int32 nId, SfxTabPage& rTab);
300};
301
302
304{
306
307private:
309
313 sal_uInt16 m_nDlgType;
314
318
321 std::unique_ptr<weld::CheckButton> m_xTsbShowShadow;
322 std::unique_ptr<weld::Widget> m_xGridShadow;
323 std::unique_ptr<weld::MetricSpinButton> m_xMtrDistance;
324 std::unique_ptr<ColorListBox> m_xLbShadowColor;
325 std::unique_ptr<weld::MetricSpinButton> m_xMtrTransparent;
326 std::unique_ptr<weld::MetricSpinButton> m_xLbShadowBlurMetric;
327 std::unique_ptr<weld::CustomWeld> m_xCtlPosition;
328 std::unique_ptr<weld::CustomWeld> m_xCtlXRectPreview;
329
330 DECL_LINK(ClickShadowHdl_Impl, weld::Toggleable&, void);
331 DECL_LINK(ModifyShadowHdl_Impl, weld::MetricSpinButton&, void);
332 DECL_LINK(SelectShadowHdl_Impl, ColorListBox&, void);
333
334public:
335 SvxShadowTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
336 virtual ~SvxShadowTabPage() override;
337
338 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
340
341 virtual bool FillItemSet( SfxItemSet* ) override;
342 virtual void Reset( const SfxItemSet * ) override;
343 virtual void ActivatePage( const SfxItemSet& rSet ) override;
344 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
345 virtual void PointChanged( weld::DrawingArea* pWindow, RectPoint eRP ) override;
346
347 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
348 void SetPageType( PageType nInType ) { m_nPageType = nInType; }
349 void SetDlgType( sal_uInt16 nInType ) { m_nDlgType = nInType; }
351 virtual void PageCreated(const SfxAllItemSet& aSet) override;
352};
353
354/************************************************************************/
355
357{
358private:
360
363
366
369
370 // MCGR: Preserve ColorStops until we have a UI to edit these
372
374 std::unique_ptr<weld::ComboBox> m_xLbGradientType;
375 std::unique_ptr<weld::Label> m_xFtCenter;
376 std::unique_ptr<weld::MetricSpinButton> m_xMtrCenterX;
377 std::unique_ptr<weld::MetricSpinButton> m_xMtrCenterY;
378 std::unique_ptr<weld::Label> m_xFtAngle;
379 std::unique_ptr<weld::MetricSpinButton> m_xMtrAngle;
380 std::unique_ptr<weld::Scale> m_xSliderAngle;
381 std::unique_ptr<weld::MetricSpinButton> m_xMtrBorder;
382 std::unique_ptr<weld::Scale> m_xSliderBorder;
383 std::unique_ptr<ColorListBox> m_xLbColorFrom;
384 std::unique_ptr<weld::MetricSpinButton> m_xMtrColorFrom;
385 std::unique_ptr<ColorListBox> m_xLbColorTo;
386 std::unique_ptr<weld::MetricSpinButton> m_xMtrColorTo;
387 std::unique_ptr<SvxPresetListBox> m_xGradientLB;
388 std::unique_ptr<weld::SpinButton> m_xMtrIncrement;
389 std::unique_ptr<weld::CheckButton> m_xCbIncrement;
390 std::unique_ptr<weld::Button> m_xBtnAdd;
391 std::unique_ptr<weld::Button> m_xBtnModify;
392 std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
393 std::unique_ptr<weld::CustomWeld> m_xGradientLBWin;
394
395 DECL_LINK( ClickAddHdl_Impl, weld::Button&, void );
396 DECL_LINK( ClickModifyHdl_Impl, weld::Button&, void );
397 DECL_LINK( ChangeGradientHdl, ValueSet*, void );
399 DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
400 DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void );
401 DECL_LINK( ModifiedEditHdl_Impl, weld::SpinButton&, void );
402 DECL_LINK( ModifiedMetricHdl_Impl, weld::MetricSpinButton&, void );
403 DECL_LINK( ModifiedColorListBoxHdl_Impl, ColorListBox&, void );
404 DECL_LINK( ModifiedListBoxHdl_Impl, weld::ComboBox&, void );
405 DECL_LINK( ChangeAutoStepHdl_Impl, weld::Toggleable&, void );
406 DECL_LINK( ModifiedSliderHdl_Impl, weld::Scale&, void );
407 void ModifiedHdl_Impl(void const *);
408
409 void SetControlState_Impl( css::awt::GradientStyle eXGS );
410 sal_Int32 SearchGradientList(std::u16string_view rGradientName);
411
412 // MCGR: Preserve ColorStops until we have a UI to edit these
414
415public:
416 SvxGradientTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
417 virtual ~SvxGradientTabPage() override;
418
419 void Construct();
420
421 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
422 virtual bool FillItemSet( SfxItemSet* ) override;
423 virtual void Reset( const SfxItemSet * ) override;
424
425 virtual void ActivatePage( const SfxItemSet& rSet ) override;
426 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
427
428 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
429 void SetGradientList( XGradientListRef const & pGrdLst)
430 { m_pGradientList = pGrdLst; }
433};
434
435/************************************************************************/
436
438{
439private:
441
444
447
450
452
454 std::unique_ptr<weld::MetricSpinButton> m_xMtrDistance;
455 std::unique_ptr<weld::MetricSpinButton> m_xMtrAngle;
456 std::unique_ptr<weld::Scale> m_xSliderAngle;
457 std::unique_ptr<weld::ComboBox> m_xLbLineType;
458 std::unique_ptr<ColorListBox> m_xLbLineColor;
459 std::unique_ptr<weld::CheckButton> m_xCbBackgroundColor;
460 std::unique_ptr<ColorListBox> m_xLbBackgroundColor;
461 std::unique_ptr<SvxPresetListBox> m_xHatchLB;
462 std::unique_ptr<weld::Button> m_xBtnAdd;
463 std::unique_ptr<weld::Button> m_xBtnModify;
464 std::unique_ptr<weld::CustomWeld> m_xHatchLBWin;
465 std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
466
467 DECL_LINK(ChangeHatchHdl, ValueSet*, void);
468 void ChangeHatchHdl_Impl();
469 DECL_LINK( ModifiedEditHdl_Impl, weld::MetricSpinButton&, void );
470 DECL_LINK( ModifiedListBoxHdl_Impl, weld::ComboBox&, void );
471 DECL_LINK( ModifiedColorListBoxHdl_Impl, ColorListBox&, void );
472 DECL_LINK( ToggleHatchBackgroundColor_Impl, weld::Toggleable&, void );
473 DECL_LINK( ModifiedBackgroundHdl_Impl, ColorListBox&, void );
474 DECL_LINK( ModifiedSliderHdl_Impl, weld::Scale&, void );
475 void ModifiedHdl_Impl(void const *);
476 DECL_LINK( ClickAddHdl_Impl, weld::Button&, void );
477 DECL_LINK( ClickModifyHdl_Impl, weld::Button&, void );
478 DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
479 DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void );
480
481 sal_Int32 SearchHatchList(std::u16string_view rHatchName);
482
483public:
484 SvxHatchTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
485 virtual ~SvxHatchTabPage() override;
486
487 void Construct();
488
489 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
490 virtual bool FillItemSet( SfxItemSet* ) override;
491 virtual void Reset( const SfxItemSet * ) override;
492
493 virtual void ActivatePage( const SfxItemSet& rSet ) override;
494 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
495
496 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
497 void SetHatchingList( XHatchListRef const & pHtchLst)
498 { m_pHatchingList = pHtchLst; }
499
502};
503
504/************************************************************************/
505
507{
508private:
509
511
514
518
527
529 std::unique_ptr<SvxPresetListBox> m_xBitmapLB;
530 std::unique_ptr<weld::ComboBox> m_xBitmapStyleLB;
531 std::unique_ptr<weld::Container> m_xSizeBox;
532 std::unique_ptr<weld::CheckButton> m_xTsbScale;
533 std::unique_ptr<weld::MetricSpinButton> m_xBitmapWidth;
534 std::unique_ptr<weld::MetricSpinButton> m_xBitmapHeight;
535 std::unique_ptr<weld::Container> m_xPositionBox;
536 std::unique_ptr<weld::ComboBox> m_xPositionLB;
537 std::unique_ptr<weld::Container> m_xPositionOffBox;
538 std::unique_ptr<weld::MetricSpinButton> m_xPositionOffX;
539 std::unique_ptr<weld::MetricSpinButton> m_xPositionOffY;
540 std::unique_ptr<weld::Container> m_xTileOffBox;
541 std::unique_ptr<weld::ComboBox> m_xTileOffLB;
542 std::unique_ptr<weld::MetricSpinButton> m_xTileOffset;
543 std::unique_ptr<weld::Button> m_xBtnImport;
544 std::unique_ptr<weld::CustomWeld> m_xCtlBitmapPreview;
545 std::unique_ptr<weld::CustomWeld> m_xBitmapLBWin;
546
547 DECL_LINK( ModifyBitmapHdl, ValueSet*, void );
548 DECL_LINK( ClickScaleHdl, weld::Toggleable&, void );
549 DECL_LINK( ModifyBitmapStyleHdl, weld::ComboBox&, void );
550 DECL_LINK( ModifyBitmapSizeHdl, weld::MetricSpinButton&, void );
551 DECL_LINK( ModifyBitmapPositionHdl, weld::ComboBox&, void );
552 DECL_LINK( ModifyPositionOffsetHdl, weld::MetricSpinButton&, void );
553 DECL_LINK( ModifyTileOffsetHdl, weld::MetricSpinButton&, void );
554 DECL_LINK( ClickRenameHdl, SvxPresetListBox*, void );
555 DECL_LINK( ClickDeleteHdl, SvxPresetListBox*, void );
556 DECL_LINK( ClickImportHdl, weld::Button&, void );
557 void ClickBitmapHdl_Impl();
559 sal_Int32 SearchBitmapList(std::u16string_view rBitmapName);
560 sal_Int32 SearchBitmapList(const GraphicObject& rGraphicObject);
561
562public:
563 SvxBitmapTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
564 virtual ~SvxBitmapTabPage() override;
565
566 void Construct();
567
568 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
569
570 virtual bool FillItemSet( SfxItemSet* ) override;
571 virtual void Reset( const SfxItemSet * ) override;
572 virtual void ActivatePage( const SfxItemSet& rSet ) override;
573 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
574
575 void SetBitmapList( const XBitmapListRef& pBmpLst) { m_pBitmapList = pBmpLst; }
577};
578
579/************************************************************************/
580
582{
583private:
585
588
591
594
596 std::unique_ptr<SvxPixelCtl> m_xCtlPixel;
597 std::unique_ptr<ColorListBox> m_xLbColor;
598 std::unique_ptr<ColorListBox> m_xLbBackgroundColor;
599 std::unique_ptr<SvxPresetListBox> m_xPatternLB;
600 std::unique_ptr<weld::Button> m_xBtnAdd;
601 std::unique_ptr<weld::Button> m_xBtnModify;
602 std::unique_ptr<weld::CustomWeld> m_xCtlPixelWin;
603 std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
604 std::unique_ptr<weld::CustomWeld> m_xPatternLBWin;
605 std::unique_ptr<SvxBitmapCtl> m_xBitmapCtl;
606
607 DECL_LINK( ClickAddHdl_Impl, weld::Button&, void );
608 DECL_LINK( ClickModifyHdl_Impl, weld::Button&, void );
609 DECL_LINK( ChangePatternHdl_Impl, ValueSet*, void );
610 DECL_LINK( ChangeColorHdl_Impl, ColorListBox&, void );
611 DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
612 DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void );
613
614 sal_Int32 SearchPatternList(std::u16string_view rPatternName);
615
616public:
617 SvxPatternTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
618 virtual ~SvxPatternTabPage() override;
619
620 void Construct();
621
622 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
623 virtual bool FillItemSet( SfxItemSet* ) override;
624 virtual void Reset( const SfxItemSet * ) override;
625
626 virtual void ActivatePage( const SfxItemSet& rSet ) override;
627 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
628
629 virtual void PointChanged( weld::DrawingArea*, RectPoint eRP ) override;
630
631 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
632 void SetPatternList( XPatternListRef const & pPatternList) { m_pPatternList = pPatternList; }
635 void ChangeColor_Impl();
636};
637
638/************************************************************************/
639
640enum class ColorModel
641{
642 RGB,
643 CMYK
644};
645
647{
648private:
650
652
654
657
659
662
666 std::unique_ptr<SvxColorValueSet> m_xValSetColorList;
667 std::unique_ptr<SvxColorValueSet> m_xValSetRecentList;
668 std::unique_ptr<weld::ComboBox> m_xSelectPalette;
669 std::unique_ptr<weld::RadioButton> m_xRbRGB;
670 std::unique_ptr<weld::RadioButton> m_xRbCMYK;
671 std::unique_ptr<weld::Widget> m_xRGBcustom;
672 std::unique_ptr<weld::Widget> m_xRGBpreset;
673 std::unique_ptr<weld::Entry> m_xRpreset;
674 std::unique_ptr<weld::Entry> m_xGpreset;
675 std::unique_ptr<weld::Entry> m_xBpreset;
676 std::unique_ptr<weld::SpinButton> m_xRcustom;
677 std::unique_ptr<weld::SpinButton> m_xGcustom;
678 std::unique_ptr<weld::SpinButton> m_xBcustom;
679 std::unique_ptr<weld::HexColorControl> m_xHexpreset;
680 std::unique_ptr<weld::HexColorControl> m_xHexcustom;
681 std::unique_ptr<weld::Widget> m_xCMYKcustom;
682 std::unique_ptr<weld::Widget> m_xCMYKpreset;
683 std::unique_ptr<weld::Entry> m_xCpreset;
684 std::unique_ptr<weld::Entry> m_xYpreset;
685 std::unique_ptr<weld::Entry> m_xMpreset;
686 std::unique_ptr<weld::Entry> m_xKpreset;
687 std::unique_ptr<weld::MetricSpinButton> m_xCcustom;
688 std::unique_ptr<weld::MetricSpinButton> m_xYcustom;
689 std::unique_ptr<weld::MetricSpinButton> m_xMcustom;
690 std::unique_ptr<weld::MetricSpinButton> m_xKcustom;
691 std::unique_ptr<weld::Button> m_xBtnAdd;
692 std::unique_ptr<weld::Button> m_xBtnDelete;
693 std::unique_ptr<weld::Button> m_xBtnWorkOn;
694 std::unique_ptr<weld::Button> m_xMoreColors;
695 std::unique_ptr<weld::CustomWeld> m_xCtlPreviewOld;
696 std::unique_ptr<weld::CustomWeld> m_xCtlPreviewNew;
697 std::unique_ptr<weld::CustomWeld> m_xValSetColorListWin;
698 std::unique_ptr<weld::CustomWeld> m_xValSetRecentListWin;
699
700 static void ConvertColorValues (Color& rColor, ColorModel eModell);
701 static void RgbToCmyk_Impl( Color& rColor, sal_uInt16& rK );
702 static void CmykToRgb_Impl( Color& rColor, const sal_uInt16 nKey );
703 sal_uInt16 ColorToPercent_Impl( sal_uInt16 nColor );
704 sal_uInt16 PercentToColor_Impl( sal_uInt16 nPercent );
705
707 void FillPaletteLB();
708
709 DECL_LINK(ClickAddHdl_Impl, weld::Button&, void);
710 DECL_LINK(ClickWorkOnHdl_Impl, weld::Button&, void);
711 DECL_LINK(ClickDeleteHdl_Impl, weld::Button&, void);
712 DECL_STATIC_LINK(SvxColorTabPage, OnMoreColorsClick, weld::Button&, void);
713
714 DECL_LINK(SelectPaletteLBHdl, weld::ComboBox&, void);
715 DECL_LINK( SelectValSetHdl_Impl, ValueSet*, void );
716 DECL_LINK( SelectColorModeHdl_Impl, weld::Toggleable&, void );
717 void ChangeColor(const NamedColor &rNewColor, bool bUpdatePreset = true);
718 void SetColorModel(ColorModel eModel);
719 void ChangeColorModel();
720 void UpdateColorValues( bool bUpdatePreset = true );
721 DECL_LINK(SpinValueHdl_Impl, weld::SpinButton&, void);
722 DECL_LINK(MetricSpinValueHdl_Impl, weld::MetricSpinButton&, void);
723 DECL_LINK(ModifiedHdl_Impl, weld::Entry&, void);
724
725 void UpdateModified();
726
727 static sal_Int32 FindInCustomColors( std::u16string_view aColorName );
728 sal_Int32 FindInPalette( const Color& rColor );
729
730public:
731 SvxColorTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
732 virtual ~SvxColorTabPage() override;
733
734 void Construct();
735
736 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
737 virtual bool FillItemSet( SfxItemSet* ) override;
738 virtual void Reset( const SfxItemSet * ) override;
739
740 virtual void ActivatePage( const SfxItemSet& rSet ) override;
741 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
742
744 void SetColorList( const XColorListRef& pColList );
745
746
748
749 void SetCtlPreviewOld( const SfxItemSet& rAttrs ) { m_aCtlPreviewOld.SetAttributes( rAttrs ); }
750
751 virtual void FillUserData() override;
752};
753
754/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ColorModel
std::map< weld::Toggleable *, sal_Int32 > maButtonToPos
Definition: cuitabarea.hxx:43
void SelectButtonImpl(sal_Int32 nPos)
Definition: cuitabarea.hxx:44
sal_Int32 GetCurrentButtonPos() const
Definition: cuitabarea.hxx:63
sal_Int32 GetButtonPos(weld::Toggleable *pButton)
Definition: cuitabarea.hxx:64
std::vector< weld::Toggleable * > maButtonList
Definition: cuitabarea.hxx:42
sal_Int32 mnCurrentButton
Definition: cuitabarea.hxx:41
void SelectButton(weld::Toggleable *pButton)
Definition: cuitabarea.hxx:72
void AddButton(weld::Toggleable *pButton)
Definition: cuitabarea.hxx:58
ChangeType mnBitmapListState
Definition: cuitabarea.hxx:106
virtual void PageCreated(const OUString &rId, SfxTabPage &rPage) override
Definition: tabarea.cxx:225
ChangeType mnColorListState
Definition: cuitabarea.hxx:105
XHatchListRef mpNewHatchingList
Definition: cuitabarea.hxx:99
XColorListRef mpNewColorList
Definition: cuitabarea.hxx:95
XPatternListRef mpPatternList
Definition: cuitabarea.hxx:102
XGradientListRef mpGradientList
Definition: cuitabarea.hxx:96
const XColorListRef & GetNewColorList() const
Definition: cuitabarea.hxx:123
ChangeType mnHatchingListState
Definition: cuitabarea.hxx:109
XGradientListRef mpNewGradientList
Definition: cuitabarea.hxx:97
XPatternListRef mpNewPatternList
Definition: cuitabarea.hxx:103
DECL_LINK(CancelHdlImpl, weld::Button &, void)
SvxAreaTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, SdrModel *pModel, bool bShadow, bool bSlideBackground)
Definition: tabarea.cxx:30
XColorListRef mpColorList
Definition: cuitabarea.hxx:94
SdrModel * mpDrawModel
Definition: cuitabarea.hxx:92
void SetNewColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:121
XBitmapListRef mpNewBitmapList
Definition: cuitabarea.hxx:101
XBitmapListRef mpBitmapList
Definition: cuitabarea.hxx:100
ChangeType mnPatternListState
Definition: cuitabarea.hxx:107
XHatchListRef mpHatchingList
Definition: cuitabarea.hxx:98
void SavePalettes()
Definition: tabarea.cxx:76
ChangeType mnGradientListState
Definition: cuitabarea.hxx:108
virtual short Ok() override
Definition: tabarea.cxx:210
XHatchListRef m_pHatchingList
Definition: cuitabarea.hxx:222
std::unique_ptr< weld::Toggleable > m_xBtnPattern
Definition: cuitabarea.hxx:250
void SetPatternList(XPatternListRef const &pPtrnLst)
Definition: cuitabarea.hxx:292
std::unique_ptr< weld::Container > m_xFillTab
Definition: cuitabarea.hxx:244
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:295
virtual bool FillItemSet(SfxItemSet *) override
Definition: tparea.cxx:284
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:239
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tparea.cxx:368
void SetHatchingList(XHatchListRef const &pHtchLst)
Definition: cuitabarea.hxx:289
ChangeType * m_pnGradientListState
Definition: cuitabarea.hxx:235
std::unique_ptr< weld::Toggleable > m_xBtnBitmap
Definition: cuitabarea.hxx:249
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:232
XPatternListRef m_pPatternList
Definition: cuitabarea.hxx:224
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:238
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tparea.cxx:230
XGradientListRef m_pGradientList
Definition: cuitabarea.hxx:221
static const WhichRangesContainer pAreaRanges
Definition: cuitabarea.hxx:215
void SetGrdChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:296
static WhichRangesContainer GetRanges()
Definition: cuitabarea.hxx:279
ChangeType maFixed_ChangeType
Definition: cuitabarea.hxx:230
void Reset_Impl(const SfxItemSet *)
Definition: tparea.cxx:327
std::unique_ptr< weld::Toggleable > m_xBtnNone
Definition: cuitabarea.hxx:245
void SetBmpChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:298
void SetPtrnChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:299
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tparea.cxx:167
void SetHtchChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:297
std::unique_ptr< weld::Toggleable > m_xBtnHatch
Definition: cuitabarea.hxx:248
std::unique_ptr< weld::Toggleable > m_xBtnColor
Definition: cuitabarea.hxx:246
SvxAreaTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs, bool bSlideBackground=false)
Definition: tparea.cxx:76
void CreatePage(sal_Int32 nId, SfxTabPage &rTab)
Definition: tparea.cxx:452
void SetBitmapList(XBitmapListRef const &pBmpLst)
Definition: cuitabarea.hxx:291
static std::unique_ptr< SfxTabPage > CreateWithSlideBackground(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tparea.cxx:375
std::unique_ptr< SfxTabPage > m_xFillTabPage
Definition: cuitabarea.hxx:217
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:286
virtual void Reset(const SfxItemSet *) override
Definition: tparea.cxx:332
XColorListRef m_pColorList
Definition: cuitabarea.hxx:220
void SelectFillType(weld::Toggleable &rButton, const SfxItemSet *_pSet=nullptr)
Definition: tparea.cxx:413
DeactivateRC DeactivatePage_Impl(SfxItemSet *pSet)
Definition: tparea.cxx:225
void SetOptimalSize(weld::DialogController *pController)
Definition: tparea.cxx:123
ChangeType * m_pnHatchingListState
Definition: cuitabarea.hxx:236
virtual ~SvxAreaTabPage() override
Definition: tparea.cxx:162
bool IsBtnClicked() const
Definition: cuitabarea.hxx:258
SfxTabPage * GetFillTabPage()
Definition: cuitabarea.hxx:256
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tparea.cxx:432
ChangeType * m_pnBitmapListState
Definition: cuitabarea.hxx:233
ButtonBox maBox
Definition: cuitabarea.hxx:218
std::unique_ptr< weld::Toggleable > m_xBtnUseBackground
Definition: cuitabarea.hxx:251
DECL_LINK(SelectFillTypeHdl_Impl, weld::Toggleable &, void)
bool FillItemSet_Impl(SfxItemSet *)
Definition: tparea.cxx:279
ChangeType * m_pnPatternListState
Definition: cuitabarea.hxx:234
void SetGradientList(XGradientListRef const &pGrdLst)
Definition: cuitabarea.hxx:287
XBitmapListRef m_pBitmapList
Definition: cuitabarea.hxx:223
std::unique_ptr< weld::Toggleable > m_xBtnGradient
Definition: cuitabarea.hxx:247
DECL_LINK(ClickScaleHdl, weld::Toggleable &, void)
FieldUnit meFieldUnit
Definition: cuitabarea.hxx:523
std::unique_ptr< weld::Button > m_xBtnImport
Definition: cuitabarea.hxx:543
std::unique_ptr< SvxPresetListBox > m_xBitmapLB
Definition: cuitabarea.hxx:529
std::unique_ptr< weld::MetricSpinButton > m_xBitmapWidth
Definition: cuitabarea.hxx:533
std::unique_ptr< weld::Container > m_xPositionBox
Definition: cuitabarea.hxx:535
DECL_LINK(ClickRenameHdl, SvxPresetListBox *, void)
std::unique_ptr< weld::MetricSpinButton > m_xPositionOffY
Definition: cuitabarea.hxx:539
DECL_LINK(ClickDeleteHdl, SvxPresetListBox *, void)
DECL_LINK(ModifyBitmapStyleHdl, weld::ComboBox &, void)
const SdrView * mpView
Definition: cuitabarea.hxx:521
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:510
DECL_LINK(ModifyBitmapHdl, ValueSet *, void)
std::unique_ptr< weld::CheckButton > m_xTsbScale
Definition: cuitabarea.hxx:532
DECL_LINK(ModifyBitmapPositionHdl, weld::ComboBox &, void)
XBitmapListRef m_pBitmapList
Definition: cuitabarea.hxx:512
SvxXRectPreview m_aCtlBitmapPreview
Definition: cuitabarea.hxx:528
std::unique_ptr< weld::MetricSpinButton > m_xPositionOffX
Definition: cuitabarea.hxx:538
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpbitmap.cxx:173
std::unique_ptr< weld::Container > m_xPositionOffBox
Definition: cuitabarea.hxx:537
sal_Int32 SearchBitmapList(std::u16string_view rBitmapName)
Definition: tpbitmap.cxx:803
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpbitmap.cxx:182
DECL_LINK(ClickImportHdl, weld::Button &, void)
SvxBitmapTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpbitmap.cxx:69
double m_fObjectHeight
Definition: cuitabarea.hxx:516
std::unique_ptr< weld::ComboBox > m_xTileOffLB
Definition: cuitabarea.hxx:541
std::unique_ptr< weld::MetricSpinButton > m_xTileOffset
Definition: cuitabarea.hxx:542
std::unique_ptr< weld::ComboBox > m_xBitmapStyleLB
Definition: cuitabarea.hxx:530
void SetBmpChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:576
std::unique_ptr< weld::CustomWeld > m_xBitmapLBWin
Definition: cuitabarea.hxx:545
std::unique_ptr< weld::MetricSpinButton > m_xBitmapHeight
Definition: cuitabarea.hxx:534
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:519
ChangeType * m_pnBitmapListState
Definition: cuitabarea.hxx:513
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:520
DECL_LINK(ModifyBitmapSizeHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::Container > m_xSizeBox
Definition: cuitabarea.hxx:531
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpbitmap.cxx:415
std::unique_ptr< weld::ComboBox > m_xPositionLB
Definition: cuitabarea.hxx:536
DECL_LINK(ModifyTileOffsetHdl, weld::MetricSpinButton &, void)
DECL_LINK(ModifyPositionOffsetHdl, weld::MetricSpinButton &, void)
void SetBitmapList(const XBitmapListRef &pBmpLst)
Definition: cuitabarea.hxx:575
std::unique_ptr< weld::Container > m_xTileOffBox
Definition: cuitabarea.hxx:540
virtual ~SvxBitmapTabPage() override
Definition: tpbitmap.cxx:138
void ClickBitmapHdl_Impl()
Definition: tpbitmap.cxx:420
virtual void Reset(const SfxItemSet *) override
Definition: tpbitmap.cxx:256
void CalculateBitmapPresetSize()
Definition: tpbitmap.cxx:428
std::unique_ptr< weld::CustomWeld > m_xCtlBitmapPreview
Definition: cuitabarea.hxx:544
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpbitmap.cxx:150
static void CmykToRgb_Impl(Color &rColor, const sal_uInt16 nKey)
Definition: tpcolor.cxx:715
std::unique_ptr< weld::Entry > m_xGpreset
Definition: cuitabarea.hxx:674
void ImpColorCountChanged()
Definition: tpcolor.cxx:168
static void RgbToCmyk_Impl(Color &rColor, sal_uInt16 &rK)
Definition: tpcolor.cxx:699
DECL_LINK(SelectColorModeHdl_Impl, weld::Toggleable &, void)
std::unique_ptr< weld::Entry > m_xKpreset
Definition: cuitabarea.hxx:686
const SfxItemSet & rOutAttrs
Definition: cuitabarea.hxx:649
void FillPaletteLB()
Definition: tpcolor.cxx:176
DECL_LINK(ClickWorkOnHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::MetricSpinButton > m_xYcustom
Definition: cuitabarea.hxx:688
std::unique_ptr< weld::Widget > m_xCMYKcustom
Definition: cuitabarea.hxx:681
std::unique_ptr< weld::SpinButton > m_xGcustom
Definition: cuitabarea.hxx:677
void UpdateColorValues(bool bUpdatePreset=true)
Definition: tpcolor.cxx:627
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpcolor.cxx:229
void SetColorList(const XColorListRef &pColList)
Definition: tpcolor.cxx:790
std::unique_ptr< weld::Entry > m_xRpreset
Definition: cuitabarea.hxx:673
static sal_Int32 FindInCustomColors(std::u16string_view aColorName)
Definition: tpcolor.cxx:671
void SetCtlPreviewOld(const SfxItemSet &rAttrs)
Definition: cuitabarea.hxx:749
ChangeType * pnColorListState
Definition: cuitabarea.hxx:653
std::unique_ptr< weld::Widget > m_xCMYKpreset
Definition: cuitabarea.hxx:682
std::unique_ptr< weld::Button > m_xBtnDelete
Definition: cuitabarea.hxx:692
std::unique_ptr< weld::Widget > m_xRGBcustom
Definition: cuitabarea.hxx:671
void SetPropertyList(XPropertyListType t, const XPropertyListRef &xRef)
Definition: tpcolor.cxx:784
sal_uInt16 PercentToColor_Impl(sal_uInt16 nPercent)
Definition: tpcolor.cxx:758
XFillAttrSetItem aXFillAttr
Definition: cuitabarea.hxx:655
std::unique_ptr< weld::SpinButton > m_xBcustom
Definition: cuitabarea.hxx:678
std::unique_ptr< weld::MetricSpinButton > m_xCcustom
Definition: cuitabarea.hxx:687
std::unique_ptr< weld::CustomWeld > m_xCtlPreviewOld
Definition: cuitabarea.hxx:695
std::unique_ptr< SvxColorValueSet > m_xValSetRecentList
Definition: cuitabarea.hxx:667
std::unique_ptr< weld::CustomWeld > m_xCtlPreviewNew
Definition: cuitabarea.hxx:696
void ChangeColor(const NamedColor &rNewColor, bool bUpdatePreset=true)
Definition: tpcolor.cxx:581
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:747
void Construct()
Definition: tpcolor.cxx:192
NamedColor m_aCurrentColor
Definition: cuitabarea.hxx:661
DECL_LINK(SelectValSetHdl_Impl, ValueSet *, void)
DECL_LINK(ModifiedHdl_Impl, weld::Entry &, void)
static void ConvertColorValues(Color &rColor, ColorModel eModell)
Definition: tpcolor.cxx:542
ColorModel eCM
Definition: cuitabarea.hxx:658
std::unique_ptr< weld::Entry > m_xBpreset
Definition: cuitabarea.hxx:675
void ChangeColorModel()
Definition: tpcolor.cxx:603
std::unique_ptr< weld::RadioButton > m_xRbCMYK
Definition: cuitabarea.hxx:670
virtual void FillUserData() override
Definition: tpcolor.cxx:777
std::unique_ptr< weld::RadioButton > m_xRbRGB
Definition: cuitabarea.hxx:669
std::unique_ptr< weld::HexColorControl > m_xHexpreset
Definition: cuitabarea.hxx:679
DECL_LINK(MetricSpinValueHdl_Impl, weld::MetricSpinButton &, void)
Color m_aPreviousColor
Definition: cuitabarea.hxx:660
DECL_LINK(ClickAddHdl_Impl, weld::Button &, void)
XColorListRef pColorList
Definition: cuitabarea.hxx:651
std::unique_ptr< SvxColorValueSet > m_xValSetColorList
Definition: cuitabarea.hxx:666
sal_uInt16 ColorToPercent_Impl(sal_uInt16 nColor)
Definition: tpcolor.cxx:739
sal_Int32 FindInPalette(const Color &rColor)
Definition: tpcolor.cxx:689
std::unique_ptr< weld::Button > m_xBtnWorkOn
Definition: cuitabarea.hxx:693
virtual ~SvxColorTabPage() override
Definition: tpcolor.cxx:160
std::unique_ptr< weld::ComboBox > m_xSelectPalette
Definition: cuitabarea.hxx:668
SfxItemSet & rXFSet
Definition: cuitabarea.hxx:656
std::unique_ptr< weld::MetricSpinButton > m_xMcustom
Definition: cuitabarea.hxx:689
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:691
SvxXRectPreview m_aCtlPreviewNew
Definition: cuitabarea.hxx:665
std::unique_ptr< weld::HexColorControl > m_xHexcustom
Definition: cuitabarea.hxx:680
std::unique_ptr< weld::SpinButton > m_xRcustom
Definition: cuitabarea.hxx:676
std::unique_ptr< weld::Entry > m_xYpreset
Definition: cuitabarea.hxx:684
std::unique_ptr< weld::Entry > m_xCpreset
Definition: cuitabarea.hxx:683
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpcolor.cxx:286
std::unique_ptr< weld::CustomWeld > m_xValSetRecentListWin
Definition: cuitabarea.hxx:698
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpcolor.cxx:201
std::unique_ptr< weld::Entry > m_xMpreset
Definition: cuitabarea.hxx:685
virtual void Reset(const SfxItemSet *) override
Definition: tpcolor.cxx:260
void SetColorModel(ColorModel eModel)
Definition: tpcolor.cxx:595
std::unique_ptr< weld::CustomWeld > m_xValSetColorListWin
Definition: cuitabarea.hxx:697
std::unique_ptr< weld::Widget > m_xRGBpreset
Definition: cuitabarea.hxx:672
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpcolor.cxx:237
DECL_LINK(SelectPaletteLBHdl, weld::ComboBox &, void)
DECL_STATIC_LINK(SvxColorTabPage, OnMoreColorsClick, weld::Button &, void)
std::unique_ptr< weld::Button > m_xMoreColors
Definition: cuitabarea.hxx:694
DECL_LINK(SpinValueHdl_Impl, weld::SpinButton &, void)
SvxColorTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpcolor.cxx:44
SvxXRectPreview m_aCtlPreviewOld
Definition: cuitabarea.hxx:664
std::unique_ptr< weld::MetricSpinButton > m_xKcustom
Definition: cuitabarea.hxx:690
DECL_LINK(ClickDeleteHdl_Impl, weld::Button &, void)
PaletteManager maPaletteManager
Definition: cuitabarea.hxx:663
void UpdateModified()
Definition: tpcolor.cxx:254
std::unique_ptr< weld::SpinButton > m_xMtrIncrement
Definition: cuitabarea.hxx:388
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpgradnt.cxx:233
basegfx::BColorStops createColorStops()
Definition: tpgradnt.cxx:653
virtual void Reset(const SfxItemSet *) override
Definition: tpgradnt.cxx:222
std::unique_ptr< ColorListBox > m_xLbColorFrom
Definition: cuitabarea.hxx:383
std::unique_ptr< weld::MetricSpinButton > m_xMtrCenterX
Definition: cuitabarea.hxx:376
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpgradnt.cxx:132
std::unique_ptr< weld::CustomWeld > m_xGradientLBWin
Definition: cuitabarea.hxx:393
std::unique_ptr< weld::Label > m_xFtAngle
Definition: cuitabarea.hxx:378
std::unique_ptr< weld::MetricSpinButton > m_xMtrColorFrom
Definition: cuitabarea.hxx:384
void SetControlState_Impl(css::awt::GradientStyle eXGS)
Definition: tpgradnt.cxx:590
std::unique_ptr< weld::CheckButton > m_xCbIncrement
Definition: cuitabarea.hxx:389
std::unique_ptr< weld::ComboBox > m_xLbGradientType
Definition: cuitabarea.hxx:374
SvxXRectPreview m_aCtlPreview
Definition: cuitabarea.hxx:373
void ChangeGradientHdl_Impl()
Definition: tpgradnt.cxx:506
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:367
void ModifiedHdl_Impl(void const *)
Definition: tpgradnt.cxx:283
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpgradnt.cxx:175
std::unique_ptr< weld::Button > m_xBtnModify
Definition: cuitabarea.hxx:391
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:392
std::unique_ptr< ColorListBox > m_xLbColorTo
Definition: cuitabarea.hxx:385
sal_Int32 SearchGradientList(std::u16string_view rGradientName)
Definition: tpgradnt.cxx:636
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:390
DECL_LINK(ClickRenameHdl_Impl, SvxPresetListBox *, void)
void SetGradientList(XGradientListRef const &pGrdLst)
Definition: cuitabarea.hxx:429
std::unique_ptr< weld::Scale > m_xSliderAngle
Definition: cuitabarea.hxx:380
std::unique_ptr< weld::Scale > m_xSliderBorder
Definition: cuitabarea.hxx:382
DECL_LINK(ClickModifyHdl_Impl, weld::Button &, void)
DECL_LINK(ModifiedMetricHdl_Impl, weld::MetricSpinButton &, void)
ChangeType * m_pnGradientListState
Definition: cuitabarea.hxx:364
XGradientListRef m_pGradientList
Definition: cuitabarea.hxx:362
SvxGradientTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpgradnt.cxx:42
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpgradnt.cxx:183
DECL_LINK(ChangeAutoStepHdl_Impl, weld::Toggleable &, void)
DECL_LINK(ModifiedListBoxHdl_Impl, weld::ComboBox &, void)
DECL_LINK(ClickAddHdl_Impl, weld::Button &, void)
void SetGrdChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:431
virtual ~SvxGradientTabPage() override
Definition: tpgradnt.cxx:118
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:432
DECL_LINK(ChangeGradientHdl, ValueSet *, void)
std::unique_ptr< SvxPresetListBox > m_xGradientLB
Definition: cuitabarea.hxx:387
DECL_LINK(ModifiedEditHdl_Impl, weld::SpinButton &, void)
DECL_LINK(ModifiedSliderHdl_Impl, weld::Scale &, void)
std::unique_ptr< weld::Label > m_xFtCenter
Definition: cuitabarea.hxx:375
DECL_LINK(ClickDeleteHdl_Impl, SvxPresetListBox *, void)
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:365
XColorListRef m_pColorList
Definition: cuitabarea.hxx:361
std::unique_ptr< weld::MetricSpinButton > m_xMtrColorTo
Definition: cuitabarea.hxx:386
basegfx::BColorStops m_aColorStops
Definition: cuitabarea.hxx:371
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:359
std::unique_ptr< weld::MetricSpinButton > m_xMtrBorder
Definition: cuitabarea.hxx:381
std::unique_ptr< weld::MetricSpinButton > m_xMtrCenterY
Definition: cuitabarea.hxx:377
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:368
std::unique_ptr< weld::MetricSpinButton > m_xMtrAngle
Definition: cuitabarea.hxx:379
DECL_LINK(ModifiedColorListBoxHdl_Impl, ColorListBox &, void)
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:428
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:501
virtual bool FillItemSet(SfxItemSet *) override
Definition: tphatch.cxx:223
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:465
MapUnit m_ePoolUnit
Definition: cuitabarea.hxx:451
void ChangeHatchHdl_Impl()
Definition: tphatch.cxx:352
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:496
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tphatch.cxx:272
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:440
std::unique_ptr< weld::CheckButton > m_xCbBackgroundColor
Definition: cuitabarea.hxx:459
XColorListRef m_pColorList
Definition: cuitabarea.hxx:442
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:446
std::unique_ptr< weld::Scale > m_xSliderAngle
Definition: cuitabarea.hxx:456
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:449
std::unique_ptr< weld::Button > m_xBtnModify
Definition: cuitabarea.hxx:463
ChangeType * m_pnHatchingListState
Definition: cuitabarea.hxx:445
DECL_LINK(ModifiedListBoxHdl_Impl, weld::ComboBox &, void)
SvxHatchTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tphatch.cxx:46
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:448
virtual ~SvxHatchTabPage() override
Definition: tphatch.cxx:120
void ModifiedHdl_Impl(void const *)
Definition: tphatch.cxx:328
DECL_LINK(ClickDeleteHdl_Impl, SvxPresetListBox *, void)
std::unique_ptr< weld::MetricSpinButton > m_xMtrDistance
Definition: cuitabarea.hxx:454
DECL_LINK(ChangeHatchHdl, ValueSet *, void)
DECL_LINK(ToggleHatchBackgroundColor_Impl, weld::Toggleable &, void)
DECL_LINK(ModifiedEditHdl_Impl, weld::MetricSpinButton &, void)
virtual void Reset(const SfxItemSet *) override
Definition: tphatch.cxx:253
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:462
DECL_LINK(ClickRenameHdl_Impl, SvxPresetListBox *, void)
std::unique_ptr< weld::CustomWeld > m_xHatchLBWin
Definition: cuitabarea.hxx:464
SvxXRectPreview m_aCtlPreview
Definition: cuitabarea.hxx:453
void Construct()
Definition: tphatch.cxx:129
std::unique_ptr< ColorListBox > m_xLbBackgroundColor
Definition: cuitabarea.hxx:460
std::unique_ptr< ColorListBox > m_xLbLineColor
Definition: cuitabarea.hxx:458
void SetHatchingList(XHatchListRef const &pHtchLst)
Definition: cuitabarea.hxx:497
DECL_LINK(ModifiedColorListBoxHdl_Impl, ColorListBox &, void)
XHatchListRef m_pHatchingList
Definition: cuitabarea.hxx:443
DECL_LINK(ModifiedSliderHdl_Impl, weld::Scale &, void)
DECL_LINK(ClickModifyHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::MetricSpinButton > m_xMtrAngle
Definition: cuitabarea.hxx:455
std::unique_ptr< SvxPresetListBox > m_xHatchLB
Definition: cuitabarea.hxx:461
std::unique_ptr< weld::ComboBox > m_xLbLineType
Definition: cuitabarea.hxx:457
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tphatch.cxx:134
DECL_LINK(ClickAddHdl_Impl, weld::Button &, void)
DECL_LINK(ModifiedBackgroundHdl_Impl, ColorListBox &, void)
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tphatch.cxx:198
sal_Int32 SearchHatchList(std::u16string_view rHatchName)
Definition: tphatch.cxx:206
void SetHtchChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:500
SvxPatternTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tppattern.cxx:72
DECL_LINK(ClickAddHdl_Impl, weld::Button &, void)
ChangeType * m_pnPatternListState
Definition: cuitabarea.hxx:589
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tppattern.cxx:133
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:593
XColorListRef m_pColorList
Definition: cuitabarea.hxx:586
XPatternListRef m_pPatternList
Definition: cuitabarea.hxx:587
std::unique_ptr< weld::Button > m_xBtnModify
Definition: cuitabarea.hxx:601
void SetPtrnChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:633
virtual void Reset(const SfxItemSet *) override
Definition: tppattern.cxx:210
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:631
std::unique_ptr< weld::CustomWeld > m_xPatternLBWin
Definition: cuitabarea.hxx:604
DECL_LINK(ChangePatternHdl_Impl, ValueSet *, void)
DECL_LINK(ClickModifyHdl_Impl, weld::Button &, void)
void ChangeColor_Impl()
Definition: tppattern.cxx:506
std::unique_ptr< ColorListBox > m_xLbColor
Definition: cuitabarea.hxx:597
DECL_LINK(ChangeColorHdl_Impl, ColorListBox &, void)
virtual bool FillItemSet(SfxItemSet *) override
Definition: tppattern.cxx:188
SvxXRectPreview m_aCtlPreview
Definition: cuitabarea.hxx:595
virtual ~SvxPatternTabPage() override
Definition: tppattern.cxx:117
void SetPatternList(XPatternListRef const &pPatternList)
Definition: cuitabarea.hxx:632
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:584
std::unique_ptr< weld::CustomWeld > m_xCtlPixelWin
Definition: cuitabarea.hxx:602
DECL_LINK(ClickRenameHdl_Impl, SvxPresetListBox *, void)
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:603
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:600
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tppattern.cxx:179
std::unique_ptr< SvxPresetListBox > m_xPatternLB
Definition: cuitabarea.hxx:599
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:590
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tppattern.cxx:239
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:634
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:592
std::unique_ptr< SvxPixelCtl > m_xCtlPixel
Definition: cuitabarea.hxx:596
DECL_LINK(ClickDeleteHdl_Impl, SvxPresetListBox *, void)
sal_Int32 SearchPatternList(std::u16string_view rPatternName)
Definition: tppattern.cxx:536
virtual void PointChanged(weld::DrawingArea *, RectPoint eRP) override
Definition: tppattern.cxx:521
std::unique_ptr< SvxBitmapCtl > m_xBitmapCtl
Definition: cuitabarea.hxx:605
std::unique_ptr< ColorListBox > m_xLbBackgroundColor
Definition: cuitabarea.hxx:598
std::unique_ptr< ColorListBox > m_xLbShadowColor
Definition: cuitabarea.hxx:324
void SetPageType(PageType nInType)
Definition: cuitabarea.hxx:348
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpshadow.cxx:165
std::unique_ptr< weld::CustomWeld > m_xCtlPosition
Definition: cuitabarea.hxx:327
std::unique_ptr< weld::MetricSpinButton > m_xLbShadowBlurMetric
Definition: cuitabarea.hxx:326
XColorListRef m_pColorList
Definition: cuitabarea.hxx:310
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:347
DECL_LINK(ClickShadowHdl_Impl, weld::Toggleable &, void)
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tpshadow.cxx:501
SvxRectCtl m_aCtlPosition
Definition: cuitabarea.hxx:319
std::unique_ptr< weld::MetricSpinButton > m_xMtrDistance
Definition: cuitabarea.hxx:323
virtual ~SvxShadowTabPage() override
Definition: tpshadow.cxx:157
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:316
DECL_LINK(ModifyShadowHdl_Impl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::Widget > m_xGridShadow
Definition: cuitabarea.hxx:322
std::unique_ptr< weld::CustomWeld > m_xCtlXRectPreview
Definition: cuitabarea.hxx:328
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpshadow.cxx:219
static WhichRangesContainer GetRanges()
Definition: cuitabarea.hxx:339
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:308
SvxShadowTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpshadow.cxx:52
std::unique_ptr< weld::MetricSpinButton > m_xMtrTransparent
Definition: cuitabarea.hxx:325
void SetDlgType(sal_uInt16 nInType)
Definition: cuitabarea.hxx:349
PageType m_nPageType
Definition: cuitabarea.hxx:312
virtual void PointChanged(weld::DrawingArea *pWindow, RectPoint eRP) override
Definition: tpshadow.cxx:495
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:315
std::unique_ptr< weld::CheckButton > m_xTsbShowShadow
Definition: cuitabarea.hxx:321
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpshadow.cxx:435
static const WhichRangesContainer pShadowRanges
Definition: cuitabarea.hxx:305
virtual void Reset(const SfxItemSet *) override
Definition: tpshadow.cxx:335
SvxXShadowPreview m_aCtlXRectPreview
Definition: cuitabarea.hxx:320
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:311
sal_uInt16 m_nDlgType
Definition: cuitabarea.hxx:313
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpshadow.cxx:210
DECL_LINK(SelectShadowHdl_Impl, ColorListBox &, void)
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:350
bool InitPreview(const SfxItemSet &rSet)
Definition: tptrans.cxx:442
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrStartValue
Definition: cuitabarea.hxx:163
basegfx::BColorStops createColorStops()
Definition: tptrans.cxx:512
DECL_LINK(ClickTransGradientHdl_Impl, weld::Toggleable &, void)
DECL_LINK(ClickTransLinearHdl_Impl, weld::Toggleable &, void)
virtual ~SvxTransparenceTabPage() override
Definition: tptrans.cxx:85
void ActivateGradient(bool bActivate)
Definition: tptrans.cxx:137
std::unique_ptr< weld::Widget > m_xCtlXRectBorder
Definition: cuitabarea.hxx:166
XFillAttrSetItem aXFillAttr
Definition: cuitabarea.hxx:139
DECL_LINK(ModifiedTrgrListBoxHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrCenterX
Definition: cuitabarea.hxx:157
basegfx::BColorStops maColorStops
Definition: cuitabarea.hxx:173
std::unique_ptr< weld::Label > m_xFtTrgrCenterX
Definition: cuitabarea.hxx:156
const SfxItemSet & rOutAttrs
Definition: cuitabarea.hxx:132
SvxXRectPreview m_aCtlBitmapPreview
Definition: cuitabarea.hxx:142
virtual bool FillItemSet(SfxItemSet *) override
Definition: tptrans.cxx:244
std::unique_ptr< weld::Widget > m_xGridGradient
Definition: cuitabarea.hxx:154
void InvalidatePreview(bool bEnable=true)
Definition: tptrans.cxx:486
std::unique_ptr< weld::CustomWeld > m_xCtlXRectPreview
Definition: cuitabarea.hxx:170
std::unique_ptr< weld::CustomWeld > m_xCtlBitmapPreview
Definition: cuitabarea.hxx:169
DECL_LINK(ModifiedTrgrEditHdl_Impl, weld::MetricSpinButton &, void)
virtual void Reset(const SfxItemSet *) override
Definition: tptrans.cxx:343
std::unique_ptr< weld::ComboBox > m_xLbTrgrGradientType
Definition: cuitabarea.hxx:155
DECL_LINK(ClickTransOffHdl_Impl, weld::Toggleable &, void)
std::unique_ptr< weld::Widget > m_xCtlBitmapBorder
Definition: cuitabarea.hxx:165
std::unique_ptr< weld::RadioButton > m_xRbtTransOff
Definition: cuitabarea.hxx:146
std::unique_ptr< weld::RadioButton > m_xRbtTransGradient
Definition: cuitabarea.hxx:148
virtual void ChangesApplied() override
Definition: tptrans.cxx:409
SvxTransparenceTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tptrans.cxx:186
void ModifiedTrgrHdl_Impl(const weld::ComboBox *)
Definition: tptrans.cxx:113
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tptrans.cxx:535
std::unique_ptr< weld::MetricSpinButton > m_xMtrTransparent
linear transparency
Definition: cuitabarea.hxx:151
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrBorder
Definition: cuitabarea.hxx:162
void SetControlState_Impl(css::awt::GradientStyle eXGS)
Definition: tptrans.cxx:148
static WhichRangesContainer GetRanges()
Definition: cuitabarea.hxx:198
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrAngle
Definition: cuitabarea.hxx:161
SvxXRectPreview m_aCtlXRectPreview
Definition: cuitabarea.hxx:143
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrCenterY
Definition: cuitabarea.hxx:159
void SetPageType(PageType nInType)
Definition: cuitabarea.hxx:206
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrEndValue
Definition: cuitabarea.hxx:164
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tptrans.cxx:239
void ActivateLinear(bool bActivate)
Definition: tptrans.cxx:89
std::unique_ptr< weld::RadioButton > m_xRbtTransLinear
Definition: cuitabarea.hxx:147
static const WhichRangesContainer pTransparenceRanges
Definition: cuitabarea.hxx:130
DECL_LINK(ModifyTransparentHdl_Impl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::Label > m_xFtTrgrCenterY
Definition: cuitabarea.hxx:158
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tptrans.cxx:421
void SetDlgType(sal_uInt16 nInType)
Definition: cuitabarea.hxx:207
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tptrans.cxx:433
std::unique_ptr< weld::Label > m_xFtTrgrAngle
Definition: cuitabarea.hxx:160
void SetAttributes(const SfxItemSet &rItemSet)
#define NO_BUTTON_SELECTED
Definition: cuitabarea.hxx:31
@ Area
PageType
FieldUnit
sal_uInt16 nPos
MapUnit
RectPoint
ChangeType
DeactivateRC
XPropertyListType