LibreOffice Module cui (master)  1
tpshadow.cxx
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 
20 #include <svx/colorbox.hxx>
21 #include <svx/svxids.hrc>
22 #include <svtools/unitconv.hxx>
23 
24 #include <svx/xfillit0.hxx>
25 #include <svx/xflclit.hxx>
26 #include <svx/xflgrit.hxx>
27 #include <svx/xflhtit.hxx>
28 #include <svx/xbtmpit.hxx>
29 #include <svx/sdmetitm.hxx>
30 #include <svx/sdooitm.hxx>
31 #include <svx/sdprcitm.hxx>
32 #include <svx/sdshcitm.hxx>
33 #include <svx/sdshitm.hxx>
34 #include <svx/sdshtitm.hxx>
35 #include <svx/sdsxyitm.hxx>
36 #include <svx/drawitem.hxx>
37 #include <svx/xfltrit.hxx>
38 #include <cuitabarea.hxx>
39 #include <svx/dlgutil.hxx>
40 #include <cuitabline.hxx>
41 
42 using namespace com::sun::star;
43 
44 const sal_uInt16 SvxShadowTabPage::pShadowRanges[] =
45 {
48  SID_ATTR_FILL_SHADOW,
49  SID_ATTR_FILL_SHADOW,
50  SID_ATTR_SHADOW_TRANSPARENCE,
51  SID_ATTR_SHADOW_YDISTANCE,
52  0
53 };
54 
56  : SvxTabPage(pPage, pController, "cui/ui/shadowtabpage.ui", "ShadowTabPage", rInAttrs)
57  , m_rOutAttrs(rInAttrs)
58  , m_pnColorListState(nullptr)
59  , m_nPageType(PageType::Area)
60  , m_nDlgType(0)
61  , m_aXFillAttr(rInAttrs.GetPool())
62  , m_rXFSet(m_aXFillAttr.GetItemSet())
63  , m_aCtlPosition(this)
64  , m_xTsbShowShadow(m_xBuilder->weld_check_button("TSB_SHOW_SHADOW"))
65  , m_xGridShadow(m_xBuilder->weld_widget("gridSHADOW"))
66  , m_xMtrDistance(m_xBuilder->weld_metric_spin_button("MTR_FLD_DISTANCE", FieldUnit::CM))
67  , m_xLbShadowColor(new ColorListBox(m_xBuilder->weld_menu_button("LB_SHADOW_COLOR"), pController->getDialog()))
68  , m_xMtrTransparent(m_xBuilder->weld_metric_spin_button("MTR_SHADOW_TRANSPARENT", FieldUnit::PERCENT))
69  , m_xCtlPosition(new weld::CustomWeld(*m_xBuilder, "CTL_POSITION", m_aCtlPosition))
70  , m_xCtlXRectPreview(new weld::CustomWeld(*m_xBuilder, "CTL_COLOR_PREVIEW", m_aCtlXRectPreview))
71 {
72  // this page needs ExchangeSupport
73  SetExchangeSupport();
74 
75  // adjust metric
76  FieldUnit eFUnit = GetModuleFieldUnit( rInAttrs );
77 
78  switch ( eFUnit )
79  {
80  case FieldUnit::M:
81  case FieldUnit::KM:
82  eFUnit = FieldUnit::MM;
83  break;
84  default: ;//prevent warning
85  }
86  SetFieldUnit( *m_xMtrDistance, eFUnit );
87 
88  // determine PoolUnit
89  SfxItemPool* pPool = m_rOutAttrs.GetPool();
90  DBG_ASSERT( pPool, "Where is the pool?" );
92 
93  // setting the output device
94  drawing::FillStyle eXFS = drawing::FillStyle_SOLID;
95  if( m_rOutAttrs.GetItemState( XATTR_FILLSTYLE ) != SfxItemState::DONTCARE )
96  {
97  eXFS = static_cast<const XFillStyleItem&>( m_rOutAttrs.
99  switch( eXFS )
100  {
101  case drawing::FillStyle_SOLID:
102  if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLCOLOR ) )
103  {
105  }
106  break;
107 
108  case drawing::FillStyle_GRADIENT:
109  if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLGRADIENT ) )
110  {
112  }
113  break;
114 
115  case drawing::FillStyle_HATCH:
116  if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLHATCH ) )
117  {
119  }
120  break;
121 
122  case drawing::FillStyle_BITMAP:
123  {
124  if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLBITMAP ) )
125  {
127  }
128  }
129  break;
130  case drawing::FillStyle_NONE : break;
131  default: break;
132  }
133  }
134  else
135  {
136  m_rXFSet.Put( XFillColorItem( OUString(), COL_LIGHTRED ) );
137  }
138 
139  if(drawing::FillStyle_NONE == eXFS)
140  {
141  // #i96350#
142  // fallback to solid fillmode when no fill mode is provided to have
143  // a reasonable shadow preview. The used color will be a set one or
144  // the default (currently blue8)
145  eXFS = drawing::FillStyle_SOLID;
146  }
147 
148  m_rXFSet.Put( XFillStyleItem( eXFS ) );
150 
151  m_xTsbShowShadow->connect_toggled(LINK( this, SvxShadowTabPage, ClickShadowHdl_Impl));
152  m_xLbShadowColor->SetSelectHdl( LINK( this, SvxShadowTabPage, SelectShadowHdl_Impl ) );
153  Link<weld::MetricSpinButton&,void> aLink = LINK( this, SvxShadowTabPage, ModifyShadowHdl_Impl );
154  m_xMtrTransparent->connect_value_changed(aLink);
155  m_xMtrDistance->connect_value_changed(aLink);
156 }
157 
159 {
160  m_xCtlXRectPreview.reset();
161  m_xLbShadowColor.reset();
162  m_xCtlPosition.reset();
163 }
164 
166 {
167  const SfxUInt16Item* pPageTypeItem = rSet.GetItem<SfxUInt16Item>(SID_PAGE_TYPE, false);
168  if (pPageTypeItem)
169  SetPageType(static_cast<PageType>(pPageTypeItem->GetValue()));
170 
171  if( m_nDlgType == 0 )
172  {
173  if( m_pColorList.is() )
174  {
175  // ColorList
176  if( *m_pnColorListState & ChangeType::CHANGED ||
177  *m_pnColorListState & ChangeType::MODIFIED )
178  {
179  if( *m_pnColorListState & ChangeType::CHANGED )
180  {
181  SvxAreaTabDialog* pArea = dynamic_cast<SvxAreaTabDialog*>(GetDialogController());
182  if( pArea )
183  {
184  m_pColorList = pArea->GetNewColorList();
185  }
186  else
187  {
188  SvxLineTabDialog* pLine = dynamic_cast<SvxLineTabDialog*>(GetDialogController());
189  if( pLine )
190  m_pColorList = pLine->GetNewColorList();
191  }
192  }
193 
194  SfxItemSet rAttribs( rSet );
195  // rSet contains shadow attributes too, but we want
196  // to use it for updating rectangle attributes only,
197  // so set the shadow to none here
198  SdrOnOffItem aItem( makeSdrShadowItem( false ));
199  rAttribs.Put( aItem );
200 
202  ModifyShadowHdl_Impl( *m_xMtrTransparent );
203  }
205  }
206  }
207 }
208 
209 
211 {
212  if( _pSet )
213  FillItemSet( _pSet );
214 
215  return DeactivateRC::LeavePage;
216 }
217 
218 
220 {
221  bool bModified = false;
222 
223  const SfxPoolItem* pOld = nullptr;
224 
225  if (m_xTsbShowShadow->get_state_changed_from_saved())
226  {
227  TriState eState = m_xTsbShowShadow->get_state();
228  assert(eState != TRISTATE_INDET);
229  // given how m_xTsbShowShadow is set up and saved in Reset(),
230  // eState == TRISTATE_INDET would imply
231  // !IsValueChangedFromSaved()
232  SdrOnOffItem aItem( makeSdrShadowItem(eState == TRISTATE_TRUE) );
233  pOld = GetOldItem( *rAttrs, SDRATTR_SHADOW );
234  if ( !pOld || !( *static_cast<const SdrOnOffItem*>(pOld) == aItem ) )
235  {
236  rAttrs->Put( aItem );
237  bModified = true;
238  }
239  }
240 
241  // shadow removal
242  // a bit intricate inquiry whether there was something changed,
243  // as the items can't be displayed directly on controls
244  sal_Int32 nX = 0, nY = 0;
245  sal_Int32 nXY = GetCoreValue( *m_xMtrDistance, m_ePoolUnit );
246 
247  switch (m_aCtlPosition.GetActualRP())
248  {
249  case RectPoint::LT: nX = nY = -nXY; break;
250  case RectPoint::MT: nY = -nXY; break;
251  case RectPoint::RT: nX = nXY; nY = -nXY; break;
252  case RectPoint::LM: nX = -nXY; break;
253  case RectPoint::RM: nX = nXY; break;
254  case RectPoint::LB: nX = -nXY; nY = nXY; break;
255  case RectPoint::MB: nY = nXY; break;
256  case RectPoint::RB: nX = nY = nXY; break;
257  case RectPoint::MM: break;
258  }
259 
260  // If the values of the shadow distances==SfxItemState::DONTCARE and the displayed
261  // string in the respective MetricField=="", then the comparison of the old
262  // and the new distance values would return a wrong result because in such a
263  // case the new distance values would match the default values of the MetricField !!!!
264  if ( !m_xMtrDistance->get_text().isEmpty() ||
265  m_rOutAttrs.GetItemState( SDRATTR_SHADOWXDIST ) != SfxItemState::DONTCARE ||
266  m_rOutAttrs.GetItemState( SDRATTR_SHADOWYDIST ) != SfxItemState::DONTCARE )
267  {
268  sal_Int32 nOldX = 9876543; // impossible value, so DontCare
269  sal_Int32 nOldY = 9876543;
270  if( m_rOutAttrs.GetItemState( SDRATTR_SHADOWXDIST ) != SfxItemState::DONTCARE &&
271  m_rOutAttrs.GetItemState( SDRATTR_SHADOWYDIST ) != SfxItemState::DONTCARE )
272  {
273  nOldX = m_rOutAttrs.Get( SDRATTR_SHADOWXDIST ).GetValue();
274  nOldY = m_rOutAttrs.Get( SDRATTR_SHADOWYDIST ).GetValue();
275  }
277  pOld = GetOldItem( *rAttrs, SDRATTR_SHADOWXDIST );
278  if ( nX != nOldX &&
279  ( !pOld || !( *static_cast<const SdrMetricItem*>(pOld) == aXItem ) ) )
280  {
281  rAttrs->Put( aXItem );
282  bModified = true;
283  }
285  pOld = GetOldItem( *rAttrs, SDRATTR_SHADOWYDIST );
286  if ( nY != nOldY &&
287  ( !pOld || !( *static_cast<const SdrMetricItem*>(pOld) == aYItem ) ) )
288  {
289  rAttrs->Put( aYItem );
290  bModified = true;
291  }
292  }
293 
294  // ShadowColor
295  {
296  XColorItem aItem(makeSdrShadowColorItem(m_xLbShadowColor->GetSelectEntryColor()));
297  pOld = GetOldItem( *rAttrs, SDRATTR_SHADOWCOLOR );
298  if ( !pOld || !( *static_cast<const XColorItem*>(pOld) == aItem ) )
299  {
300  rAttrs->Put( aItem );
301  bModified = true;
302  }
303  }
304 
305  // transparency
306  sal_uInt16 nVal = static_cast<sal_uInt16>(m_xMtrTransparent->get_value(FieldUnit::PERCENT));
307  if (m_xMtrTransparent->get_value_changed_from_saved())
308  {
310  pOld = GetOldItem( *rAttrs, SDRATTR_SHADOWTRANSPARENCE );
311  if ( !pOld || !( *static_cast<const SdrPercentItem*>(pOld) == aItem ) )
312  {
313  rAttrs->Put( aItem );
314  bModified = true;
315  }
316  }
317 
318  rAttrs->Put (CntUInt16Item(SID_PAGE_TYPE, static_cast<sal_uInt16>(m_nPageType)));
319 
320  return bModified;
321 }
322 
323 
324 void SvxShadowTabPage::Reset( const SfxItemSet* rAttrs )
325 {
326  // all objects can have a shadow
327  // at the moment there are only 8 possible positions where a shadow can be set
328 
329  // has a shadow been set?
330  if( rAttrs->GetItemState( SDRATTR_SHADOW ) != SfxItemState::DONTCARE )
331  {
332  if( rAttrs->Get( SDRATTR_SHADOW ).GetValue() )
333  m_xTsbShowShadow->set_state(TRISTATE_TRUE);
334  else
335  {
336  m_xTsbShowShadow->set_state(TRISTATE_FALSE);
337  }
338  }
339  else
340  m_xTsbShowShadow->set_state(TRISTATE_INDET);
341 
342  // distance (only 8 possible positions),
343  // so there is only one item evaluated
344 
345  if( rAttrs->GetItemState( SDRATTR_SHADOWXDIST ) != SfxItemState::DONTCARE &&
346  rAttrs->GetItemState( SDRATTR_SHADOWYDIST ) != SfxItemState::DONTCARE )
347  {
348  sal_Int32 nX = rAttrs->Get( SDRATTR_SHADOWXDIST ).GetValue();
349  sal_Int32 nY = rAttrs->Get( SDRATTR_SHADOWYDIST ).GetValue();
350 
351  if( nX != 0 )
352  SetMetricValue( *m_xMtrDistance, nX < 0 ? -nX : nX, m_ePoolUnit );
353  else
354  SetMetricValue( *m_xMtrDistance, nY < 0 ? -nY : nY, m_ePoolUnit );
355 
356  // setting the shadow control
357  if ( nX < 0 && nY < 0 ) m_aCtlPosition.SetActualRP( RectPoint::LT );
358  else if( nX == 0 && nY < 0 ) m_aCtlPosition.SetActualRP( RectPoint::MT );
359  else if( nX > 0 && nY < 0 ) m_aCtlPosition.SetActualRP( RectPoint::RT );
360  else if( nX < 0 && nY == 0 ) m_aCtlPosition.SetActualRP( RectPoint::LM );
361  // there's no center point anymore
362  else if( nX == 0 && nY == 0 ) m_aCtlPosition.SetActualRP( RectPoint::RB );
363  else if( nX > 0 && nY == 0 ) m_aCtlPosition.SetActualRP( RectPoint::RM );
364  else if( nX < 0 && nY > 0 ) m_aCtlPosition.SetActualRP( RectPoint::LB );
365  else if( nX == 0 && nY > 0 ) m_aCtlPosition.SetActualRP( RectPoint::MB );
366  else if( nX > 0 && nY > 0 ) m_aCtlPosition.SetActualRP( RectPoint::RB );
367  }
368  else
369  {
370  // determine default-distance
371  SfxItemPool* pPool = m_rOutAttrs.GetPool();
372  {
373  sal_Int32 n = pPool->GetDefaultItem(SDRATTR_SHADOWXDIST).GetValue();
374  if (n == 0)
375  n = pPool->GetDefaultItem(SDRATTR_SHADOWYDIST).GetValue();
376  SetMetricValue(*m_xMtrDistance, std::abs(n), m_ePoolUnit);
377  }
378 
379  // Tristate, e. g. multiple objects have been marked of which some have a shadow and some don't.
380  // The text (which shall be displayed) of the MetricFields is set to "" and serves as an
381  // identification in the method FillItemSet for the fact that the distance value was NOT changed !!!!
382  m_xMtrDistance->set_text( "" );
383  m_aCtlPosition.SetActualRP( RectPoint::MM );
384  }
385 
386  if( rAttrs->GetItemState( SDRATTR_SHADOWCOLOR ) != SfxItemState::DONTCARE )
387  {
388  m_xLbShadowColor->SelectEntry( rAttrs->Get( SDRATTR_SHADOWCOLOR ).GetColorValue() );
389  }
390  else
391  m_xLbShadowColor->SetNoSelection();
392 
393  if( rAttrs->GetItemState( SDRATTR_SHADOWTRANSPARENCE ) != SfxItemState::DONTCARE )
394  {
395  sal_uInt16 nTransp = rAttrs->Get( SDRATTR_SHADOWTRANSPARENCE ).GetValue();
396  m_xMtrTransparent->set_value(nTransp, FieldUnit::PERCENT);
397  }
398  else
399  m_xMtrTransparent->set_text("");
400 
401  //aCtlPosition
402  m_xMtrDistance->save_value();
403  m_xLbShadowColor->SaveValue();
404  m_xTsbShowShadow->save_state();
405 
406  // #66832# This field was not saved, but used to determine changes.
407  // Why? Seems to be the error.
408  // It IS the error.
409  m_xMtrTransparent->save_value();
410 
411  ClickShadowHdl_Impl(*m_xTsbShowShadow);
412  ModifyShadowHdl_Impl(*m_xMtrTransparent);
413 }
414 
415 std::unique_ptr<SfxTabPage> SvxShadowTabPage::Create( weld::Container* pPage, weld::DialogController* pController,
416  const SfxItemSet* rAttrs )
417 {
418  return std::make_unique<SvxShadowTabPage>(pPage, pController, *rAttrs);
419 }
420 
422 {
423  if (m_xTsbShowShadow->get_state() == TRISTATE_FALSE)
424  {
425  m_xGridShadow->set_sensitive(false);
426  m_xCtlPosition->set_sensitive(false);
427  }
428  else
429  {
430  m_xGridShadow->set_sensitive(true);
431  m_xCtlPosition->set_sensitive(true);
432  }
433  m_aCtlPosition.Invalidate();
434  ModifyShadowHdl_Impl(*m_xMtrTransparent);
435 }
436 
437 IMPL_LINK_NOARG(SvxShadowTabPage, SelectShadowHdl_Impl, ColorListBox&, void)
438 {
439  ModifyShadowHdl_Impl(*m_xMtrTransparent);
440 }
441 
443 {
444  if (m_xTsbShowShadow->get_state() == TRISTATE_TRUE)
445  m_rXFSet.Put( XFillStyleItem( drawing::FillStyle_SOLID ) );
446  else
447  m_rXFSet.Put( XFillStyleItem( drawing::FillStyle_NONE ) );
448 
449  m_rXFSet.Put( XFillColorItem( OUString(), m_xLbShadowColor->GetSelectEntryColor() ) );
450  sal_uInt16 nVal = static_cast<sal_uInt16>(m_xMtrTransparent->get_value(FieldUnit::PERCENT));
451  m_rXFSet.Put( XFillTransparenceItem( nVal ) );
452 
453  // shadow removal
454  sal_Int32 nX = 0, nY = 0;
455  sal_Int32 nXY = GetCoreValue( *m_xMtrDistance, m_ePoolUnit );
456  switch( m_aCtlPosition.GetActualRP() )
457  {
458  case RectPoint::LT: nX = nY = -nXY; break;
459  case RectPoint::MT: nY = -nXY; break;
460  case RectPoint::RT: nX = nXY; nY = -nXY; break;
461  case RectPoint::LM: nX = -nXY; break;
462  case RectPoint::RM: nX = nXY; break;
463  case RectPoint::LB: nX = -nXY; nY = nXY; break;
464  case RectPoint::MB: nY = nXY; break;
465  case RectPoint::RB: nX = nY = nXY; break;
466  case RectPoint::MM: break;
467  }
468 
469  m_aCtlXRectPreview.SetShadowPosition(Point(nX, nY));
470 
471  m_aCtlXRectPreview.SetShadowAttributes(m_aXFillAttr.GetItemSet());
472  m_aCtlXRectPreview.Invalidate();
473 }
474 
476 {
477  // repaint shadow
478  ModifyShadowHdl_Impl( *m_xMtrTransparent );
479 }
480 
482 {
483  const SvxColorListItem* pColorListItem = aSet.GetItem<SvxColorListItem>(SID_COLOR_TABLE, false);
484  const SfxUInt16Item* pPageTypeItem = aSet.GetItem<SfxUInt16Item>(SID_PAGE_TYPE, false);
485  const SfxUInt16Item* pDlgTypeItem = aSet.GetItem<SfxUInt16Item>(SID_DLG_TYPE, false);
486 
487  if (pColorListItem)
488  SetColorList(pColorListItem->GetColorList());
489  if (pPageTypeItem)
490  SetPageType(static_cast<PageType>(pPageTypeItem->GetValue()));
491  if (pDlgTypeItem)
492  SetDlgType(pDlgTypeItem->GetValue());
493 }
494 
495 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool FillItemSet(SfxItemSet *) override
Definition: tpshadow.cxx:219
void SetFieldUnit(weld::MetricSpinButton &rField, FieldUnit eUnit, bool bAll)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: tpshadow.cxx:415
FieldUnit
void SetActualRP(RectPoint eNewRP)
#define XATTR_FILLHATCH
sal_uInt16 m_nDlgType
Definition: cuitabarea.hxx:303
const XColorListRef & GetNewColorList() const
Definition: cuitabarea.hxx:124
virtual void PointChanged(weld::DrawingArea *pWindow, RectPoint eRP) override
Definition: tpshadow.cxx:475
XFillAttrSetItem m_aXFillAttr
Definition: cuitabarea.hxx:305
std::string GetValue
void SetDlgType(sal_uInt16 nInType)
Definition: cuitabarea.hxx:338
#define XATTR_FILLGRADIENT
#define SDRATTR_SHADOWTRANSPARENCE
sal_uInt16 GetValue() const
#define SDRATTR_SHADOWCOLOR
RectPoint GetActualRP() const
PageType
constexpr::Color COL_LIGHTRED(0xFF, 0x00, 0x00)
std::unique_ptr< weld::CustomWeld > m_xCtlXRectPreview
Definition: cuitabarea.hxx:317
static const sal_uInt16 pShadowRanges[]
Definition: cuitabarea.hxx:295
void SetRectangleAttributes(const SfxItemSet &rItemSet)
TRISTATE_TRUE
ChangeType * m_pnColorListState
Definition: cuitabarea.hxx:301
#define XATTR_FILLCOLOR
FieldUnit GetModuleFieldUnit(const SfxItemSet &rSet)
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
virtual ~SvxShadowTabPage() override
Definition: tpshadow.cxx:158
XColorListRef m_pColorList
Definition: cuitabarea.hxx:300
void SetPageType(PageType nInType)
Definition: cuitabarea.hxx:337
TRISTATE_INDET
SvxShadowTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: tpshadow.cxx:55
SfxItemSet & m_rXFSet
Definition: cuitabarea.hxx:306
#define SDRATTR_SHADOWYDIST
IMPL_LINK_NOARG(SvxShadowTabPage, ClickShadowHdl_Impl, weld::ToggleButton &, void)
Definition: tpshadow.cxx:421
RectPoint
XColorItem makeSdrShadowColorItem(const Color &rTheColor)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
#define DBG_ASSERT(sCon, aError)
#define SDRATTR_SHADOWXDIST
SdrPercentItem makeSdrShadowTransparenceItem(sal_uInt16 nTransp)
TRISTATE_FALSE
int GetCoreValue(const weld::MetricSpinButton &rField, MapUnit eUnit)
const SfxItemSet * GetItemSet(const SfxPoolItem &rAttr)
std::unique_ptr< weld::CustomWeld > m_xCtlPosition
Definition: cuitabarea.hxx:316
#define SDRATTR_SHADOW
void SetColorList(XColorListRef const &pColorList)
Definition: cuitabarea.hxx:336
const XColorListRef & GetColorList() const
#define XATTR_FILLSTYLE
void SetMetricValue(weld::MetricSpinButton &rField, int nCoreValue, MapUnit eUnit)
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
SdrMetricItem makeSdrShadowYDistItem(long nDist)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
std::unique_ptr< weld::CheckButton > m_xTsbShowShadow
Definition: cuitabarea.hxx:311
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpshadow.cxx:210
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
#define GetWhich(nSlot)
const SfxItemSet & m_rOutAttrs
Definition: cuitabarea.hxx:298
const OUString PERCENT("Percent")
SdrOnOffItem makeSdrShadowItem(bool bShadow)
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: tpshadow.cxx:481
DeactivateRC
PageType m_nPageType
Definition: cuitabarea.hxx:302
#define XATTR_FILLBITMAP
SVX_DLLPUBLIC MSO_SPT Get(const OUString &)
std::unique_ptr< weld::MetricSpinButton > m_xMtrTransparent
Definition: cuitabarea.hxx:315
TriState
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const XColorListRef & GetNewColorList() const
Definition: cuitabline.hxx:77
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: tpshadow.cxx:165
SdrMetricItem makeSdrShadowXDistItem(long nDist)
SvxRectCtl m_aCtlPosition
Definition: cuitabarea.hxx:309
std::unique_ptr< ColorListBox > m_xLbShadowColor
Definition: cuitabarea.hxx:314
SvxXShadowPreview m_aCtlXRectPreview
Definition: cuitabarea.hxx:310
virtual void Reset(const SfxItemSet *) override
Definition: tpshadow.cxx:324
std::unique_ptr< weld::MetricSpinButton > m_xMtrDistance
Definition: cuitabarea.hxx:313