LibreOffice Module cui (master)  1
cuitabarea.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #pragma once
20 
21 #include <svtools/valueset.hxx>
22 #include <svx/dlgctrl.hxx>
23 #include <svx/xflasit.hxx>
24 #include <svx/tabarea.hxx>
25 #include <svx/hexcolorcontrol.hxx>
26 #include <svx/SvxColorValueSet.hxx>
27 #include <svx/SvxPresetListBox.hxx>
28 #include <svx/PaletteManager.hxx>
29 #include <svx/svdview.hxx>
30 
31 #define NO_BUTTON_SELECTED -1
32 
33 class ColorListBox;
34 class SdrModel;
35 class SvxBitmapCtl;
36 
37 /************************************************************************/
38 class ButtonBox
39 {
40  private:
41  sal_Int32 mnCurrentButton;
42  std::vector<weld::ToggleButton*> maButtonList;
43  std::map<weld::ToggleButton*, sal_Int32 > maButtonToPos;
44  void SelectButtonImpl( sal_Int32 nPos )
45  {
46  if(mnCurrentButton != NO_BUTTON_SELECTED)
47  {
48  maButtonList[mnCurrentButton]->set_active(false);
49  }
50  mnCurrentButton = nPos;
51  maButtonList[mnCurrentButton]->set_active(true);
52  };
53  public:
55  {
56  mnCurrentButton = NO_BUTTON_SELECTED;
57  };
59  {
60  maButtonList.push_back(pButton);
61  maButtonToPos.insert( std::make_pair(pButton, maButtonList.size() - 1) );
62  }
63  sal_Int32 GetCurrentButtonPos() const { return mnCurrentButton; }
64  sal_Int32 GetButtonPos(weld::ToggleButton* pButton)
65  {
66  std::map<weld::ToggleButton*, sal_Int32>::const_iterator aBtnPos = maButtonToPos.find(pButton);
67  if(aBtnPos != maButtonToPos.end())
68  return aBtnPos->second;
69  else
70  return -1;
71  }
73  {
74  sal_Int32 nPos = GetButtonPos(pButton);
75  if(nPos != -1)
76  SelectButtonImpl(nPos);
77  }
78 };
79 
80 enum class PageType
81 {
82  Area,
83  Gradient,
84  Hatch,
85  Bitmap,
86  Shadow,
88 };
89 
91 {
93 
104 
110 
111  virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
112 
113  virtual short Ok() override;
114  DECL_LINK(CancelHdlImpl, weld::Button&, void);
115  void SavePalettes();
116 
117 public:
118  SvxAreaTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, bool bShadow);
119 
120  void SetNewColorList( XColorListRef const & pColorList )
121  { mpNewColorList = pColorList; }
122  const XColorListRef& GetNewColorList() const { return mpNewColorList; }
123 };
124 
125 /************************************************************************/
126 
128 {
129  static const sal_uInt16 pTransparenceRanges[];
130 
132 
134  sal_uInt16 nDlgType;
135 
136  bool bBitmap;
137 
140 
143 
144  // main selection
145  std::unique_ptr<weld::RadioButton> m_xRbtTransOff;
146  std::unique_ptr<weld::RadioButton> m_xRbtTransLinear;
147  std::unique_ptr<weld::RadioButton> m_xRbtTransGradient;
148 
150  std::unique_ptr<weld::MetricSpinButton> m_xMtrTransparent;
151 
152  // gradient transparency
153  std::unique_ptr<weld::Widget> m_xGridGradient;
154  std::unique_ptr<weld::ComboBox> m_xLbTrgrGradientType;
155  std::unique_ptr<weld::Label> m_xFtTrgrCenterX;
156  std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrCenterX;
157  std::unique_ptr<weld::Label> m_xFtTrgrCenterY;
158  std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrCenterY;
159  std::unique_ptr<weld::Label> m_xFtTrgrAngle;
160  std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrAngle;
161  std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrBorder;
162  std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrStartValue;
163  std::unique_ptr<weld::MetricSpinButton> m_xMtrTrgrEndValue;
164  std::unique_ptr<weld::Widget> m_xCtlBitmapBorder;
165  std::unique_ptr<weld::Widget> m_xCtlXRectBorder;
166 
167  // preview
168  std::unique_ptr<weld::CustomWeld> m_xCtlBitmapPreview;
169  std::unique_ptr<weld::CustomWeld> m_xCtlXRectPreview;
170 
171  DECL_LINK(ClickTransOffHdl_Impl, weld::ToggleButton&, void);
172  DECL_LINK(ClickTransLinearHdl_Impl, weld::ToggleButton&, void);
173  DECL_LINK(ClickTransGradientHdl_Impl, weld::ToggleButton&, void );
174  DECL_LINK(ModifyTransparentHdl_Impl, weld::MetricSpinButton&, void);
175  DECL_LINK(ModifiedTrgrEditHdl_Impl, weld::MetricSpinButton&, void);
176  DECL_LINK(ModifiedTrgrListBoxHdl_Impl, weld::ComboBox&, void);
178 
179  void ActivateLinear(bool bActivate);
180  void ActivateGradient(bool bActivate);
181  void SetControlState_Impl(css::awt::GradientStyle eXGS);
182 
183  bool InitPreview ( const SfxItemSet& rSet );
184  void InvalidatePreview (bool bEnable = true );
185 
186 public:
187  SvxTransparenceTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
188  virtual ~SvxTransparenceTabPage() override;
189 
190  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet*);
191  static const sal_uInt16* GetRanges() { return pTransparenceRanges; }
192 
193  virtual bool FillItemSet(SfxItemSet*) override;
194  virtual void Reset(const SfxItemSet*) override;
195  virtual void ChangesApplied() override;
196  virtual void ActivatePage(const SfxItemSet& rSet) override;
197  virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
198 
199  void SetPageType(PageType nInType) { nPageType = nInType; }
200  void SetDlgType(sal_uInt16 nInType) { nDlgType = nInType; }
201  virtual void PageCreated(const SfxAllItemSet& aSet) override;
202 };
203 
204 /************************************************************************/
205 
207 {
208  static const sal_uInt16 pAreaRanges[];
209 private:
210  std::unique_ptr<SfxTabPage> m_xFillTabPage;
212 
218 
219  // Placeholders for pointer-based entries; these will be inited
220  // to point to these so that the page is usable without that
221  // SvxAreaTabDialog has to call the setter methods (e.g. SetColorChgd).
222  // Without that the pages used in SvxAreaTabDialog are not usable
224 
230 
233 
234  bool m_bBtnClicked = false;
235 
236 protected:
237  std::unique_ptr<weld::Container> m_xFillTab;
238  std::unique_ptr<weld::ToggleButton> m_xBtnNone;
239  std::unique_ptr<weld::ToggleButton> m_xBtnColor;
240  std::unique_ptr<weld::ToggleButton> m_xBtnGradient;
241  std::unique_ptr<weld::ToggleButton> m_xBtnHatch;
242  std::unique_ptr<weld::ToggleButton> m_xBtnBitmap;
243  std::unique_ptr<weld::ToggleButton> m_xBtnPattern;
244 
245  void SetOptimalSize(weld::DialogController* pController);
246 
247  void SelectFillType( weld::ToggleButton& rButton, const SfxItemSet* _pSet = nullptr );
248  SfxTabPage* GetFillTabPage() { return m_xFillTabPage.get(); }
249 
250  bool IsBtnClicked() const { return m_bBtnClicked; }
251 
252 private:
253  DECL_LINK(SelectFillTypeHdl_Impl, weld::ToggleButton&, void);
254 
255  template< typename TabPage >
256  bool FillItemSet_Impl( SfxItemSet* );
257  template< typename TabPage >
258  void Reset_Impl( const SfxItemSet* );
259  template< typename TabPage >
261 
262 public:
263  SvxAreaTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
264  virtual ~SvxAreaTabPage() override;
265 
266  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
267  static const sal_uInt16* GetRanges() { return pAreaRanges; }
268 
269  virtual bool FillItemSet( SfxItemSet* ) override;
270  virtual void Reset( const SfxItemSet * ) override;
271  virtual void ActivatePage( const SfxItemSet& rSet ) override;
272  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
273 
274  void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
275  void SetGradientList( XGradientListRef const & pGrdLst)
276  { m_pGradientList = pGrdLst; }
277  void SetHatchingList( XHatchListRef const & pHtchLst)
278  { m_pHatchingList = pHtchLst; }
279  void SetBitmapList( XBitmapListRef const & pBmpLst) { m_pBitmapList = pBmpLst; }
280  void SetPatternList( XPatternListRef const &pPtrnLst ) { m_pPatternList = pPtrnLst; }
281  virtual void PageCreated(const SfxAllItemSet& aSet) override;
282  void CreatePage(sal_Int32 nId, SfxTabPage* pTab);
283  void SetColorChgd( ChangeType* pIn ) { m_pnColorListState = pIn; }
284  void SetGrdChgd( ChangeType* pIn ) { m_pnGradientListState = pIn; }
285  void SetHtchChgd( ChangeType* pIn ) { m_pnHatchingListState = pIn; }
286  void SetBmpChgd( ChangeType* pIn ) { m_pnBitmapListState = pIn; }
287  void SetPtrnChgd( ChangeType* pIn ) { m_pnPatternListState = pIn; }
288 };
289 
290 
292 {
293  static const sal_uInt16 pShadowRanges[];
294 
295 private:
297 
301  sal_uInt16 m_nDlgType;
302 
306 
309  std::unique_ptr<weld::CheckButton> m_xTsbShowShadow;
310  std::unique_ptr<weld::Widget> m_xGridShadow;
311  std::unique_ptr<weld::MetricSpinButton> m_xMtrDistance;
312  std::unique_ptr<ColorListBox> m_xLbShadowColor;
313  std::unique_ptr<weld::MetricSpinButton> m_xMtrTransparent;
314  std::unique_ptr<weld::MetricSpinButton> m_xLbShadowBlurMetric;
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 private:
491 
493 
496 
500 
503  const SdrView* mpView;
509 
511  std::unique_ptr<SvxPresetListBox> m_xBitmapLB;
512  std::unique_ptr<weld::ComboBox> m_xBitmapStyleLB;
513  std::unique_ptr<weld::Container> m_xSizeBox;
514  std::unique_ptr<weld::CheckButton> m_xTsbScale;
515  std::unique_ptr<weld::MetricSpinButton> m_xBitmapWidth;
516  std::unique_ptr<weld::MetricSpinButton> m_xBitmapHeight;
517  std::unique_ptr<weld::Container> m_xPositionBox;
518  std::unique_ptr<weld::ComboBox> m_xPositionLB;
519  std::unique_ptr<weld::Container> m_xPositionOffBox;
520  std::unique_ptr<weld::MetricSpinButton> m_xPositionOffX;
521  std::unique_ptr<weld::MetricSpinButton> m_xPositionOffY;
522  std::unique_ptr<weld::Container> m_xTileOffBox;
523  std::unique_ptr<weld::ComboBox> m_xTileOffLB;
524  std::unique_ptr<weld::MetricSpinButton> m_xTileOffset;
525  std::unique_ptr<weld::Button> m_xBtnImport;
526  std::unique_ptr<weld::CustomWeld> m_xCtlBitmapPreview;
527  std::unique_ptr<weld::CustomWeld> m_xBitmapLBWin;
528 
529  DECL_LINK( ModifyBitmapHdl, ValueSet*, void );
530  DECL_LINK( ClickScaleHdl, weld::Button&, void );
531  DECL_LINK( ModifyBitmapStyleHdl, weld::ComboBox&, void );
532  DECL_LINK( ModifyBitmapSizeHdl, weld::MetricSpinButton&, void );
533  DECL_LINK( ModifyBitmapPositionHdl, weld::ComboBox&, void );
534  DECL_LINK( ModifyPositionOffsetHdl, weld::MetricSpinButton&, void );
535  DECL_LINK( ModifyTileOffsetHdl, weld::MetricSpinButton&, void );
536  DECL_LINK( ClickRenameHdl, SvxPresetListBox*, void );
537  DECL_LINK( ClickDeleteHdl, SvxPresetListBox*, void );
538  DECL_LINK( ClickImportHdl, weld::Button&, void );
539  void ClickBitmapHdl_Impl();
541  sal_Int32 SearchBitmapList(const OUString& rBitmapName);
542  sal_Int32 SearchBitmapList(const GraphicObject& rGraphicObject);
543 
544 public:
545  SvxBitmapTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
546  virtual ~SvxBitmapTabPage() override;
547 
548  void Construct();
549 
550  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
551 
552  virtual bool FillItemSet( SfxItemSet* ) override;
553  virtual void Reset( const SfxItemSet * ) override;
554  virtual void ActivatePage( const SfxItemSet& rSet ) override;
555  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
556 
557  void SetBitmapList( const XBitmapListRef& pBmpLst) { m_pBitmapList = pBmpLst; }
558  void SetBmpChgd( ChangeType* pIn ) { m_pnBitmapListState = pIn; }
559 };
560 
561 /************************************************************************/
562 
564 {
565 private:
567 
570 
573 
576 
578  std::unique_ptr<SvxPixelCtl> m_xCtlPixel;
579  std::unique_ptr<ColorListBox> m_xLbColor;
580  std::unique_ptr<ColorListBox> m_xLbBackgroundColor;
581  std::unique_ptr<SvxPresetListBox> m_xPatternLB;
582  std::unique_ptr<weld::Button> m_xBtnAdd;
583  std::unique_ptr<weld::Button> m_xBtnModify;
584  std::unique_ptr<weld::CustomWeld> m_xCtlPixelWin;
585  std::unique_ptr<weld::CustomWeld> m_xCtlPreview;
586  std::unique_ptr<weld::CustomWeld> m_xPatternLBWin;
587  std::unique_ptr<SvxBitmapCtl> m_xBitmapCtl;
588 
589  DECL_LINK( ClickAddHdl_Impl, weld::Button&, void );
590  DECL_LINK( ClickModifyHdl_Impl, weld::Button&, void );
591  DECL_LINK( ChangePatternHdl_Impl, ValueSet*, void );
592  DECL_LINK( ChangeColorHdl_Impl, ColorListBox&, void );
593  DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
594  DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void );
595 
596  sal_Int32 SearchPatternList(const OUString& rPatternName);
597 
598 public:
599  SvxPatternTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
600  virtual ~SvxPatternTabPage() override;
601 
602  void Construct();
603 
604  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
605  virtual bool FillItemSet( SfxItemSet* ) override;
606  virtual void Reset( const SfxItemSet * ) override;
607 
608  virtual void ActivatePage( const SfxItemSet& rSet ) override;
609  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
610 
611  virtual void PointChanged( weld::DrawingArea*, RectPoint eRP ) override;
612 
613  void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; }
614  void SetPatternList( XPatternListRef const & pPatternList) { m_pPatternList = pPatternList; }
615  void SetPtrnChgd( ChangeType* pIn ) { m_pnPatternListState = pIn; }
616  void SetColorChgd( ChangeType* pIn ) { m_pnColorListState = pIn; }
617  void ChangeColor_Impl();
618 };
619 
620 /************************************************************************/
621 
622 enum class ColorModel
623 {
624  RGB,
625  CMYK
626 };
627 
629 {
630 private:
632 
634 
636 
639 
641 
644 
645  css::uno::Reference< css::uno::XComponentContext > m_context;
646 
650  std::unique_ptr<SvxColorValueSet> m_xValSetColorList;
651  std::unique_ptr<SvxColorValueSet> m_xValSetRecentList;
652  std::unique_ptr<weld::ComboBox> m_xSelectPalette;
653  std::unique_ptr<weld::RadioButton> m_xRbRGB;
654  std::unique_ptr<weld::RadioButton> m_xRbCMYK;
655  std::unique_ptr<weld::Widget> m_xRGBcustom;
656  std::unique_ptr<weld::Widget> m_xRGBpreset;
657  std::unique_ptr<weld::Entry> m_xRpreset;
658  std::unique_ptr<weld::Entry> m_xGpreset;
659  std::unique_ptr<weld::Entry> m_xBpreset;
660  std::unique_ptr<weld::SpinButton> m_xRcustom;
661  std::unique_ptr<weld::SpinButton> m_xGcustom;
662  std::unique_ptr<weld::SpinButton> m_xBcustom;
663  std::unique_ptr<weld::HexColorControl> m_xHexpreset;
664  std::unique_ptr<weld::HexColorControl> m_xHexcustom;
665  std::unique_ptr<weld::Widget> m_xCMYKcustom;
666  std::unique_ptr<weld::Widget> m_xCMYKpreset;
667  std::unique_ptr<weld::Entry> m_xCpreset;
668  std::unique_ptr<weld::Entry> m_xYpreset;
669  std::unique_ptr<weld::Entry> m_xMpreset;
670  std::unique_ptr<weld::Entry> m_xKpreset;
671  std::unique_ptr<weld::MetricSpinButton> m_xCcustom;
672  std::unique_ptr<weld::MetricSpinButton> m_xYcustom;
673  std::unique_ptr<weld::MetricSpinButton> m_xMcustom;
674  std::unique_ptr<weld::MetricSpinButton> m_xKcustom;
675  std::unique_ptr<weld::Button> m_xBtnAdd;
676  std::unique_ptr<weld::Button> m_xBtnDelete;
677  std::unique_ptr<weld::Button> m_xBtnWorkOn;
678  std::unique_ptr<weld::CustomWeld> m_xCtlPreviewOld;
679  std::unique_ptr<weld::CustomWeld> m_xCtlPreviewNew;
680  std::unique_ptr<weld::CustomWeld> m_xValSetColorListWin;
681  std::unique_ptr<weld::CustomWeld> m_xValSetRecentListWin;
682 
683  static void ConvertColorValues (Color& rColor, ColorModel eModell);
684  static void RgbToCmyk_Impl( Color& rColor, sal_uInt16& rK );
685  static void CmykToRgb_Impl( Color& rColor, const sal_uInt16 nKey );
686  sal_uInt16 ColorToPercent_Impl( sal_uInt16 nColor );
687  sal_uInt16 PercentToColor_Impl( sal_uInt16 nPercent );
688 
689  void ImpColorCountChanged();
690  void FillPaletteLB();
691 
692  DECL_LINK(ClickAddHdl_Impl, weld::Button&, void);
693  DECL_LINK(ClickWorkOnHdl_Impl, weld::Button&, void);
694  DECL_LINK(ClickDeleteHdl_Impl, weld::Button&, void);
695 
696  DECL_LINK(SelectPaletteLBHdl, weld::ComboBox&, void);
697  DECL_LINK( SelectValSetHdl_Impl, ValueSet*, void );
698  DECL_LINK( SelectColorModeHdl_Impl, weld::ToggleButton&, void );
699  void ChangeColor(const Color &rNewColor, bool bUpdatePreset = true);
700  void SetColorModel(ColorModel eModel);
701  void ChangeColorModel();
702  void UpdateColorValues( bool bUpdatePreset = true );
703  DECL_LINK(SpinValueHdl_Impl, weld::SpinButton&, void);
704  DECL_LINK(MetricSpinValueHdl_Impl, weld::MetricSpinButton&, void);
705  DECL_LINK(ModifiedHdl_Impl, weld::Entry&, void);
706 
707  void UpdateModified();
708 
709  static sal_Int32 FindInCustomColors( OUString const & aColorName );
710  sal_Int32 FindInPalette( const Color& rColor );
711 
712 public:
713  SvxColorTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
714  virtual ~SvxColorTabPage() override;
715 
716  void Construct();
717 
718  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
719  virtual bool FillItemSet( SfxItemSet* ) override;
720  virtual void Reset( const SfxItemSet * ) override;
721 
722  virtual void ActivatePage( const SfxItemSet& rSet ) override;
723  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
724 
725  void SetPropertyList( XPropertyListType t, const XPropertyListRef &xRef );
726  void SetColorList( const XColorListRef& pColList );
727 
728 
729  void SetColorChgd( ChangeType* pIn ) { pnColorListState = pIn; }
730 
731  void SetCtlPreviewOld( const SfxItemSet& rAttrs ) { m_aCtlPreviewOld.SetAttributes( rAttrs ); }
732 
733  virtual void FillUserData() override;
734 };
735 
736 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DeactivateRC DeactivatePage_Impl(SfxItemSet *pSet)
Definition: tparea.cxx:212
void SetBitmapList(const XBitmapListRef &pBmpLst)
Definition: cuitabarea.hxx:557
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:375
std::unique_ptr< weld::CustomWeld > m_xValSetColorListWin
Definition: cuitabarea.hxx:680
std::unique_ptr< weld::MetricSpinButton > m_xYcustom
Definition: cuitabarea.hxx:672
virtual ~SvxColorTabPage() override
Definition: tpcolor.cxx:146
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:575
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpshadow.cxx:224
std::unique_ptr< weld::CheckButton > m_xTsbScale
Definition: cuitabarea.hxx:514
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpshadow.cxx:440
std::unique_ptr< weld::Button > m_xBtnWorkOn
Definition: cuitabarea.hxx:677
FieldUnit
ChangeType * pnColorListState
Definition: cuitabarea.hxx:635
std::unique_ptr< weld::SpinButton > m_xRcustom
Definition: cuitabarea.hxx:660
void ChangeHatchHdl_Impl()
Definition: tphatch.cxx:348
sal_uInt16 m_nDlgType
Definition: cuitabarea.hxx:301
std::unique_ptr< weld::MetricSpinButton > m_xBitmapHeight
Definition: cuitabarea.hxx:516
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrStartValue
Definition: cuitabarea.hxx:162
void SetColorModel(ColorModel eModel)
Definition: tpcolor.cxx:547
virtual bool FillItemSet(SfxItemSet *) override
Definition: tparea.cxx:255
std::unique_ptr< weld::CustomWeld > m_xCtlPreviewNew
Definition: cuitabarea.hxx:679
sal_Int32 GetButtonPos(weld::ToggleButton *pButton)
Definition: cuitabarea.hxx:64
std::unique_ptr< weld::MetricSpinButton > m_xKcustom
Definition: cuitabarea.hxx:674
static const sal_uInt16 pAreaRanges[]
Definition: cuitabarea.hxx:208
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:518
const XColorListRef & GetNewColorList() const
Definition: cuitabarea.hxx:122
virtual void Reset(const SfxItemSet *) override
Definition: tptrans.cxx:353
static const sal_uInt16 * GetRanges()
Definition: cuitabarea.hxx:191
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpgradnt.cxx:172
virtual void PointChanged(weld::DrawingArea *pWindow, RectPoint eRP) override
Definition: tpshadow.cxx:500
ChangeType mnGradientListState
Definition: cuitabarea.hxx:108
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrCenterX
Definition: cuitabarea.hxx:156
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:303
void SetGradientList(XGradientListRef const &pGrdLst)
Definition: cuitabarea.hxx:275
std::unique_ptr< weld::Entry > m_xRpreset
Definition: cuitabarea.hxx:657
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:165
std::unique_ptr< weld::MetricSpinButton > m_xTileOffset
Definition: cuitabarea.hxx:524
ButtonBox maBox
Definition: cuitabarea.hxx:211
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:645
XGradientListRef m_pGradientList
Definition: cuitabarea.hxx:350
std::unique_ptr< SvxPresetListBox > m_xPatternLB
Definition: cuitabarea.hxx:581
XColorListRef pColorList
Definition: cuitabarea.hxx:633
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:210
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: tabarea.cxx:221
SfxTabPage * GetFillTabPage()
Definition: cuitabarea.hxx:248
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:673
std::unique_ptr< weld::Container > m_xPositionOffBox
Definition: cuitabarea.hxx:519
std::unique_ptr< weld::CustomWeld > m_xCtlPreviewOld
Definition: cuitabarea.hxx:678
XColorListRef m_pColorList
Definition: cuitabarea.hxx:349
std::unique_ptr< weld::ToggleButton > m_xBtnHatch
Definition: cuitabarea.hxx:241
std::unique_ptr< weld::RadioButton > m_xRbtTransGradient
Definition: cuitabarea.hxx:147
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:310
sal_Int32 SearchBitmapList(const OUString &rBitmapName)
Definition: tpbitmap.cxx:805
ChangeType mnPatternListState
Definition: cuitabarea.hxx:107
XPatternListRef mpPatternList
Definition: cuitabarea.hxx:102
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:729
XFillAttrSetItem aXFillAttr
Definition: cuitabarea.hxx:138
DECL_LINK(ClickAddHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Widget > m_xRGBpreset
Definition: cuitabarea.hxx:656
PageType
std::unique_ptr< weld::CustomWeld > m_xCtlXRectPreview
Definition: cuitabarea.hxx:316
void SavePalettes()
Definition: tabarea.cxx:72
XGradientListRef mpNewGradientList
Definition: cuitabarea.hxx:97
XGradientListRef m_pGradientList
Definition: cuitabarea.hxx:214
static const sal_uInt16 pShadowRanges[]
Definition: cuitabarea.hxx:293
std::unique_ptr< weld::CustomWeld > m_xValSetRecentListWin
Definition: cuitabarea.hxx:681
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:274
XPatternListRef mpNewPatternList
Definition: cuitabarea.hxx:103
SfxItemSet & rXFSet
Definition: cuitabarea.hxx:638
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrAngle
Definition: cuitabarea.hxx:160
XColorListRef mpColorList
Definition: cuitabarea.hxx:94
std::unique_ptr< weld::MetricSpinButton > m_xLbShadowBlurMetric
Definition: cuitabarea.hxx:314
virtual void FillUserData() override
Definition: tpcolor.cxx:729
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:299
SvxColorTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpcolor.cxx:40
XBitmapListRef m_pBitmapList
Definition: cuitabarea.hxx:494
std::unique_ptr< weld::MetricSpinButton > m_xMtrBorder
Definition: cuitabarea.hxx:366
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:283
sal_Int32 mnCurrentButton
Definition: cuitabarea.hxx:41
std::unique_ptr< weld::Entry > m_xGpreset
Definition: cuitabarea.hxx:658
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrBorder
Definition: cuitabarea.hxx:161
MapUnit m_ePoolUnit
Definition: cuitabarea.hxx:433
std::unique_ptr< weld::RadioButton > m_xRbtTransOff
Definition: cuitabarea.hxx:145
std::unique_ptr< weld::Button > m_xBtnDelete
Definition: cuitabarea.hxx:676
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpcolor.cxx:214
std::unique_ptr< weld::Widget > m_xCtlBitmapBorder
Definition: cuitabarea.hxx:164
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:483
std::unique_ptr< weld::Label > m_xFtTrgrAngle
Definition: cuitabarea.hxx:159
XBitmapListRef m_pBitmapList
Definition: cuitabarea.hxx:216
std::unique_ptr< ColorListBox > m_xLbColorFrom
Definition: cuitabarea.hxx:368
static const sal_uInt16 * GetRanges()
Definition: cuitabarea.hxx:267
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:623
static const sal_uInt16 pTransparenceRanges[]
Definition: cuitabarea.hxx:129
PaletteManager maPaletteManager
Definition: cuitabarea.hxx:647
SvxXRectPreview m_aCtlXRectPreview
Definition: cuitabarea.hxx:142
virtual void Reset(const SfxItemSet *) override
Definition: tpgradnt.cxx:216
virtual ~SvxShadowTabPage() override
Definition: tpshadow.cxx:162
void ModifiedHdl_Impl(void const *)
Definition: tpgradnt.cxx:278
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpcolor.cxx:222
ChangeType mnHatchingListState
Definition: cuitabarea.hxx:109
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:284
SvxBitmapTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpbitmap.cxx:69
virtual void Reset(const SfxItemSet *) override
Definition: tphatch.cxx:249
void SetNewColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:120
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:444
XColorListRef m_pColorList
Definition: cuitabarea.hxx:298
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:651
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:105
std::unique_ptr< weld::CheckButton > m_xCbIncrement
Definition: cuitabarea.hxx:374
void SetDlgType(sal_uInt16 nInType)
Definition: cuitabarea.hxx:200
sal_uInt16 PercentToColor_Impl(sal_uInt16 nPercent)
Definition: tpcolor.cxx:710
static void CmykToRgb_Impl(Color &rColor, const sal_uInt16 nKey)
Definition: tpcolor.cxx:667
std::unique_ptr< weld::CustomWeld > m_xCtlXRectPreview
Definition: cuitabarea.hxx:169
std::unique_ptr< weld::Label > m_xFtTrgrCenterX
Definition: cuitabarea.hxx:155
void ModifiedTrgrHdl_Impl(const weld::ComboBox *)
Definition: tptrans.cxx:118
XColorListRef mpNewColorList
Definition: cuitabarea.hxx:95
std::unique_ptr< weld::Button > m_xBtnModify
Definition: cuitabarea.hxx:583
std::unique_ptr< weld::Container > m_xFillTab
Definition: cuitabarea.hxx:237
std::unique_ptr< weld::Entry > m_xBpreset
Definition: cuitabarea.hxx:659
std::unique_ptr< weld::Container > m_xTileOffBox
Definition: cuitabarea.hxx:522
void SelectButtonImpl(sal_Int32 nPos)
Definition: cuitabarea.hxx:44
std::unique_ptr< weld::CustomWeld > m_xCtlBitmapPreview
Definition: cuitabarea.hxx:526
void SetBmpChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:286
ColorModel eCM
Definition: cuitabarea.hxx:640
XFillAttrSetItem aXFillAttr
Definition: cuitabarea.hxx:637
void SetPageType(PageType nInType)
Definition: cuitabarea.hxx:199
std::unique_ptr< weld::Widget > m_xCMYKpreset
Definition: cuitabarea.hxx:666
SvxShadowTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpshadow.cxx:57
std::unique_ptr< weld::RadioButton > m_xRbtTransLinear
Definition: cuitabarea.hxx:146
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:304
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tparea.cxx:385
bool IsBtnClicked() const
Definition: cuitabarea.hxx:250
std::unique_ptr< weld::ToggleButton > m_xBtnColor
Definition: cuitabarea.hxx:239
void ChangeColor(const Color &rNewColor, bool bUpdatePreset=true)
Definition: tpcolor.cxx:536
void SetControlState_Impl(css::awt::GradientStyle eXGS)
Definition: tpgradnt.cxx:566
sal_uInt16 ColorToPercent_Impl(sal_uInt16 nColor)
Definition: tpcolor.cxx:691
void SetPatternList(XPatternListRef const &pPtrnLst)
Definition: cuitabarea.hxx:280
std::unique_ptr< weld::ToggleButton > m_xBtnGradient
Definition: cuitabarea.hxx:240
ChangeType * m_pnGradientListState
Definition: cuitabarea.hxx:228
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:571
RectPoint
virtual bool FillItemSet(SfxItemSet *) override
Definition: tptrans.cxx:252
XColorListRef m_pColorList
Definition: cuitabarea.hxx:424
void SetHtchChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:285
DECL_LINK(ChangeHatchHdl, ValueSet *, void)
const SfxItemSet & rOutAttrs
Definition: cuitabarea.hxx:131
XPropertyListType
DECL_LINK(CancelHdlImpl, weld::Button &, void)
void SetPatternList(XPatternListRef const &pPatternList)
Definition: cuitabarea.hxx:614
virtual ~SvxBitmapTabPage() override
Definition: tpbitmap.cxx:136
void SetColorList(const XColorListRef &pColList)
Definition: tpcolor.cxx:742
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:353
void SetHatchingList(XHatchListRef const &pHtchLst)
Definition: cuitabarea.hxx:277
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:582
std::unique_ptr< SvxPixelCtl > m_xCtlPixel
Definition: cuitabarea.hxx:578
std::unique_ptr< weld::ComboBox > m_xSelectPalette
Definition: cuitabarea.hxx:652
void UpdateModified()
Definition: tpcolor.cxx:236
std::unique_ptr< ColorListBox > m_xLbBackgroundColor
Definition: cuitabarea.hxx:442
void SelectButton(weld::ToggleButton *pButton)
Definition: cuitabarea.hxx:72
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:579
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrEndValue
Definition: cuitabarea.hxx:163
virtual void Reset(const SfxItemSet *) override
Definition: tpcolor.cxx:242
const SfxItemSet & rOutAttrs
Definition: cuitabarea.hxx:631
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:422
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:231
std::unique_ptr< weld::ComboBox > m_xLbTrgrGradientType
Definition: cuitabarea.hxx:154
ChangeType * m_pnBitmapListState
Definition: cuitabarea.hxx:226
virtual bool FillItemSet(SfxItemSet *) override
Definition: tphatch.cxx:219
void FillPaletteLB()
Definition: tpcolor.cxx:162
void Construct()
Definition: tpcolor.cxx:178
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:577
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:512
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tparea.cxx:217
void ChangeColorModel()
Definition: tpcolor.cxx:555
std::unique_ptr< weld::CustomWeld > m_xCtlPosition
Definition: cuitabarea.hxx:315
std::unique_ptr< weld::HexColorControl > m_xHexpreset
Definition: cuitabarea.hxx:663
XHatchListRef m_pHatchingList
Definition: cuitabarea.hxx:215
std::unique_ptr< weld::Widget > m_xRGBcustom
Definition: cuitabarea.hxx:655
void SetGradientList(XGradientListRef const &pGrdLst)
Definition: cuitabarea.hxx:411
std::unique_ptr< weld::Entry > m_xKpreset
Definition: cuitabarea.hxx:670
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:347
void CalculateBitmapPresetSize()
Definition: tpbitmap.cxx:430
std::unique_ptr< weld::HexColorControl > m_xHexcustom
Definition: cuitabarea.hxx:664
XHatchListRef mpHatchingList
Definition: cuitabarea.hxx:98
void SetAttributes(const SfxItemSet &rItemSet)
std::unique_ptr< weld::SpinButton > m_xGcustom
Definition: cuitabarea.hxx:661
std::unique_ptr< weld::MetricSpinButton > m_xMtrColorTo
Definition: cuitabarea.hxx:371
std::unique_ptr< weld::RadioButton > m_xRbCMYK
Definition: cuitabarea.hxx:654
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpbitmap.cxx:180
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:572
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:238
std::unique_ptr< weld::ToggleButton > m_xBtnBitmap
Definition: cuitabarea.hxx:242
SvxXRectPreview m_aCtlPreview
Definition: cuitabarea.hxx:435
std::unique_ptr< SvxPresetListBox > m_xBitmapLB
Definition: cuitabarea.hxx:511
void SetPtrnChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:287
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:100
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:254
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpcolor.cxx:266
DECL_LINK(ClickAddHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::Entry > m_xCpreset
Definition: cuitabarea.hxx:667
const SdrView * mpView
Definition: cuitabarea.hxx:503
std::unique_ptr< ColorListBox > m_xLbBackgroundColor
Definition: cuitabarea.hxx:580
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpbitmap.cxx:148
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:527
std::unique_ptr< weld::ComboBox > m_xTileOffLB
Definition: cuitabarea.hxx:523
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:417
sal_Int32 SearchHatchList(const OUString &rHatchName)
Definition: tphatch.cxx:202
std::unique_ptr< weld::Button > m_xBtnAdd
Definition: cuitabarea.hxx:675
virtual ~SvxHatchTabPage() override
Definition: tphatch.cxx:116
SvxXRectPreview m_aCtlBitmapPreview
Definition: cuitabarea.hxx:510
std::unique_ptr< weld::Container > m_xPositionBox
Definition: cuitabarea.hxx:517
SvxXRectPreview m_aCtlPreviewOld
Definition: cuitabarea.hxx:648
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpbitmap.cxx:171
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:377
XBitmapListRef mpNewBitmapList
Definition: cuitabarea.hxx:101
std::unique_ptr< ColorListBox > m_xLbColor
Definition: cuitabarea.hxx:579
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpcolor.cxx:187
void SetColorChgd(ChangeType *pIn)
Definition: cuitabarea.hxx:616
std::unique_ptr< weld::MetricSpinButton > m_xPositionOffY
Definition: cuitabarea.hxx:521
static void ConvertColorValues(Color &rColor, ColorModel eModell)
Definition: tpcolor.cxx:505
std::unique_ptr< weld::CheckButton > m_xTsbShowShadow
Definition: cuitabarea.hxx:309
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:215
sal_Int32 SearchGradientList(const OUString &rGradientName)
Definition: tpgradnt.cxx:612
ChangeType * m_pnBitmapListState
Definition: cuitabarea.hxx:495
std::unique_ptr< SvxColorValueSet > m_xValSetColorList
Definition: cuitabarea.hxx:650
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:492
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:141
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:106
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:501
std::unique_ptr< weld::RadioButton > m_xRbRGB
Definition: cuitabarea.hxx:653
std::unique_ptr< weld::CustomWeld > m_xPatternLBWin
Definition: cuitabarea.hxx:586
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tparea.cxx:332
ChangeType * m_pnPatternListState
Definition: cuitabarea.hxx:227
sal_Int32 GetCurrentButtonPos() const
Definition: cuitabarea.hxx:63
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:615
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tphatch.cxx:194
std::unique_ptr< weld::Label > m_xFtTrgrCenterY
Definition: cuitabarea.hxx:157
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:296
void SetCtlPreviewOld(const SfxItemSet &rAttrs)
Definition: cuitabarea.hxx:731
static void RgbToCmyk_Impl(Color &rColor, sal_uInt16 &rK)
Definition: tpcolor.cxx:651
std::unique_ptr< weld::Container > m_xSizeBox
Definition: cuitabarea.hxx:513
void SetPropertyList(XPropertyListType t, const XPropertyListRef &xRef)
Definition: tpcolor.cxx:736
std::unique_ptr< weld::MetricSpinButton > m_xPositionOffX
Definition: cuitabarea.hxx:520
SvxAreaTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, SdrModel *pModel, bool bShadow)
Definition: tabarea.cxx:30
ChangeType maFixed_ChangeType
Definition: cuitabarea.hxx:223
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:410
std::unique_ptr< SvxBitmapCtl > m_xBitmapCtl
Definition: cuitabarea.hxx:587
std::unique_ptr< weld::CustomWeld > m_xCtlPreview
Definition: cuitabarea.hxx:585
ChangeType * m_pnHatchingListState
Definition: cuitabarea.hxx:229
ColorModel
std::unique_ptr< weld::MetricSpinButton > m_xMtrTransparent
linear transparency
Definition: cuitabarea.hxx:150
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:641
void ImpColorCountChanged()
Definition: tpcolor.cxx:154
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tpshadow.cxx:506
std::unique_ptr< weld::CustomWeld > m_xCtlBitmapPreview
Definition: cuitabarea.hxx:168
std::unique_ptr< weld::MetricSpinButton > m_xMtrTrgrCenterY
Definition: cuitabarea.hxx:158
#define NO_BUTTON_SELECTED
Definition: cuitabarea.hxx:31
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:502
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:300
std::unique_ptr< weld::MetricSpinButton > m_xMtrColorFrom
Definition: cuitabarea.hxx:369
XGradientListRef mpGradientList
Definition: cuitabarea.hxx:96
void AddButton(weld::ToggleButton *pButton)
Definition: cuitabarea.hxx:58
MapUnit
std::unique_ptr< weld::ToggleButton > m_xBtnPattern
Definition: cuitabarea.hxx:243
std::unique_ptr< weld::MetricSpinButton > m_xBitmapWidth
Definition: cuitabarea.hxx:515
std::unique_ptr< weld::Button > m_xBtnImport
Definition: cuitabarea.hxx:525
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tppattern.cxx:235
XColorListRef m_pColorList
Definition: cuitabarea.hxx:568
XPatternListRef m_pPatternList
Definition: cuitabarea.hxx:569
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:665
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:43
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:558
std::vector< weld::ToggleButton * > maButtonList
Definition: cuitabarea.hxx:42
std::unique_ptr< weld::CustomWeld > m_xCtlPixelWin
Definition: cuitabarea.hxx:584
std::unique_ptr< weld::MetricSpinButton > m_xMtrAngle
Definition: cuitabarea.hxx:437
void SetBitmapList(XBitmapListRef const &pBmpLst)
Definition: cuitabarea.hxx:279
std::unique_ptr< weld::Entry > m_xYpreset
Definition: cuitabarea.hxx:668
virtual ~SvxGradientTabPage() override
Definition: tpgradnt.cxx:115
std::unique_ptr< weld::MetricSpinButton > m_xMtrTransparent
Definition: cuitabarea.hxx:313
std::unique_ptr< weld::MetricSpinButton > m_xCcustom
Definition: cuitabarea.hxx:671
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:498
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:566
XHatchListRef mpNewHatchingList
Definition: cuitabarea.hxx:99
XPatternListRef m_pPatternList
Definition: cuitabarea.hxx:217
XColorListRef m_pColorList
Definition: cuitabarea.hxx:213
SdrModel * mpDrawModel
Definition: cuitabarea.hxx:92
FieldUnit meFieldUnit
Definition: cuitabarea.hxx:505
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:613
std::unique_ptr< weld::Widget > m_xGridGradient
Definition: cuitabarea.hxx:153
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:574
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpshadow.cxx:170
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:669
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:649
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:422
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:225
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpgradnt.cxx:228
SvxRectCtl m_aCtlPosition
Definition: cuitabarea.hxx:307
std::unique_ptr< ColorListBox > m_xLbShadowColor
Definition: cuitabarea.hxx:312
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:232
void ChangeGradientHdl_Impl()
Definition: tpgradnt.cxx:493
SvxXShadowPreview m_aCtlXRectPreview
Definition: cuitabarea.hxx:308
std::unique_ptr< weld::SpinButton > m_xBcustom
Definition: cuitabarea.hxx:662
ChangeType * m_pnHatchingListState
Definition: cuitabarea.hxx:427
virtual void Reset(const SfxItemSet *) override
Definition: tpshadow.cxx:340
std::unique_ptr< weld::MetricSpinButton > m_xMtrDistance
Definition: cuitabarea.hxx:311