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 OString& 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 DECL_LINK(ClickTransOffHdl_Impl, weld::Toggleable&, void);
173 DECL_LINK(ClickTransLinearHdl_Impl, weld::Toggleable&, void);
174 DECL_LINK(ClickTransGradientHdl_Impl, weld::Toggleable&, void );
175 DECL_LINK(ModifyTransparentHdl_Impl, weld::MetricSpinButton&, void);
176 DECL_LINK(ModifiedTrgrEditHdl_Impl, weld::MetricSpinButton&, void);
177 DECL_LINK(ModifiedTrgrListBoxHdl_Impl, weld::ComboBox&, void);
179
180 void ActivateLinear(bool bActivate);
181 void ActivateGradient(bool bActivate);
182 void SetControlState_Impl(css::awt::GradientStyle eXGS);
183
184 bool InitPreview ( const SfxItemSet& rSet );
185 void InvalidatePreview (bool bEnable = true );
186
187public:
188 SvxTransparenceTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
189 virtual ~SvxTransparenceTabPage() override;
190
191 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*);
193
194 virtual bool FillItemSet(SfxItemSet*) override;
195 virtual void Reset(const SfxItemSet*) override;
196 virtual void ChangesApplied() override;
197 virtual void ActivatePage(const SfxItemSet& rSet) override;
198 virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
199
200 void SetPageType(PageType nInType) { nPageType = nInType; }
201 void SetDlgType(sal_uInt16 nInType) { nDlgType = nInType; }
202 virtual void PageCreated(const SfxAllItemSet& aSet) override;
203};
204
205/************************************************************************/
206
208{
210private:
211 std::unique_ptr<SfxTabPage> m_xFillTabPage;
213
219
220 // Placeholders for pointer-based entries; these will be inited
221 // to point to these so that the page is usable without that
222 // SvxAreaTabDialog has to call the setter methods (e.g. SetColorChgd).
223 // Without that the pages used in SvxAreaTabDialog are not usable
225
231
234
235 bool m_bBtnClicked = false;
236
237protected:
238 std::unique_ptr<weld::Container> m_xFillTab;
239 std::unique_ptr<weld::Toggleable> m_xBtnNone;
240 std::unique_ptr<weld::Toggleable> m_xBtnColor;
241 std::unique_ptr<weld::Toggleable> m_xBtnGradient;
242 std::unique_ptr<weld::Toggleable> m_xBtnHatch;
243 std::unique_ptr<weld::Toggleable> m_xBtnBitmap;
244 std::unique_ptr<weld::Toggleable> m_xBtnPattern;
245 std::unique_ptr<weld::Toggleable> m_xBtnUseBackground;
246
247 void SetOptimalSize(weld::DialogController* pController);
248
249 void SelectFillType( weld::Toggleable& rButton, const SfxItemSet* _pSet = nullptr );
251
252 bool IsBtnClicked() const { return m_bBtnClicked; }
253
254private:
255 DECL_LINK(SelectFillTypeHdl_Impl, weld::Toggleable&, void);
256
257 template< typename TabPage >
259 template< typename TabPage >
260 void Reset_Impl( const SfxItemSet* );
261 template< typename TabPage >
263
264public:
266 const SfxItemSet& rInAttrs, bool bSlideBackground = false);
267 virtual ~SvxAreaTabPage() override;
268
269 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
270 static std::unique_ptr<SfxTabPage>
272 const SfxItemSet*);
274
275 virtual bool FillItemSet( SfxItemSet* ) override;
276 virtual void Reset( const SfxItemSet * ) override;
277 virtual void ActivatePage( const SfxItemSet& rSet ) override;
278 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
279
280 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
281 void SetGradientList( XGradientListRef const & pGrdLst)
282 { m_pGradientList = pGrdLst; }
283 void SetHatchingList( XHatchListRef const & pHtchLst)
284 { m_pHatchingList = pHtchLst; }
285 void SetBitmapList( XBitmapListRef const & pBmpLst) { m_pBitmapList = pBmpLst; }
286 void SetPatternList( XPatternListRef const &pPtrnLst ) { m_pPatternList = pPtrnLst; }
287 virtual void PageCreated(const SfxAllItemSet& aSet) override;
288 void CreatePage(sal_Int32 nId, SfxTabPage& rTab);
294};
295
296
298{
300
301private:
303
307 sal_uInt16 m_nDlgType;
308
312
315 std::unique_ptr<weld::CheckButton> m_xTsbShowShadow;
316 std::unique_ptr<weld::Widget> m_xGridShadow;
317 std::unique_ptr<weld::MetricSpinButton> m_xMtrDistance;
318 std::unique_ptr<ColorListBox> m_xLbShadowColor;
319 std::unique_ptr<weld::MetricSpinButton> m_xMtrTransparent;
320 std::unique_ptr<weld::MetricSpinButton> m_xLbShadowBlurMetric;
321 std::unique_ptr<weld::CustomWeld> m_xCtlPosition;
322 std::unique_ptr<weld::CustomWeld> m_xCtlXRectPreview;
323
324 DECL_LINK(ClickShadowHdl_Impl, weld::Toggleable&, void);
325 DECL_LINK(ModifyShadowHdl_Impl, weld::MetricSpinButton&, void);
326 DECL_LINK(SelectShadowHdl_Impl, ColorListBox&, void);
327
328public:
329 SvxShadowTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
330 virtual ~SvxShadowTabPage() override;
331
332 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
334
335 virtual bool FillItemSet( SfxItemSet* ) override;
336 virtual void Reset( const SfxItemSet * ) override;
337 virtual void ActivatePage( const SfxItemSet& rSet ) override;
338 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
339 virtual void PointChanged( weld::DrawingArea* pWindow, RectPoint eRP ) override;
340
341 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
342 void SetPageType( PageType nInType ) { m_nPageType = nInType; }
343 void SetDlgType( sal_uInt16 nInType ) { m_nDlgType = nInType; }
345 virtual void PageCreated(const SfxAllItemSet& aSet) override;
346};
347
348/************************************************************************/
349
351{
352private:
354
357
360
363
365 std::unique_ptr<weld::ComboBox> m_xLbGradientType;
366 std::unique_ptr<weld::Label> m_xFtCenter;
367 std::unique_ptr<weld::MetricSpinButton> m_xMtrCenterX;
368 std::unique_ptr<weld::MetricSpinButton> m_xMtrCenterY;
369 std::unique_ptr<weld::Label> m_xFtAngle;
370 std::unique_ptr<weld::MetricSpinButton> m_xMtrAngle;
371 std::unique_ptr<weld::Scale> m_xSliderAngle;
372 std::unique_ptr<weld::MetricSpinButton> m_xMtrBorder;
373 std::unique_ptr<weld::Scale> m_xSliderBorder;
374 std::unique_ptr<ColorListBox> m_xLbColorFrom;
375 std::unique_ptr<weld::MetricSpinButton> m_xMtrColorFrom;
376 std::unique_ptr<ColorListBox> m_xLbColorTo;
377 std::unique_ptr<weld::MetricSpinButton> m_xMtrColorTo;
378 std::unique_ptr<SvxPresetListBox> m_xGradientLB;
379 std::unique_ptr<weld::SpinButton> m_xMtrIncrement;
380 std::unique_ptr<weld::CheckButton> m_xCbIncrement;
381 std::unique_ptr<weld::Button> m_xBtnAdd;
382 std::unique_ptr<weld::Button> m_xBtnModify;
383 std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
384 std::unique_ptr<weld::CustomWeld> m_xGradientLBWin;
385
386 DECL_LINK( ClickAddHdl_Impl, weld::Button&, void );
387 DECL_LINK( ClickModifyHdl_Impl, weld::Button&, void );
388 DECL_LINK( ChangeGradientHdl, ValueSet*, void );
390 DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
391 DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void );
392 DECL_LINK( ModifiedEditHdl_Impl, weld::SpinButton&, void );
393 DECL_LINK( ModifiedMetricHdl_Impl, weld::MetricSpinButton&, void );
394 DECL_LINK( ModifiedColorListBoxHdl_Impl, ColorListBox&, void );
395 DECL_LINK( ModifiedListBoxHdl_Impl, weld::ComboBox&, void );
396 DECL_LINK( ChangeAutoStepHdl_Impl, weld::Toggleable&, void );
397 DECL_LINK( ModifiedSliderHdl_Impl, weld::Scale&, void );
398 void ModifiedHdl_Impl(void const *);
399
400 void SetControlState_Impl( css::awt::GradientStyle eXGS );
401 sal_Int32 SearchGradientList(std::u16string_view rGradientName);
402
403public:
404 SvxGradientTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
405 virtual ~SvxGradientTabPage() override;
406
407 void Construct();
408
409 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
410 virtual bool FillItemSet( SfxItemSet* ) override;
411 virtual void Reset( const SfxItemSet * ) override;
412
413 virtual void ActivatePage( const SfxItemSet& rSet ) override;
414 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
415
416 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
417 void SetGradientList( XGradientListRef const & pGrdLst)
418 { m_pGradientList = pGrdLst; }
421};
422
423/************************************************************************/
424
426{
427private:
429
432
435
438
440
442 std::unique_ptr<weld::MetricSpinButton> m_xMtrDistance;
443 std::unique_ptr<weld::MetricSpinButton> m_xMtrAngle;
444 std::unique_ptr<weld::Scale> m_xSliderAngle;
445 std::unique_ptr<weld::ComboBox> m_xLbLineType;
446 std::unique_ptr<ColorListBox> m_xLbLineColor;
447 std::unique_ptr<weld::CheckButton> m_xCbBackgroundColor;
448 std::unique_ptr<ColorListBox> m_xLbBackgroundColor;
449 std::unique_ptr<SvxPresetListBox> m_xHatchLB;
450 std::unique_ptr<weld::Button> m_xBtnAdd;
451 std::unique_ptr<weld::Button> m_xBtnModify;
452 std::unique_ptr<weld::CustomWeld> m_xHatchLBWin;
453 std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
454
455 DECL_LINK(ChangeHatchHdl, ValueSet*, void);
456 void ChangeHatchHdl_Impl();
457 DECL_LINK( ModifiedEditHdl_Impl, weld::MetricSpinButton&, void );
458 DECL_LINK( ModifiedListBoxHdl_Impl, weld::ComboBox&, void );
459 DECL_LINK( ModifiedColorListBoxHdl_Impl, ColorListBox&, void );
460 DECL_LINK( ToggleHatchBackgroundColor_Impl, weld::Toggleable&, void );
461 DECL_LINK( ModifiedBackgroundHdl_Impl, ColorListBox&, void );
462 DECL_LINK( ModifiedSliderHdl_Impl, weld::Scale&, void );
463 void ModifiedHdl_Impl(void const *);
464 DECL_LINK( ClickAddHdl_Impl, weld::Button&, void );
465 DECL_LINK( ClickModifyHdl_Impl, weld::Button&, void );
466 DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
467 DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void );
468
469 sal_Int32 SearchHatchList(std::u16string_view rHatchName);
470
471public:
472 SvxHatchTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
473 virtual ~SvxHatchTabPage() override;
474
475 void Construct();
476
477 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
478 virtual bool FillItemSet( SfxItemSet* ) override;
479 virtual void Reset( const SfxItemSet * ) override;
480
481 virtual void ActivatePage( const SfxItemSet& rSet ) override;
482 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
483
484 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
485 void SetHatchingList( XHatchListRef const & pHtchLst)
486 { m_pHatchingList = pHtchLst; }
487
490};
491
492/************************************************************************/
493
495{
496private:
497
499
502
506
515
517 std::unique_ptr<SvxPresetListBox> m_xBitmapLB;
518 std::unique_ptr<weld::ComboBox> m_xBitmapStyleLB;
519 std::unique_ptr<weld::Container> m_xSizeBox;
520 std::unique_ptr<weld::CheckButton> m_xTsbScale;
521 std::unique_ptr<weld::MetricSpinButton> m_xBitmapWidth;
522 std::unique_ptr<weld::MetricSpinButton> m_xBitmapHeight;
523 std::unique_ptr<weld::Container> m_xPositionBox;
524 std::unique_ptr<weld::ComboBox> m_xPositionLB;
525 std::unique_ptr<weld::Container> m_xPositionOffBox;
526 std::unique_ptr<weld::MetricSpinButton> m_xPositionOffX;
527 std::unique_ptr<weld::MetricSpinButton> m_xPositionOffY;
528 std::unique_ptr<weld::Container> m_xTileOffBox;
529 std::unique_ptr<weld::ComboBox> m_xTileOffLB;
530 std::unique_ptr<weld::MetricSpinButton> m_xTileOffset;
531 std::unique_ptr<weld::Button> m_xBtnImport;
532 std::unique_ptr<weld::CustomWeld> m_xCtlBitmapPreview;
533 std::unique_ptr<weld::CustomWeld> m_xBitmapLBWin;
534
535 DECL_LINK( ModifyBitmapHdl, ValueSet*, void );
536 DECL_LINK( ClickScaleHdl, weld::Toggleable&, void );
537 DECL_LINK( ModifyBitmapStyleHdl, weld::ComboBox&, void );
538 DECL_LINK( ModifyBitmapSizeHdl, weld::MetricSpinButton&, void );
539 DECL_LINK( ModifyBitmapPositionHdl, weld::ComboBox&, void );
540 DECL_LINK( ModifyPositionOffsetHdl, weld::MetricSpinButton&, void );
541 DECL_LINK( ModifyTileOffsetHdl, weld::MetricSpinButton&, void );
542 DECL_LINK( ClickRenameHdl, SvxPresetListBox*, void );
543 DECL_LINK( ClickDeleteHdl, SvxPresetListBox*, void );
544 DECL_LINK( ClickImportHdl, weld::Button&, void );
545 void ClickBitmapHdl_Impl();
547 sal_Int32 SearchBitmapList(std::u16string_view rBitmapName);
548 sal_Int32 SearchBitmapList(const GraphicObject& rGraphicObject);
549
550public:
551 SvxBitmapTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
552 virtual ~SvxBitmapTabPage() override;
553
554 void Construct();
555
556 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
557
558 virtual bool FillItemSet( SfxItemSet* ) override;
559 virtual void Reset( const SfxItemSet * ) override;
560 virtual void ActivatePage( const SfxItemSet& rSet ) override;
561 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
562
563 void SetBitmapList( const XBitmapListRef& pBmpLst) { m_pBitmapList = pBmpLst; }
565};
566
567/************************************************************************/
568
570{
571private:
573
576
579
582
584 std::unique_ptr<SvxPixelCtl> m_xCtlPixel;
585 std::unique_ptr<ColorListBox> m_xLbColor;
586 std::unique_ptr<ColorListBox> m_xLbBackgroundColor;
587 std::unique_ptr<SvxPresetListBox> m_xPatternLB;
588 std::unique_ptr<weld::Button> m_xBtnAdd;
589 std::unique_ptr<weld::Button> m_xBtnModify;
590 std::unique_ptr<weld::CustomWeld> m_xCtlPixelWin;
591 std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
592 std::unique_ptr<weld::CustomWeld> m_xPatternLBWin;
593 std::unique_ptr<SvxBitmapCtl> m_xBitmapCtl;
594
595 DECL_LINK( ClickAddHdl_Impl, weld::Button&, void );
596 DECL_LINK( ClickModifyHdl_Impl, weld::Button&, void );
597 DECL_LINK( ChangePatternHdl_Impl, ValueSet*, void );
598 DECL_LINK( ChangeColorHdl_Impl, ColorListBox&, void );
599 DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
600 DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void );
601
602 sal_Int32 SearchPatternList(std::u16string_view rPatternName);
603
604public:
605 SvxPatternTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
606 virtual ~SvxPatternTabPage() override;
607
608 void Construct();
609
610 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
611 virtual bool FillItemSet( SfxItemSet* ) override;
612 virtual void Reset( const SfxItemSet * ) override;
613
614 virtual void ActivatePage( const SfxItemSet& rSet ) override;
615 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
616
617 virtual void PointChanged( weld::DrawingArea*, RectPoint eRP ) override;
618
619 void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
620 void SetPatternList( XPatternListRef const & pPatternList) { m_pPatternList = pPatternList; }
623 void ChangeColor_Impl();
624};
625
626/************************************************************************/
627
628enum class ColorModel
629{
630 RGB,
631 CMYK
632};
633
635{
636private:
638
640
642
645
647
650
654 std::unique_ptr<SvxColorValueSet> m_xValSetColorList;
655 std::unique_ptr<SvxColorValueSet> m_xValSetRecentList;
656 std::unique_ptr<weld::ComboBox> m_xSelectPalette;
657 std::unique_ptr<weld::RadioButton> m_xRbRGB;
658 std::unique_ptr<weld::RadioButton> m_xRbCMYK;
659 std::unique_ptr<weld::Widget> m_xRGBcustom;
660 std::unique_ptr<weld::Widget> m_xRGBpreset;
661 std::unique_ptr<weld::Entry> m_xRpreset;
662 std::unique_ptr<weld::Entry> m_xGpreset;
663 std::unique_ptr<weld::Entry> m_xBpreset;
664 std::unique_ptr<weld::SpinButton> m_xRcustom;
665 std::unique_ptr<weld::SpinButton> m_xGcustom;
666 std::unique_ptr<weld::SpinButton> m_xBcustom;
667 std::unique_ptr<weld::HexColorControl> m_xHexpreset;
668 std::unique_ptr<weld::HexColorControl> m_xHexcustom;
669 std::unique_ptr<weld::Widget> m_xCMYKcustom;
670 std::unique_ptr<weld::Widget> m_xCMYKpreset;
671 std::unique_ptr<weld::Entry> m_xCpreset;
672 std::unique_ptr<weld::Entry> m_xYpreset;
673 std::unique_ptr<weld::Entry> m_xMpreset;
674 std::unique_ptr<weld::Entry> m_xKpreset;
675 std::unique_ptr<weld::MetricSpinButton> m_xCcustom;
676 std::unique_ptr<weld::MetricSpinButton> m_xYcustom;
677 std::unique_ptr<weld::MetricSpinButton> m_xMcustom;
678 std::unique_ptr<weld::MetricSpinButton> m_xKcustom;
679 std::unique_ptr<weld::Button> m_xBtnAdd;
680 std::unique_ptr<weld::Button> m_xBtnDelete;
681 std::unique_ptr<weld::Button> m_xBtnWorkOn;
682 std::unique_ptr<weld::Button> m_xMoreColors;
683 std::unique_ptr<weld::CustomWeld> m_xCtlPreviewOld;
684 std::unique_ptr<weld::CustomWeld> m_xCtlPreviewNew;
685 std::unique_ptr<weld::CustomWeld> m_xValSetColorListWin;
686 std::unique_ptr<weld::CustomWeld> m_xValSetRecentListWin;
687
688 static void ConvertColorValues (Color& rColor, ColorModel eModell);
689 static void RgbToCmyk_Impl( Color& rColor, sal_uInt16& rK );
690 static void CmykToRgb_Impl( Color& rColor, const sal_uInt16 nKey );
691 sal_uInt16 ColorToPercent_Impl( sal_uInt16 nColor );
692 sal_uInt16 PercentToColor_Impl( sal_uInt16 nPercent );
693
695 void FillPaletteLB();
696
697 DECL_LINK(ClickAddHdl_Impl, weld::Button&, void);
698 DECL_LINK(ClickWorkOnHdl_Impl, weld::Button&, void);
699 DECL_LINK(ClickDeleteHdl_Impl, weld::Button&, void);
700 DECL_STATIC_LINK(SvxColorTabPage, OnMoreColorsClick, weld::Button&, void);
701
702 DECL_LINK(SelectPaletteLBHdl, weld::ComboBox&, void);
703 DECL_LINK( SelectValSetHdl_Impl, ValueSet*, void );
704 DECL_LINK( SelectColorModeHdl_Impl, weld::Toggleable&, void );
705 void ChangeColor(const svx::NamedThemedColor &rNewColor, bool bUpdatePreset = true);
706 void SetColorModel(ColorModel eModel);
707 void ChangeColorModel();
708 void UpdateColorValues( bool bUpdatePreset = true );
709 DECL_LINK(SpinValueHdl_Impl, weld::SpinButton&, void);
710 DECL_LINK(MetricSpinValueHdl_Impl, weld::MetricSpinButton&, void);
711 DECL_LINK(ModifiedHdl_Impl, weld::Entry&, void);
712
713 void UpdateModified();
714
715 static sal_Int32 FindInCustomColors( std::u16string_view aColorName );
716 sal_Int32 FindInPalette( const Color& rColor );
717
718public:
719 SvxColorTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
720 virtual ~SvxColorTabPage() override;
721
722 void Construct();
723
724 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
725 virtual bool FillItemSet( SfxItemSet* ) override;
726 virtual void Reset( const SfxItemSet * ) override;
727
728 virtual void ActivatePage( const SfxItemSet& rSet ) override;
729 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
730
732 void SetColorList( const XColorListRef& pColList );
733
734
736
737 void SetCtlPreviewOld( const SfxItemSet& rAttrs ) { m_aCtlPreviewOld.SetAttributes( rAttrs ); }
738
739 virtual void FillUserData() override;
740};
741
742/* 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
const SfxItemSet * pSet
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: tabarea.cxx:225
ChangeType mnBitmapListState
Definition: cuitabarea.hxx:106
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:216
std::unique_ptr< weld::Toggleable > m_xBtnPattern
Definition: cuitabarea.hxx:244
void SetPatternList(XPatternListRef const &pPtrnLst)
Definition: cuitabarea.hxx:286
std::unique_ptr< weld::Container > m_xFillTab
Definition: cuitabarea.hxx:238
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:289
virtual bool FillItemSet(SfxItemSet *) override
Definition: tparea.cxx:282
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:233
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tparea.cxx:366
void SetHatchingList(XHatchListRef const &pHtchLst)
Definition: cuitabarea.hxx:283
ChangeType * m_pnGradientListState
Definition: cuitabarea.hxx:229
std::unique_ptr< weld::Toggleable > m_xBtnBitmap
Definition: cuitabarea.hxx:243
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:226
XPatternListRef m_pPatternList
Definition: cuitabarea.hxx:218
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:232
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tparea.cxx:228
XGradientListRef m_pGradientList
Definition: cuitabarea.hxx:215
static const WhichRangesContainer pAreaRanges
Definition: cuitabarea.hxx:209
void SetGrdChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:290
static WhichRangesContainer GetRanges()
Definition: cuitabarea.hxx:273
ChangeType maFixed_ChangeType
Definition: cuitabarea.hxx:224
void Reset_Impl(const SfxItemSet *)
Definition: tparea.cxx:325
std::unique_ptr< weld::Toggleable > m_xBtnNone
Definition: cuitabarea.hxx:239
void SetBmpChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:292
void SetPtrnChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:293
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tparea.cxx:166
void SetHtchChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:291
std::unique_ptr< weld::Toggleable > m_xBtnHatch
Definition: cuitabarea.hxx:242
std::unique_ptr< weld::Toggleable > m_xBtnColor
Definition: cuitabarea.hxx:240
SvxAreaTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs, bool bSlideBackground=false)
Definition: tparea.cxx:75
void CreatePage(sal_Int32 nId, SfxTabPage &rTab)
Definition: tparea.cxx:450
void SetBitmapList(XBitmapListRef const &pBmpLst)
Definition: cuitabarea.hxx:285
static std::unique_ptr< SfxTabPage > CreateWithSlideBackground(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tparea.cxx:373
std::unique_ptr< SfxTabPage > m_xFillTabPage
Definition: cuitabarea.hxx:211
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:280
virtual void Reset(const SfxItemSet *) override
Definition: tparea.cxx:330
XColorListRef m_pColorList
Definition: cuitabarea.hxx:214
void SelectFillType(weld::Toggleable &rButton, const SfxItemSet *_pSet=nullptr)
Definition: tparea.cxx:411
DeactivateRC DeactivatePage_Impl(SfxItemSet *pSet)
Definition: tparea.cxx:223
void SetOptimalSize(weld::DialogController *pController)
Definition: tparea.cxx:122
ChangeType * m_pnHatchingListState
Definition: cuitabarea.hxx:230
virtual ~SvxAreaTabPage() override
Definition: tparea.cxx:161
bool IsBtnClicked() const
Definition: cuitabarea.hxx:252
SfxTabPage * GetFillTabPage()
Definition: cuitabarea.hxx:250
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tparea.cxx:430
ChangeType * m_pnBitmapListState
Definition: cuitabarea.hxx:227
ButtonBox maBox
Definition: cuitabarea.hxx:212
std::unique_ptr< weld::Toggleable > m_xBtnUseBackground
Definition: cuitabarea.hxx:245
DECL_LINK(SelectFillTypeHdl_Impl, weld::Toggleable &, void)
bool FillItemSet_Impl(SfxItemSet *)
Definition: tparea.cxx:277
ChangeType * m_pnPatternListState
Definition: cuitabarea.hxx:228
void SetGradientList(XGradientListRef const &pGrdLst)
Definition: cuitabarea.hxx:281
XBitmapListRef m_pBitmapList
Definition: cuitabarea.hxx:217
std::unique_ptr< weld::Toggleable > m_xBtnGradient
Definition: cuitabarea.hxx:241
DECL_LINK(ClickScaleHdl, weld::Toggleable &, void)
FieldUnit meFieldUnit
Definition: cuitabarea.hxx:511
std::unique_ptr< weld::Button > m_xBtnImport
Definition: cuitabarea.hxx:531
std::unique_ptr< SvxPresetListBox > m_xBitmapLB
Definition: cuitabarea.hxx:517
std::unique_ptr< weld::MetricSpinButton > m_xBitmapWidth
Definition: cuitabarea.hxx:521
std::unique_ptr< weld::Container > m_xPositionBox
Definition: cuitabarea.hxx:523
DECL_LINK(ClickRenameHdl, SvxPresetListBox *, void)
std::unique_ptr< weld::MetricSpinButton > m_xPositionOffY
Definition: cuitabarea.hxx:527
DECL_LINK(ClickDeleteHdl, SvxPresetListBox *, void)
DECL_LINK(ModifyBitmapStyleHdl, weld::ComboBox &, void)
const SdrView * mpView
Definition: cuitabarea.hxx:509
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:498
DECL_LINK(ModifyBitmapHdl, ValueSet *, void)
std::unique_ptr< weld::CheckButton > m_xTsbScale
Definition: cuitabarea.hxx:520
DECL_LINK(ModifyBitmapPositionHdl, weld::ComboBox &, void)
XBitmapListRef m_pBitmapList
Definition: cuitabarea.hxx:500
SvxXRectPreview m_aCtlBitmapPreview
Definition: cuitabarea.hxx:516
std::unique_ptr< weld::MetricSpinButton > m_xPositionOffX
Definition: cuitabarea.hxx:526
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpbitmap.cxx:173
std::unique_ptr< weld::Container > m_xPositionOffBox
Definition: cuitabarea.hxx:525
sal_Int32 SearchBitmapList(std::u16string_view rBitmapName)
Definition: tpbitmap.cxx:807
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:504
std::unique_ptr< weld::ComboBox > m_xTileOffLB
Definition: cuitabarea.hxx:529
std::unique_ptr< weld::MetricSpinButton > m_xTileOffset
Definition: cuitabarea.hxx:530
std::unique_ptr< weld::ComboBox > m_xBitmapStyleLB
Definition: cuitabarea.hxx:518
void SetBmpChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:564
std::unique_ptr< weld::CustomWeld > m_xBitmapLBWin
Definition: cuitabarea.hxx:533
std::unique_ptr< weld::MetricSpinButton > m_xBitmapHeight
Definition: cuitabarea.hxx:522
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:507
ChangeType * m_pnBitmapListState
Definition: cuitabarea.hxx:501
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:508
DECL_LINK(ModifyBitmapSizeHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::Container > m_xSizeBox
Definition: cuitabarea.hxx:519
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpbitmap.cxx:419
std::unique_ptr< weld::ComboBox > m_xPositionLB
Definition: cuitabarea.hxx:524
DECL_LINK(ModifyTileOffsetHdl, weld::MetricSpinButton &, void)
DECL_LINK(ModifyPositionOffsetHdl, weld::MetricSpinButton &, void)
void SetBitmapList(const XBitmapListRef &pBmpLst)
Definition: cuitabarea.hxx:563
std::unique_ptr< weld::Container > m_xTileOffBox
Definition: cuitabarea.hxx:528
virtual ~SvxBitmapTabPage() override
Definition: tpbitmap.cxx:138
void ClickBitmapHdl_Impl()
Definition: tpbitmap.cxx:424
virtual void Reset(const SfxItemSet *) override
Definition: tpbitmap.cxx:256
void CalculateBitmapPresetSize()
Definition: tpbitmap.cxx:432
std::unique_ptr< weld::CustomWeld > m_xCtlBitmapPreview
Definition: cuitabarea.hxx:532
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpbitmap.cxx:150
static void CmykToRgb_Impl(Color &rColor, const sal_uInt16 nKey)
Definition: tpcolor.cxx:714
std::unique_ptr< weld::Entry > m_xGpreset
Definition: cuitabarea.hxx:662
void ImpColorCountChanged()
Definition: tpcolor.cxx:162
static void RgbToCmyk_Impl(Color &rColor, sal_uInt16 &rK)
Definition: tpcolor.cxx:698
DECL_LINK(SelectColorModeHdl_Impl, weld::Toggleable &, void)
std::unique_ptr< weld::Entry > m_xKpreset
Definition: cuitabarea.hxx:674
const SfxItemSet & rOutAttrs
Definition: cuitabarea.hxx:637
void FillPaletteLB()
Definition: tpcolor.cxx:170
DECL_LINK(ClickWorkOnHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::MetricSpinButton > m_xYcustom
Definition: cuitabarea.hxx:676
std::unique_ptr< weld::Widget > m_xCMYKcustom
Definition: cuitabarea.hxx:669
std::unique_ptr< weld::SpinButton > m_xGcustom
Definition: cuitabarea.hxx:665
void UpdateColorValues(bool bUpdatePreset=true)
Definition: tpcolor.cxx:626
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpcolor.cxx:223
void SetColorList(const XColorListRef &pColList)
Definition: tpcolor.cxx:789
std::unique_ptr< weld::Entry > m_xRpreset
Definition: cuitabarea.hxx:661
static sal_Int32 FindInCustomColors(std::u16string_view aColorName)
Definition: tpcolor.cxx:670
void SetCtlPreviewOld(const SfxItemSet &rAttrs)
Definition: cuitabarea.hxx:737
ChangeType * pnColorListState
Definition: cuitabarea.hxx:641
std::unique_ptr< weld::Widget > m_xCMYKpreset
Definition: cuitabarea.hxx:670
std::unique_ptr< weld::Button > m_xBtnDelete
Definition: cuitabarea.hxx:680
std::unique_ptr< weld::Widget > m_xRGBcustom
Definition: cuitabarea.hxx:659
void SetPropertyList(XPropertyListType t, const XPropertyListRef &xRef)
Definition: tpcolor.cxx:783
sal_uInt16 PercentToColor_Impl(sal_uInt16 nPercent)
Definition: tpcolor.cxx:757
XFillAttrSetItem aXFillAttr
Definition: cuitabarea.hxx:643
std::unique_ptr< weld::SpinButton > m_xBcustom
Definition: cuitabarea.hxx:666
std::unique_ptr< weld::MetricSpinButton > m_xCcustom
Definition: cuitabarea.hxx:675
std::unique_ptr< weld::CustomWeld > m_xCtlPreviewOld
Definition: cuitabarea.hxx:683
std::unique_ptr< SvxColorValueSet > m_xValSetRecentList
Definition: cuitabarea.hxx:655
std::unique_ptr< weld::CustomWeld > m_xCtlPreviewNew
Definition: cuitabarea.hxx:684
svx::NamedThemedColor aCurrentColor
Definition: cuitabarea.hxx:649
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:735
void Construct()
Definition: tpcolor.cxx:186
DECL_LINK(SelectValSetHdl_Impl, ValueSet *, void)
DECL_LINK(ModifiedHdl_Impl, weld::Entry &, void)
static void ConvertColorValues(Color &rColor, ColorModel eModell)
Definition: tpcolor.cxx:544
ColorModel eCM
Definition: cuitabarea.hxx:646
std::unique_ptr< weld::Entry > m_xBpreset
Definition: cuitabarea.hxx:663
void ChangeColorModel()
Definition: tpcolor.cxx:602
std::unique_ptr< weld::RadioButton > m_xRbCMYK
Definition: cuitabarea.hxx:658
virtual void FillUserData() override
Definition: tpcolor.cxx:776
std::unique_ptr< weld::RadioButton > m_xRbRGB
Definition: cuitabarea.hxx:657
std::unique_ptr< weld::HexColorControl > m_xHexpreset
Definition: cuitabarea.hxx:667
DECL_LINK(MetricSpinValueHdl_Impl, weld::MetricSpinButton &, void)
DECL_LINK(ClickAddHdl_Impl, weld::Button &, void)
XColorListRef pColorList
Definition: cuitabarea.hxx:639
std::unique_ptr< SvxColorValueSet > m_xValSetColorList
Definition: cuitabarea.hxx:654
sal_uInt16 ColorToPercent_Impl(sal_uInt16 nColor)
Definition: tpcolor.cxx:738
sal_Int32 FindInPalette(const Color &rColor)
Definition: tpcolor.cxx:688
std::unique_ptr< weld::Button > m_xBtnWorkOn
Definition: cuitabarea.hxx:681
virtual ~SvxColorTabPage() override
Definition: tpcolor.cxx:154
std::unique_ptr< weld::ComboBox > m_xSelectPalette
Definition: cuitabarea.hxx:656
SfxItemSet & rXFSet
Definition: cuitabarea.hxx:644
std::unique_ptr< weld::MetricSpinButton > m_xMcustom
Definition: cuitabarea.hxx:677
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:679
SvxXRectPreview m_aCtlPreviewNew
Definition: cuitabarea.hxx:653
std::unique_ptr< weld::HexColorControl > m_xHexcustom
Definition: cuitabarea.hxx:668
std::unique_ptr< weld::SpinButton > m_xRcustom
Definition: cuitabarea.hxx:664
std::unique_ptr< weld::Entry > m_xYpreset
Definition: cuitabarea.hxx:672
std::unique_ptr< weld::Entry > m_xCpreset
Definition: cuitabarea.hxx:671
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpcolor.cxx:290
std::unique_ptr< weld::CustomWeld > m_xValSetRecentListWin
Definition: cuitabarea.hxx:686
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpcolor.cxx:195
std::unique_ptr< weld::Entry > m_xMpreset
Definition: cuitabarea.hxx:673
virtual void Reset(const SfxItemSet *) override
Definition: tpcolor.cxx:264
void SetColorModel(ColorModel eModel)
Definition: tpcolor.cxx:594
std::unique_ptr< weld::CustomWeld > m_xValSetColorListWin
Definition: cuitabarea.hxx:685
std::unique_ptr< weld::Widget > m_xRGBpreset
Definition: cuitabarea.hxx:660
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpcolor.cxx:231
DECL_LINK(SelectPaletteLBHdl, weld::ComboBox &, void)
DECL_STATIC_LINK(SvxColorTabPage, OnMoreColorsClick, weld::Button &, void)
std::unique_ptr< weld::Button > m_xMoreColors
Definition: cuitabarea.hxx:682
DECL_LINK(SpinValueHdl_Impl, weld::SpinButton &, void)
SvxColorTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpcolor.cxx:43
SvxXRectPreview m_aCtlPreviewOld
Definition: cuitabarea.hxx:652
std::unique_ptr< weld::MetricSpinButton > m_xKcustom
Definition: cuitabarea.hxx:678
DECL_LINK(ClickDeleteHdl_Impl, weld::Button &, void)
PaletteManager maPaletteManager
Definition: cuitabarea.hxx:651
void UpdateModified()
Definition: tpcolor.cxx:258
void ChangeColor(const svx::NamedThemedColor &rNewColor, bool bUpdatePreset=true)
Definition: tpcolor.cxx:583
std::unique_ptr< weld::SpinButton > m_xMtrIncrement
Definition: cuitabarea.hxx:379
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpgradnt.cxx:232
virtual void Reset(const SfxItemSet *) override
Definition: tpgradnt.cxx:220
std::unique_ptr< ColorListBox > m_xLbColorFrom
Definition: cuitabarea.hxx:374
std::unique_ptr< weld::MetricSpinButton > m_xMtrCenterX
Definition: cuitabarea.hxx:367
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpgradnt.cxx:133
std::unique_ptr< weld::CustomWeld > m_xGradientLBWin
Definition: cuitabarea.hxx:384
std::unique_ptr< weld::Label > m_xFtAngle
Definition: cuitabarea.hxx:369
std::unique_ptr< weld::MetricSpinButton > m_xMtrColorFrom
Definition: cuitabarea.hxx:375
void SetControlState_Impl(css::awt::GradientStyle eXGS)
Definition: tpgradnt.cxx:570
std::unique_ptr< weld::CheckButton > m_xCbIncrement
Definition: cuitabarea.hxx:380
std::unique_ptr< weld::ComboBox > m_xLbGradientType
Definition: cuitabarea.hxx:365
SvxXRectPreview m_aCtlPreview
Definition: cuitabarea.hxx:364
void ChangeGradientHdl_Impl()
Definition: tpgradnt.cxx:497
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:361
void ModifiedHdl_Impl(void const *)
Definition: tpgradnt.cxx:282
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpgradnt.cxx:176
std::unique_ptr< weld::Button > m_xBtnModify
Definition: cuitabarea.hxx:382
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:383
std::unique_ptr< ColorListBox > m_xLbColorTo
Definition: cuitabarea.hxx:376
sal_Int32 SearchGradientList(std::u16string_view rGradientName)
Definition: tpgradnt.cxx:616
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:381
DECL_LINK(ClickRenameHdl_Impl, SvxPresetListBox *, void)
void SetGradientList(XGradientListRef const &pGrdLst)
Definition: cuitabarea.hxx:417
std::unique_ptr< weld::Scale > m_xSliderAngle
Definition: cuitabarea.hxx:371
std::unique_ptr< weld::Scale > m_xSliderBorder
Definition: cuitabarea.hxx:373
DECL_LINK(ClickModifyHdl_Impl, weld::Button &, void)
DECL_LINK(ModifiedMetricHdl_Impl, weld::MetricSpinButton &, void)
ChangeType * m_pnGradientListState
Definition: cuitabarea.hxx:358
XGradientListRef m_pGradientList
Definition: cuitabarea.hxx:356
SvxGradientTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpgradnt.cxx:43
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpgradnt.cxx:184
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:419
virtual ~SvxGradientTabPage() override
Definition: tpgradnt.cxx:119
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:420
DECL_LINK(ChangeGradientHdl, ValueSet *, void)
std::unique_ptr< SvxPresetListBox > m_xGradientLB
Definition: cuitabarea.hxx:378
DECL_LINK(ModifiedEditHdl_Impl, weld::SpinButton &, void)
DECL_LINK(ModifiedSliderHdl_Impl, weld::Scale &, void)
std::unique_ptr< weld::Label > m_xFtCenter
Definition: cuitabarea.hxx:366
DECL_LINK(ClickDeleteHdl_Impl, SvxPresetListBox *, void)
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:359
XColorListRef m_pColorList
Definition: cuitabarea.hxx:355
std::unique_ptr< weld::MetricSpinButton > m_xMtrColorTo
Definition: cuitabarea.hxx:377
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:353
std::unique_ptr< weld::MetricSpinButton > m_xMtrBorder
Definition: cuitabarea.hxx:372
std::unique_ptr< weld::MetricSpinButton > m_xMtrCenterY
Definition: cuitabarea.hxx:368
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:362
std::unique_ptr< weld::MetricSpinButton > m_xMtrAngle
Definition: cuitabarea.hxx:370
DECL_LINK(ModifiedColorListBoxHdl_Impl, ColorListBox &, void)
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:416
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:489
virtual bool FillItemSet(SfxItemSet *) override
Definition: tphatch.cxx:223
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:453
MapUnit m_ePoolUnit
Definition: cuitabarea.hxx:439
void ChangeHatchHdl_Impl()
Definition: tphatch.cxx:352
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:484
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:428
std::unique_ptr< weld::CheckButton > m_xCbBackgroundColor
Definition: cuitabarea.hxx:447
XColorListRef m_pColorList
Definition: cuitabarea.hxx:430
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:434
std::unique_ptr< weld::Scale > m_xSliderAngle
Definition: cuitabarea.hxx:444
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:437
std::unique_ptr< weld::Button > m_xBtnModify
Definition: cuitabarea.hxx:451
ChangeType * m_pnHatchingListState
Definition: cuitabarea.hxx:433
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:436
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:442
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:450
DECL_LINK(ClickRenameHdl_Impl, SvxPresetListBox *, void)
std::unique_ptr< weld::CustomWeld > m_xHatchLBWin
Definition: cuitabarea.hxx:452
SvxXRectPreview m_aCtlPreview
Definition: cuitabarea.hxx:441
void Construct()
Definition: tphatch.cxx:129
std::unique_ptr< ColorListBox > m_xLbBackgroundColor
Definition: cuitabarea.hxx:448
std::unique_ptr< ColorListBox > m_xLbLineColor
Definition: cuitabarea.hxx:446
void SetHatchingList(XHatchListRef const &pHtchLst)
Definition: cuitabarea.hxx:485
DECL_LINK(ModifiedColorListBoxHdl_Impl, ColorListBox &, void)
XHatchListRef m_pHatchingList
Definition: cuitabarea.hxx:431
DECL_LINK(ModifiedSliderHdl_Impl, weld::Scale &, void)
DECL_LINK(ClickModifyHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::MetricSpinButton > m_xMtrAngle
Definition: cuitabarea.hxx:443
std::unique_ptr< SvxPresetListBox > m_xHatchLB
Definition: cuitabarea.hxx:449
std::unique_ptr< weld::ComboBox > m_xLbLineType
Definition: cuitabarea.hxx:445
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:488
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:577
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tppattern.cxx:133
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:581
XColorListRef m_pColorList
Definition: cuitabarea.hxx:574
XPatternListRef m_pPatternList
Definition: cuitabarea.hxx:575
std::unique_ptr< weld::Button > m_xBtnModify
Definition: cuitabarea.hxx:589
void SetPtrnChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:621
virtual void Reset(const SfxItemSet *) override
Definition: tppattern.cxx:210
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:619
std::unique_ptr< weld::CustomWeld > m_xPatternLBWin
Definition: cuitabarea.hxx:592
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:585
DECL_LINK(ChangeColorHdl_Impl, ColorListBox &, void)
virtual bool FillItemSet(SfxItemSet *) override
Definition: tppattern.cxx:188
SvxXRectPreview m_aCtlPreview
Definition: cuitabarea.hxx:583
virtual ~SvxPatternTabPage() override
Definition: tppattern.cxx:117
void SetPatternList(XPatternListRef const &pPatternList)
Definition: cuitabarea.hxx:620
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:572
std::unique_ptr< weld::CustomWeld > m_xCtlPixelWin
Definition: cuitabarea.hxx:590
DECL_LINK(ClickRenameHdl_Impl, SvxPresetListBox *, void)
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:591
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:588
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tppattern.cxx:179
std::unique_ptr< SvxPresetListBox > m_xPatternLB
Definition: cuitabarea.hxx:587
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:578
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:622
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:580
std::unique_ptr< SvxPixelCtl > m_xCtlPixel
Definition: cuitabarea.hxx:584
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:593
std::unique_ptr< ColorListBox > m_xLbBackgroundColor
Definition: cuitabarea.hxx:586
std::unique_ptr< ColorListBox > m_xLbShadowColor
Definition: cuitabarea.hxx:318
void SetPageType(PageType nInType)
Definition: cuitabarea.hxx:342
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpshadow.cxx:165
std::unique_ptr< weld::CustomWeld > m_xCtlPosition
Definition: cuitabarea.hxx:321
std::unique_ptr< weld::MetricSpinButton > m_xLbShadowBlurMetric
Definition: cuitabarea.hxx:320
XColorListRef m_pColorList
Definition: cuitabarea.hxx:304
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:341
DECL_LINK(ClickShadowHdl_Impl, weld::Toggleable &, void)
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tpshadow.cxx:501
SvxRectCtl m_aCtlPosition
Definition: cuitabarea.hxx:313
std::unique_ptr< weld::MetricSpinButton > m_xMtrDistance
Definition: cuitabarea.hxx:317
virtual ~SvxShadowTabPage() override
Definition: tpshadow.cxx:157
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:310
DECL_LINK(ModifyShadowHdl_Impl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::Widget > m_xGridShadow
Definition: cuitabarea.hxx:316
std::unique_ptr< weld::CustomWeld > m_xCtlXRectPreview
Definition: cuitabarea.hxx:322
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpshadow.cxx:219
static WhichRangesContainer GetRanges()
Definition: cuitabarea.hxx:333
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:302
SvxShadowTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpshadow.cxx:52
std::unique_ptr< weld::MetricSpinButton > m_xMtrTransparent
Definition: cuitabarea.hxx:319
void SetDlgType(sal_uInt16 nInType)
Definition: cuitabarea.hxx:343
PageType m_nPageType
Definition: cuitabarea.hxx:306
virtual void PointChanged(weld::DrawingArea *pWindow, RectPoint eRP) override
Definition: tpshadow.cxx:495
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:309
std::unique_ptr< weld::CheckButton > m_xTsbShowShadow
Definition: cuitabarea.hxx:315
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:299
virtual void Reset(const SfxItemSet *) override
Definition: tpshadow.cxx:335
SvxXShadowPreview m_aCtlXRectPreview
Definition: cuitabarea.hxx:314
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:305
sal_uInt16 m_nDlgType
Definition: cuitabarea.hxx:307
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpshadow.cxx:210
DECL_LINK(SelectShadowHdl_Impl, ColorListBox &, void)
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:344
bool InitPreview(const SfxItemSet &rSet)
Definition: tptrans.cxx:438
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrStartValue
Definition: cuitabarea.hxx:163
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:140
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
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:247
std::unique_ptr< weld::Widget > m_xGridGradient
Definition: cuitabarea.hxx:154
void InvalidatePreview(bool bEnable=true)
Definition: tptrans.cxx:482
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:348
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:405
SvxTransparenceTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tptrans.cxx:189
void ModifiedTrgrHdl_Impl(const weld::ComboBox *)
Definition: tptrans.cxx:113
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tptrans.cxx:508
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:151
static WhichRangesContainer GetRanges()
Definition: cuitabarea.hxx:192
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:200
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:242
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:417
void SetDlgType(sal_uInt16 nInType)
Definition: cuitabarea.hxx:201
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tptrans.cxx:429
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