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