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