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