LibreOffice Module svx (master)  1
svdattr.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 <com/sun/star/drawing/TextFitToSizeType.hpp>
21 #include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
22 #include <com/sun/star/drawing/TextVerticalAdjust.hpp>
23 #include <com/sun/star/drawing/TextAnimationKind.hpp>
24 #include <com/sun/star/uno/Any.hxx>
25 #include <com/sun/star/drawing/TextAnimationDirection.hpp>
26 #include <com/sun/star/drawing/ConnectorType.hpp>
27 #include <com/sun/star/drawing/MeasureKind.hpp>
28 #include <com/sun/star/drawing/MeasureTextHorzPos.hpp>
29 #include <com/sun/star/drawing/MeasureTextVertPos.hpp>
30 #include <com/sun/star/drawing/CircleKind.hpp>
31 #include <com/sun/star/uno/Sequence.hxx>
32 
33 #include <editeng/boxitem.hxx>
34 #include <editeng/eeitem.hxx>
35 #include <editeng/lineitem.hxx>
36 #include <editeng/shaditem.hxx>
37 #include <editeng/xmlcnitm.hxx>
38 #include <editeng/adjustitem.hxx>
39 #include <editeng/editdata.hxx>
42 #include <osl/diagnose.h>
43 #include <i18nutil/unicode.hxx>
44 #include <svl/solar.hrc>
45 #include <tools/bigint.hxx>
46 #include <tools/stream.hxx>
47 #include <unotools/intlwrapper.hxx>
49 #include <vcl/svapp.hxx>
50 #include <vcl/settings.hxx>
51 
52 #include <svx/strings.hrc>
53 #include <svx/dialmgr.hxx>
54 #include <svx/sdgcpitm.hxx>
55 #include <svx/sdtfchim.hxx>
56 #include <svx/sdasitm.hxx>
57 #include <svx/sdgcoitm.hxx>
58 #include <svx/sdggaitm.hxx>
59 #include <svx/sdginitm.hxx>
60 #include <svx/sdgluitm.hxx>
61 #include <svx/sdgmoitm.hxx>
62 #include <svx/sdgtritm.hxx>
63 #include <svx/sdprcitm.hxx>
64 #include <svx/sdtaaitm.hxx>
65 #include <svx/sdtacitm.hxx>
66 #include <svx/sdtaditm.hxx>
67 #include <svx/sdtaiitm.hxx>
68 #include <svx/sdtaitm.hxx>
69 #include <svx/sdtakitm.hxx>
70 #include <svx/sdtayitm.hxx>
71 #include <svx/sdtfsitm.hxx>
72 #include <svx/svdmodel.hxx>
73 #include <svx/svdpool.hxx>
74 #include <svx/svdtrans.hxx>
75 #include <svx/svx3ditems.hxx>
76 #include <svx/svxids.hrc>
77 #include <sxallitm.hxx>
78 #include <svx/sxcaitm.hxx>
79 #include <svx/sxcecitm.hxx>
80 #include <svx/sxcgitm.hxx>
81 #include <svx/sxciaitm.hxx>
82 #include <sxcikitm.hxx>
83 #include <svx/sxcllitm.hxx>
84 #include <svx/sxctitm.hxx>
85 #include <svx/sxekitm.hxx>
86 #include <svx/sxelditm.hxx>
87 #include <svx/sxenditm.hxx>
88 #include <svx/sxfiitm.hxx>
89 #include <sxlayitm.hxx>
90 #include <sxlogitm.hxx>
91 #include <svx/sxmbritm.hxx>
92 #include <svx/sxmfsitm.hxx>
93 #include <sxmkitm.hxx>
94 #include <svx/sxmlhitm.hxx>
95 #include <sxmoitm.hxx>
96 #include <sxmovitm.hxx>
97 #include <sxmsitm.hxx>
98 #include <sxmtaitm.hxx>
99 #include <svx/sxmtfitm.hxx>
100 #include <svx/sxmtpitm.hxx>
101 #include <svx/sxmtritm.hxx>
102 #include <svx/sxmuitm.hxx>
103 #include <sxoneitm.hxx>
104 #include <sxopitm.hxx>
105 #include <sxreaitm.hxx>
106 #include <sxreoitm.hxx>
107 #include <sxroaitm.hxx>
108 #include <sxrooitm.hxx>
109 #include <sxsaitm.hxx>
110 #include <sxsalitm.hxx>
111 #include <svx/sxsiitm.hxx>
112 #include <sxsoitm.hxx>
113 #include <sxtraitm.hxx>
114 #include <svx/xfillit0.hxx>
115 #include <svx/xflclit.hxx>
116 #include <svx/xlineit0.hxx>
117 #include <svx/xtable.hxx>
118 #include <libxml/xmlwriter.h>
119 
120 using namespace ::com::sun::star;
121 
123  SfxItemPool* _pMaster)
124 : XOutdevItemPool(_pMaster)
125 {
126  // prepare some constants
127  const Color aNullCol(COL_BLACK);
128  const sal_Int32 nDefEdgeDist(500); // Defaulting hard for Draw (100TH_MM) currently. MapMode will have to be taken into account in the future.
129 
130  // init the non-persistent items
131  for(sal_uInt16 i(SDRATTR_NOTPERSIST_FIRST); i <= SDRATTR_NOTPERSIST_LAST; i++)
132  {
133  mpLocalItemInfos[i - SDRATTR_START]._bPoolable = false;
134  }
135 
136  // init own PoolDefaults
137  std::vector<SfxPoolItem*>& rPoolDefaults = *mpLocalPoolDefaults;
138  rPoolDefaults[SDRATTR_SHADOW -SDRATTR_START]=new SdrOnOffItem(SDRATTR_SHADOW, false);
139  rPoolDefaults[SDRATTR_SHADOWCOLOR -SDRATTR_START]=new XColorItem(SDRATTR_SHADOWCOLOR, aNullCol);
181  rPoolDefaults[SDRATTR_EDGEKIND -SDRATTR_START]=new SdrEdgeKindItem;
182  rPoolDefaults[SDRATTR_EDGENODE1HORZDIST-SDRATTR_START]=new SdrEdgeNode1HorzDistItem(nDefEdgeDist);
183  rPoolDefaults[SDRATTR_EDGENODE1VERTDIST-SDRATTR_START]=new SdrEdgeNode1VertDistItem(nDefEdgeDist);
184  rPoolDefaults[SDRATTR_EDGENODE2HORZDIST-SDRATTR_START]=new SdrEdgeNode2HorzDistItem(nDefEdgeDist);
185  rPoolDefaults[SDRATTR_EDGENODE2VERTDIST-SDRATTR_START]=new SdrEdgeNode2VertDistItem(nDefEdgeDist);
213  rPoolDefaults[SDRATTR_CIRCKIND -SDRATTR_START]=new SdrCircKindItem;
220  rPoolDefaults[SDRATTR_LAYERID -SDRATTR_START]=new SdrLayerIdItem(SdrLayerID(0));
235  rPoolDefaults[SDRATTR_MOVEX -SDRATTR_START]=new SdrMoveXItem;
236  rPoolDefaults[SDRATTR_MOVEY -SDRATTR_START]=new SdrMoveYItem;
251  rPoolDefaults[SDRATTR_TEXTDIRECTION -SDRATTR_START]=new SvxWritingModeItem(css::text::WritingMode_LR_TB, SDRATTR_TEXTDIRECTION);
252  rPoolDefaults[ SDRATTR_GRAFRED - SDRATTR_START] = new SdrGrafRedItem;
253  rPoolDefaults[ SDRATTR_GRAFGREEN - SDRATTR_START] = new SdrGrafGreenItem;
254  rPoolDefaults[ SDRATTR_GRAFBLUE - SDRATTR_START] = new SdrGrafBlueItem;
257  rPoolDefaults[ SDRATTR_GRAFGAMMA - SDRATTR_START] = new SdrGrafGamma100Item;
259  rPoolDefaults[ SDRATTR_GRAFINVERT - SDRATTR_START] = new SdrGrafInvertItem;
260  rPoolDefaults[ SDRATTR_GRAFMODE - SDRATTR_START] = new SdrGrafModeItem;
261  rPoolDefaults[ SDRATTR_GRAFCROP - SDRATTR_START] = new SdrGrafCropItem;
264  rPoolDefaults[ SDRATTR_3DOBJ_DEPTH - SDRATTR_START ] = new SfxUInt32Item(SDRATTR_3DOBJ_DEPTH, 1000);
274  rPoolDefaults[ SDRATTR_3DOBJ_MAT_COLOR - SDRATTR_START ] = new SvxColorItem(Color(0x0000b8ff), SDRATTR_3DOBJ_MAT_COLOR);
308  rPoolDefaults[ SDRATTR_3DSCENE_LIGHTDIRECTION_1 - SDRATTR_START ] = new SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_1, basegfx::B3DVector(0.57735026918963, 0.57735026918963, 0.57735026918963));
321 
322  SvxBoxItem* pboxItem = new SvxBoxItem( SDRATTR_TABLE_BORDER );
323  pboxItem->SetAllDistances( 100 );
324  rPoolDefaults[ SDRATTR_TABLE_BORDER - SDRATTR_START ] = pboxItem;
325 
327 
328  pBoxInfoItem->SetTable( true );
329  pBoxInfoItem->SetDist( true); // always show margin field
330  pBoxInfoItem->SetValid( SvxBoxInfoItemValidFlags::DISABLE ); // some lines may have DontCare state only in tables
331 
332  rPoolDefaults[ SDRATTR_TABLE_BORDER_INNER - SDRATTR_START ] = pBoxInfoItem;
336 
337  // set own ItemInfos
338  mpLocalItemInfos[SDRATTR_SHADOW-SDRATTR_START]._nSID=SID_ATTR_FILL_SHADOW;
339  mpLocalItemInfos[SDRATTR_SHADOWCOLOR-SDRATTR_START]._nSID=SID_ATTR_SHADOW_COLOR;
340  mpLocalItemInfos[SDRATTR_SHADOWTRANSPARENCE-SDRATTR_START]._nSID=SID_ATTR_SHADOW_TRANSPARENCE;
341  mpLocalItemInfos[SDRATTR_SHADOWXDIST-SDRATTR_START]._nSID=SID_ATTR_SHADOW_XDISTANCE;
342  mpLocalItemInfos[SDRATTR_SHADOWYDIST-SDRATTR_START]._nSID=SID_ATTR_SHADOW_YDISTANCE;
343  mpLocalItemInfos[SDRATTR_TEXT_FITTOSIZE-SDRATTR_START]._nSID=SID_ATTR_TEXT_FITTOSIZE;
344  mpLocalItemInfos[SDRATTR_GRAFCROP-SDRATTR_START]._nSID=SID_ATTR_GRAF_CROP;
345 
346  mpLocalItemInfos[SDRATTR_TABLE_BORDER - SDRATTR_START ]._nSID = SID_ATTR_BORDER_OUTER;
347  mpLocalItemInfos[SDRATTR_TABLE_BORDER_INNER - SDRATTR_START ]._nSID = SID_ATTR_BORDER_INNER;
348  mpLocalItemInfos[SDRATTR_TABLE_BORDER_TLBR - SDRATTR_START ]._nSID = SID_ATTR_BORDER_DIAG_TLBR;
349  mpLocalItemInfos[SDRATTR_TABLE_BORDER_BLTR - SDRATTR_START ]._nSID = SID_ATTR_BORDER_DIAG_BLTR;
350 
351  // it's my own creation level, set Defaults and ItemInfos
354 }
355 
356 // copy ctor, so that static defaults are cloned
357 // (Parameter 2 = sal_True)
359 : XOutdevItemPool(rPool)
360 {
361 }
362 
364 {
365  return new SdrItemPool(*this);
366 }
367 
369 {
370  // split pools before destroying
371  SetSecondaryPool(nullptr);
372 }
373 
375  const SfxPoolItem& rItem,
376  MapUnit ePresentationMetric, OUString& rText,
377  const IntlWrapper& rIntlWrapper) const
378 {
379  if (!IsInvalidItem(&rItem)) {
380  sal_uInt16 nWhich=rItem.Which();
381  if (nWhich>=SDRATTR_SHADOW_FIRST && nWhich<=SDRATTR_END) {
382  rItem.GetPresentation(SfxItemPresentation::Nameless,
383  GetMetric(nWhich),ePresentationMetric,rText,
384  rIntlWrapper);
385  rText = GetItemName(nWhich) + " " + rText;
386 
387  return true;
388  }
389  }
390  return XOutdevItemPool::GetPresentation(rItem,ePresentationMetric,rText,rIntlWrapper);
391 }
392 
393 OUString SdrItemPool::GetItemName(sal_uInt16 nWhich)
394 {
395  const char* pResId = SIP_UNKNOWN_ATTR;
396 
397  switch (nWhich)
398  {
399  case XATTR_LINESTYLE : pResId = SIP_XA_LINESTYLE;break;
400  case XATTR_LINEDASH : pResId = SIP_XA_LINEDASH;break;
401  case XATTR_LINEWIDTH : pResId = SIP_XA_LINEWIDTH;break;
402  case XATTR_LINECOLOR : pResId = SIP_XA_LINECOLOR;break;
403  case XATTR_LINESTART : pResId = SIP_XA_LINESTART;break;
404  case XATTR_LINEEND : pResId = SIP_XA_LINEEND;break;
405  case XATTR_LINESTARTWIDTH : pResId = SIP_XA_LINESTARTWIDTH;break;
406  case XATTR_LINEENDWIDTH : pResId = SIP_XA_LINEENDWIDTH;break;
407  case XATTR_LINESTARTCENTER : pResId = SIP_XA_LINESTARTCENTER;break;
408  case XATTR_LINEENDCENTER : pResId = SIP_XA_LINEENDCENTER;break;
409  case XATTR_LINETRANSPARENCE : pResId = SIP_XA_LINETRANSPARENCE;break;
410  case XATTR_LINEJOINT : pResId = SIP_XA_LINEJOINT;break;
411  case XATTRSET_LINE : pResId = SIP_XATTRSET_LINE;break;
412 
413  case XATTR_FILLSTYLE : pResId = SIP_XA_FILLSTYLE;break;
414  case XATTR_FILLCOLOR : pResId = SIP_XA_FILLCOLOR;break;
415  case XATTR_FILLGRADIENT : pResId = SIP_XA_FILLGRADIENT;break;
416  case XATTR_FILLHATCH : pResId = SIP_XA_FILLHATCH;break;
417  case XATTR_FILLBITMAP : pResId = SIP_XA_FILLBITMAP;break;
418  case XATTR_FILLTRANSPARENCE : pResId = SIP_XA_FILLTRANSPARENCE;break;
419  case XATTR_GRADIENTSTEPCOUNT : pResId = SIP_XA_GRADIENTSTEPCOUNT;break;
420  case XATTR_FILLBMP_TILE : pResId = SIP_XA_FILLBMP_TILE;break;
421  case XATTR_FILLBMP_POS : pResId = SIP_XA_FILLBMP_POS;break;
422  case XATTR_FILLBMP_SIZEX : pResId = SIP_XA_FILLBMP_SIZEX;break;
423  case XATTR_FILLBMP_SIZEY : pResId = SIP_XA_FILLBMP_SIZEY;break;
424  case XATTR_FILLFLOATTRANSPARENCE: pResId = SIP_XA_FILLFLOATTRANSPARENCE;break;
425  case XATTR_SECONDARYFILLCOLOR : pResId = SIP_XA_SECONDARYFILLCOLOR;break;
426  case XATTR_FILLBMP_SIZELOG : pResId = SIP_XA_FILLBMP_SIZELOG;break;
427  case XATTR_FILLBMP_TILEOFFSETX : pResId = SIP_XA_FILLBMP_TILEOFFSETX;break;
428  case XATTR_FILLBMP_TILEOFFSETY : pResId = SIP_XA_FILLBMP_TILEOFFSETY;break;
429  case XATTR_FILLBMP_STRETCH : pResId = SIP_XA_FILLBMP_STRETCH;break;
430  case XATTR_FILLBMP_POSOFFSETX : pResId = SIP_XA_FILLBMP_POSOFFSETX;break;
431  case XATTR_FILLBMP_POSOFFSETY : pResId = SIP_XA_FILLBMP_POSOFFSETY;break;
432  case XATTR_FILLBACKGROUND : pResId = SIP_XA_FILLBACKGROUND;break;
433 
434  case XATTRSET_FILL : pResId = SIP_XATTRSET_FILL;break;
435 
436  case XATTR_FORMTXTSTYLE : pResId = SIP_XA_FORMTXTSTYLE;break;
437  case XATTR_FORMTXTADJUST : pResId = SIP_XA_FORMTXTADJUST;break;
438  case XATTR_FORMTXTDISTANCE : pResId = SIP_XA_FORMTXTDISTANCE;break;
439  case XATTR_FORMTXTSTART : pResId = SIP_XA_FORMTXTSTART;break;
440  case XATTR_FORMTXTMIRROR : pResId = SIP_XA_FORMTXTMIRROR;break;
441  case XATTR_FORMTXTOUTLINE : pResId = SIP_XA_FORMTXTOUTLINE;break;
442  case XATTR_FORMTXTSHADOW : pResId = SIP_XA_FORMTXTSHADOW;break;
443  case XATTR_FORMTXTSHDWCOLOR : pResId = SIP_XA_FORMTXTSHDWCOLOR;break;
444  case XATTR_FORMTXTSHDWXVAL : pResId = SIP_XA_FORMTXTSHDWXVAL;break;
445  case XATTR_FORMTXTSHDWYVAL : pResId = SIP_XA_FORMTXTSHDWYVAL;break;
446  case XATTR_FORMTXTHIDEFORM : pResId = SIP_XA_FORMTXTHIDEFORM;break;
447  case XATTR_FORMTXTSHDWTRANSP: pResId = SIP_XA_FORMTXTSHDWTRANSP;break;
448 
449  case SDRATTR_SHADOW : pResId = SIP_SA_SHADOW;break;
450  case SDRATTR_SHADOWCOLOR : pResId = SIP_SA_SHADOWCOLOR;break;
451  case SDRATTR_SHADOWXDIST : pResId = SIP_SA_SHADOWXDIST;break;
452  case SDRATTR_SHADOWYDIST : pResId = SIP_SA_SHADOWYDIST;break;
453  case SDRATTR_SHADOWTRANSPARENCE: pResId = SIP_SA_SHADOWTRANSPARENCE;break;
454  case SDRATTR_SHADOW3D : pResId = SIP_SA_SHADOW3D;break;
455  case SDRATTR_SHADOWPERSP : pResId = SIP_SA_SHADOWPERSP;break;
456 
457  case SDRATTR_CAPTIONTYPE : pResId = SIP_SA_CAPTIONTYPE;break;
458  case SDRATTR_CAPTIONFIXEDANGLE: pResId = SIP_SA_CAPTIONFIXEDANGLE;break;
459  case SDRATTR_CAPTIONANGLE : pResId = SIP_SA_CAPTIONANGLE;break;
460  case SDRATTR_CAPTIONGAP : pResId = SIP_SA_CAPTIONGAP;break;
461  case SDRATTR_CAPTIONESCDIR : pResId = SIP_SA_CAPTIONESCDIR;break;
462  case SDRATTR_CAPTIONESCISREL : pResId = SIP_SA_CAPTIONESCISREL;break;
463  case SDRATTR_CAPTIONESCREL : pResId = SIP_SA_CAPTIONESCREL;break;
464  case SDRATTR_CAPTIONESCABS : pResId = SIP_SA_CAPTIONESCABS;break;
465  case SDRATTR_CAPTIONLINELEN : pResId = SIP_SA_CAPTIONLINELEN;break;
466  case SDRATTR_CAPTIONFITLINELEN: pResId = SIP_SA_CAPTIONFITLINELEN;break;
467 
468  case SDRATTR_ECKENRADIUS : pResId = SIP_SA_ECKENRADIUS;break;
469  case SDRATTR_TEXT_MINFRAMEHEIGHT : pResId = SIP_SA_TEXT_MINFRAMEHEIGHT;break;
470  case SDRATTR_TEXT_AUTOGROWHEIGHT : pResId = SIP_SA_TEXT_AUTOGROWHEIGHT;break;
471  case SDRATTR_TEXT_FITTOSIZE : pResId = SIP_SA_TEXT_FITTOSIZE;break;
472  case SDRATTR_TEXT_LEFTDIST : pResId = SIP_SA_TEXT_LEFTDIST;break;
473  case SDRATTR_TEXT_RIGHTDIST : pResId = SIP_SA_TEXT_RIGHTDIST;break;
474  case SDRATTR_TEXT_UPPERDIST : pResId = SIP_SA_TEXT_UPPERDIST;break;
475  case SDRATTR_TEXT_LOWERDIST : pResId = SIP_SA_TEXT_LOWERDIST;break;
476  case SDRATTR_TEXT_VERTADJUST : pResId = SIP_SA_TEXT_VERTADJUST;break;
477  case SDRATTR_TEXT_MAXFRAMEHEIGHT : pResId = SIP_SA_TEXT_MAXFRAMEHEIGHT;break;
478  case SDRATTR_TEXT_MINFRAMEWIDTH : pResId = SIP_SA_TEXT_MINFRAMEWIDTH;break;
479  case SDRATTR_TEXT_MAXFRAMEWIDTH : pResId = SIP_SA_TEXT_MAXFRAMEWIDTH;break;
480  case SDRATTR_TEXT_AUTOGROWWIDTH : pResId = SIP_SA_TEXT_AUTOGROWWIDTH;break;
481  case SDRATTR_TEXT_HORZADJUST : pResId = SIP_SA_TEXT_HORZADJUST;break;
482  case SDRATTR_TEXT_ANIKIND : pResId = SIP_SA_TEXT_ANIKIND;break;
483  case SDRATTR_TEXT_ANIDIRECTION : pResId = SIP_SA_TEXT_ANIDIRECTION;break;
484  case SDRATTR_TEXT_ANISTARTINSIDE : pResId = SIP_SA_TEXT_ANISTARTINSIDE;break;
485  case SDRATTR_TEXT_ANISTOPINSIDE : pResId = SIP_SA_TEXT_ANISTOPINSIDE;break;
486  case SDRATTR_TEXT_ANICOUNT : pResId = SIP_SA_TEXT_ANICOUNT;break;
487  case SDRATTR_TEXT_ANIDELAY : pResId = SIP_SA_TEXT_ANIDELAY;break;
488  case SDRATTR_TEXT_ANIAMOUNT : pResId = SIP_SA_TEXT_ANIAMOUNT;break;
489  case SDRATTR_TEXT_CONTOURFRAME : pResId = SIP_SA_TEXT_CONTOURFRAME;break;
490  case SDRATTR_XMLATTRIBUTES : pResId = SIP_SA_XMLATTRIBUTES;break;
491  case SDRATTR_TEXT_USEFIXEDCELLHEIGHT: pResId = SIP_SA_TEXT_USEFIXEDCELLHEIGHT;break;
492  case SDRATTR_TEXT_WORDWRAP : pResId = SIP_SA_WORDWRAP;break;
493  case SDRATTR_TEXT_CHAINNEXTNAME : pResId = SIP_SA_CHAINNEXTNAME;break;
494 
495  case SDRATTR_EDGEKIND : pResId = SIP_SA_EDGEKIND;break;
496  case SDRATTR_EDGENODE1HORZDIST : pResId = SIP_SA_EDGENODE1HORZDIST;break;
497  case SDRATTR_EDGENODE1VERTDIST : pResId = SIP_SA_EDGENODE1VERTDIST;break;
498  case SDRATTR_EDGENODE2HORZDIST : pResId = SIP_SA_EDGENODE2HORZDIST;break;
499  case SDRATTR_EDGENODE2VERTDIST : pResId = SIP_SA_EDGENODE2VERTDIST;break;
500  case SDRATTR_EDGENODE1GLUEDIST : pResId = SIP_SA_EDGENODE1GLUEDIST;break;
501  case SDRATTR_EDGENODE2GLUEDIST : pResId = SIP_SA_EDGENODE2GLUEDIST;break;
502  case SDRATTR_EDGELINEDELTACOUNT : pResId = SIP_SA_EDGELINEDELTACOUNT;break;
503  case SDRATTR_EDGELINE1DELTA : pResId = SIP_SA_EDGELINE1DELTA;break;
504  case SDRATTR_EDGELINE2DELTA : pResId = SIP_SA_EDGELINE2DELTA;break;
505  case SDRATTR_EDGELINE3DELTA : pResId = SIP_SA_EDGELINE3DELTA;break;
506 
507  case SDRATTR_MEASUREKIND : pResId = SIP_SA_MEASUREKIND;break;
508  case SDRATTR_MEASURETEXTHPOS : pResId = SIP_SA_MEASURETEXTHPOS;break;
509  case SDRATTR_MEASURETEXTVPOS : pResId = SIP_SA_MEASURETEXTVPOS;break;
510  case SDRATTR_MEASURELINEDIST : pResId = SIP_SA_MEASURELINEDIST;break;
511  case SDRATTR_MEASUREHELPLINEOVERHANG : pResId = SIP_SA_MEASUREHELPLINEOVERHANG;break;
512  case SDRATTR_MEASUREHELPLINEDIST : pResId = SIP_SA_MEASUREHELPLINEDIST;break;
513  case SDRATTR_MEASUREHELPLINE1LEN : pResId = SIP_SA_MEASUREHELPLINE1LEN;break;
514  case SDRATTR_MEASUREHELPLINE2LEN : pResId = SIP_SA_MEASUREHELPLINE2LEN;break;
515  case SDRATTR_MEASUREBELOWREFEDGE : pResId = SIP_SA_MEASUREBELOWREFEDGE;break;
516  case SDRATTR_MEASURETEXTROTA90 : pResId = SIP_SA_MEASURETEXTROTA90;break;
517  case SDRATTR_MEASURETEXTUPSIDEDOWN : pResId = SIP_SA_MEASURETEXTUPSIDEDOWN;break;
518  case SDRATTR_MEASUREOVERHANG : pResId = SIP_SA_MEASUREOVERHANG;break;
519  case SDRATTR_MEASUREUNIT : pResId = SIP_SA_MEASUREUNIT;break;
520  case SDRATTR_MEASURESCALE : pResId = SIP_SA_MEASURESCALE;break;
521  case SDRATTR_MEASURESHOWUNIT : pResId = SIP_SA_MEASURESHOWUNIT;break;
522  case SDRATTR_MEASUREFORMATSTRING : pResId = SIP_SA_MEASUREFORMATSTRING;break;
523  case SDRATTR_MEASURETEXTAUTOANGLE : pResId = SIP_SA_MEASURETEXTAUTOANGLE;break;
524  case SDRATTR_MEASURETEXTAUTOANGLEVIEW: pResId = SIP_SA_MEASURETEXTAUTOANGLEVIEW;break;
525  case SDRATTR_MEASURETEXTISFIXEDANGLE : pResId = SIP_SA_MEASURETEXTISFIXEDANGLE;break;
526  case SDRATTR_MEASURETEXTFIXEDANGLE : pResId = SIP_SA_MEASURETEXTFIXEDANGLE;break;
527  case SDRATTR_MEASUREDECIMALPLACES : pResId = SIP_SA_MEASUREDECIMALPLACES;break;
528 
529  case SDRATTR_CIRCKIND : pResId = SIP_SA_CIRCKIND;break;
530  case SDRATTR_CIRCSTARTANGLE: pResId = SIP_SA_CIRCSTARTANGLE;break;
531  case SDRATTR_CIRCENDANGLE : pResId = SIP_SA_CIRCENDANGLE;break;
532 
533  case SDRATTR_OBJMOVEPROTECT : pResId = SIP_SA_OBJMOVEPROTECT;break;
534  case SDRATTR_OBJSIZEPROTECT : pResId = SIP_SA_OBJSIZEPROTECT;break;
535  case SDRATTR_OBJPRINTABLE : pResId = SIP_SA_OBJPRINTABLE;break;
536  case SDRATTR_OBJVISIBLE : pResId = SIP_SA_OBJVISIBLE;break;
537  case SDRATTR_LAYERID : pResId = SIP_SA_LAYERID;break;
538  case SDRATTR_LAYERNAME : pResId = SIP_SA_LAYERNAME;break;
539  case SDRATTR_OBJECTNAME : pResId = SIP_SA_OBJECTNAME;break;
540  case SDRATTR_ALLPOSITIONX : pResId = SIP_SA_ALLPOSITIONX;break;
541  case SDRATTR_ALLPOSITIONY : pResId = SIP_SA_ALLPOSITIONY;break;
542  case SDRATTR_ALLSIZEWIDTH : pResId = SIP_SA_ALLSIZEWIDTH;break;
543  case SDRATTR_ALLSIZEHEIGHT : pResId = SIP_SA_ALLSIZEHEIGHT;break;
544  case SDRATTR_ONEPOSITIONX : pResId = SIP_SA_ONEPOSITIONX;break;
545  case SDRATTR_ONEPOSITIONY : pResId = SIP_SA_ONEPOSITIONY;break;
546  case SDRATTR_ONESIZEWIDTH : pResId = SIP_SA_ONESIZEWIDTH;break;
547  case SDRATTR_ONESIZEHEIGHT : pResId = SIP_SA_ONESIZEHEIGHT;break;
548  case SDRATTR_LOGICSIZEWIDTH : pResId = SIP_SA_LOGICSIZEWIDTH;break;
549  case SDRATTR_LOGICSIZEHEIGHT: pResId = SIP_SA_LOGICSIZEHEIGHT;break;
550  case SDRATTR_ROTATEANGLE : pResId = SIP_SA_ROTATEANGLE;break;
551  case SDRATTR_SHEARANGLE : pResId = SIP_SA_SHEARANGLE;break;
552  case SDRATTR_MOVEX : pResId = SIP_SA_MOVEX;break;
553  case SDRATTR_MOVEY : pResId = SIP_SA_MOVEY;break;
554  case SDRATTR_RESIZEXONE : pResId = SIP_SA_RESIZEXONE;break;
555  case SDRATTR_RESIZEYONE : pResId = SIP_SA_RESIZEYONE;break;
556  case SDRATTR_ROTATEONE : pResId = SIP_SA_ROTATEONE;break;
557  case SDRATTR_HORZSHEARONE : pResId = SIP_SA_HORZSHEARONE;break;
558  case SDRATTR_VERTSHEARONE : pResId = SIP_SA_VERTSHEARONE;break;
559  case SDRATTR_RESIZEXALL : pResId = SIP_SA_RESIZEXALL;break;
560  case SDRATTR_RESIZEYALL : pResId = SIP_SA_RESIZEYALL;break;
561  case SDRATTR_ROTATEALL : pResId = SIP_SA_ROTATEALL;break;
562  case SDRATTR_HORZSHEARALL : pResId = SIP_SA_HORZSHEARALL;break;
563  case SDRATTR_VERTSHEARALL : pResId = SIP_SA_VERTSHEARALL;break;
564  case SDRATTR_TRANSFORMREF1X : pResId = SIP_SA_TRANSFORMREF1X;break;
565  case SDRATTR_TRANSFORMREF1Y : pResId = SIP_SA_TRANSFORMREF1Y;break;
566  case SDRATTR_TRANSFORMREF2X : pResId = SIP_SA_TRANSFORMREF2X;break;
567  case SDRATTR_TRANSFORMREF2Y : pResId = SIP_SA_TRANSFORMREF2Y;break;
568 
569  case SDRATTR_GRAFRED : pResId = SIP_SA_GRAFRED;break;
570  case SDRATTR_GRAFGREEN : pResId = SIP_SA_GRAFGREEN;break;
571  case SDRATTR_GRAFBLUE : pResId = SIP_SA_GRAFBLUE;break;
572  case SDRATTR_GRAFLUMINANCE : pResId = SIP_SA_GRAFLUMINANCE;break;
573  case SDRATTR_GRAFCONTRAST : pResId = SIP_SA_GRAFCONTRAST;break;
574  case SDRATTR_GRAFGAMMA : pResId = SIP_SA_GRAFGAMMA;break;
575  case SDRATTR_GRAFTRANSPARENCE : pResId = SIP_SA_GRAFTRANSPARENCE;break;
576  case SDRATTR_GRAFINVERT : pResId = SIP_SA_GRAFINVERT;break;
577  case SDRATTR_GRAFMODE : pResId = SIP_SA_GRAFMODE;break;
578  case SDRATTR_GRAFCROP : pResId = SIP_SA_GRAFCROP;break;
579 
580  case EE_PARA_HYPHENATE : pResId = SIP_EE_PARA_HYPHENATE;break;
581  case EE_PARA_BULLETSTATE: pResId = SIP_EE_PARA_BULLETSTATE;break;
582  case EE_PARA_OUTLLRSPACE: pResId = SIP_EE_PARA_OUTLLRSPACE;break;
583  case EE_PARA_OUTLLEVEL : pResId = SIP_EE_PARA_OUTLLEVEL;break;
584  case EE_PARA_BULLET : pResId = SIP_EE_PARA_BULLET;break;
585  case EE_PARA_LRSPACE : pResId = SIP_EE_PARA_LRSPACE;break;
586  case EE_PARA_ULSPACE : pResId = SIP_EE_PARA_ULSPACE;break;
587  case EE_PARA_SBL : pResId = SIP_EE_PARA_SBL;break;
588  case EE_PARA_JUST : pResId = SIP_EE_PARA_JUST;break;
589  case EE_PARA_TABS : pResId = SIP_EE_PARA_TABS;break;
590 
591  case EE_CHAR_COLOR : pResId = SIP_EE_CHAR_COLOR;break;
592  case EE_CHAR_FONTINFO : pResId = SIP_EE_CHAR_FONTINFO;break;
593  case EE_CHAR_FONTHEIGHT : pResId = SIP_EE_CHAR_FONTHEIGHT;break;
594  case EE_CHAR_FONTWIDTH : pResId = SIP_EE_CHAR_FONTWIDTH;break;
595  case EE_CHAR_WEIGHT : pResId = SIP_EE_CHAR_WEIGHT;break;
596  case EE_CHAR_UNDERLINE : pResId = SIP_EE_CHAR_UNDERLINE;break;
597  case EE_CHAR_OVERLINE : pResId = SIP_EE_CHAR_OVERLINE;break;
598  case EE_CHAR_STRIKEOUT : pResId = SIP_EE_CHAR_STRIKEOUT;break;
599  case EE_CHAR_ITALIC : pResId = SIP_EE_CHAR_ITALIC;break;
600  case EE_CHAR_OUTLINE : pResId = SIP_EE_CHAR_OUTLINE;break;
601  case EE_CHAR_SHADOW : pResId = SIP_EE_CHAR_SHADOW;break;
602  case EE_CHAR_ESCAPEMENT : pResId = SIP_EE_CHAR_ESCAPEMENT;break;
603  case EE_CHAR_PAIRKERNING: pResId = SIP_EE_CHAR_PAIRKERNING;break;
604  case EE_CHAR_KERNING : pResId = SIP_EE_CHAR_KERNING;break;
605  case EE_CHAR_WLM : pResId = SIP_EE_CHAR_WLM;break;
606  case EE_FEATURE_TAB : pResId = SIP_EE_FEATURE_TAB;break;
607  case EE_FEATURE_LINEBR : pResId = SIP_EE_FEATURE_LINEBR;break;
608  case EE_FEATURE_NOTCONV : pResId = SIP_EE_FEATURE_NOTCONV;break;
609  case EE_FEATURE_FIELD : pResId = SIP_EE_FEATURE_FIELD;break;
610  } // switch
611 
612  return SvxResId(pResId);
613 }
614 
615 
616 // FractionItem
617 
618 
620 {
621  return SfxPoolItem::operator==(rCmp) &&
622  static_cast<const SdrFractionItem&>(rCmp).GetValue()==nValue;
623 }
624 
626  SfxItemPresentation ePresentation, MapUnit /*eCoreMetric*/,
627  MapUnit /*ePresentationMetric*/, OUString &rText, const IntlWrapper&) const
628 {
629  if(nValue.IsValid())
630  {
631  sal_Int32 nDiv = nValue.GetDenominator();
632  rText = OUString::number(nValue.GetNumerator());
633 
634  if(nDiv != 1)
635  {
636  rText += "/" + OUString::number(nDiv);
637  }
638  }
639  else
640  {
641  rText = "?";
642  }
643 
644  if(ePresentation == SfxItemPresentation::Complete)
645  {
646  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
647  return true;
648  }
649  else if(ePresentation == SfxItemPresentation::Nameless)
650  return true;
651 
652  return false;
653 }
654 
656 {
657  return new SdrFractionItem(Which(),GetValue());
658 }
659 
660 
661 // ScaleItem
662 
663 
665  SfxItemPresentation ePresentation, MapUnit /*eCoreMetric*/,
666  MapUnit /*ePresentationMetric*/, OUString &rText, const IntlWrapper&) const
667 {
668  if(GetValue().IsValid())
669  {
670  sal_Int32 nDiv = GetValue().GetDenominator();
671 
672  rText = OUString::number(GetValue().GetNumerator()) + ":" + OUString::number(nDiv);
673  }
674  else
675  {
676  rText = "?";
677  }
678 
679  if(ePresentation == SfxItemPresentation::Complete)
680  {
681  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
682  }
683 
684  return true;
685 }
686 
688 {
689  return new SdrScaleItem(Which(),GetValue());
690 }
691 
692 
693 // OnOffItem
694 
695 
697 {
698  return new SdrOnOffItem(Which(),GetValue());
699 }
700 
701 OUString SdrOnOffItem::GetValueTextByVal(bool bVal) const
702 {
703  if (bVal)
704  return SvxResId(STR_ItemValON);
705  return SvxResId(STR_ItemValOFF);
706 }
707 
709  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
710 {
711  rText=GetValueTextByVal(GetValue());
712  if (ePres==SfxItemPresentation::Complete) {
713  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
714  }
715  return true;
716 }
717 
718 
720 {
721  return new SdrYesNoItem(Which(),GetValue());
722 }
723 
724 OUString SdrYesNoItem::GetValueTextByVal(bool bVal) const
725 {
726  if (bVal)
727  return SvxResId(STR_ItemValYES);
728  return SvxResId(STR_ItemValNO);
729 }
730 
732  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
733 {
734  rText=GetValueTextByVal(GetValue());
735  if (ePres==SfxItemPresentation::Complete) {
736  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
737  }
738  return true;
739 }
740 
741 
742 
743 
745 {
746  return new SdrPercentItem(Which(),GetValue());
747 }
748 
750  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/,
751  MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
752 {
754  Application::GetSettings().GetUILanguageTag());
755 
756  if(ePres == SfxItemPresentation::Complete)
757  {
758  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
759  }
760 
761  return true;
762 }
763 
764 
765 
766 
768 {
769  return new SdrAngleItem(Which(),GetValue());
770 }
771 
773  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
774  OUString& rText, const IntlWrapper& rIntlWrapper) const
775 {
776  sal_Int32 nValue(GetValue());
777  bool bNeg(nValue < 0);
778 
779  if(bNeg)
780  nValue = -nValue;
781 
782  OUStringBuffer aText = OUString::number(nValue);
783 
784  if(nValue)
785  {
786  sal_Unicode aUnicodeNull('0');
787  sal_Int32 nCount(2);
788 
790  nCount++;
791 
792  while(aText.getLength() < nCount)
793  aText.insert(0, aUnicodeNull);
794 
795  sal_Int32 nLen = aText.getLength();
796  bool bNull1(aText[nLen-1] == aUnicodeNull);
797  bool bNull2(bNull1 && aText[nLen-2] == aUnicodeNull);
798 
799  if(bNull2)
800  {
801  // no decimal place(s)
802  sal_Int32 idx = nLen-2;
803  aText.remove(idx, aText.getLength()-idx);
804  }
805  else
806  {
807  sal_Unicode cDec =
808  rIntlWrapper.getLocaleData()->getNumDecimalSep()[0];
809  aText.insert(nLen-2, cDec);
810 
811  if(bNull1)
812  aText.remove(nLen, aText.getLength()-nLen);
813  }
814 
815  if(bNeg)
816  aText.insert(0, '-');
817  }
818 
819  aText.append(sal_Unicode(DEGREE_CHAR));
820 
821  if(ePres == SfxItemPresentation::Complete)
822  {
823  OUString aStr = SdrItemPool::GetItemName(Which());
824  aText.insert(0, ' ');
825  aText.insert(0, aStr);
826  }
827 
828  rText = aText.makeStringAndClear();
829  return true;
830 }
831 
832 
833 
834 
836 {
837  return new SdrMetricItem(Which(),GetValue());
838 }
839 
841 {
842  return true;
843 }
844 
845 void SdrMetricItem::ScaleMetrics(long nMul, long nDiv)
846 {
847  if (GetValue()!=0) {
848  BigInt aVal(GetValue());
849  aVal*=nMul;
850  aVal+=nDiv/2; // to round accurately
851  aVal/=nDiv;
852  SetValue(long(aVal));
853  }
854 }
855 
857  MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const
858 {
859  long nValue=GetValue();
860  SdrFormatter aFmt(eCoreMetric,ePresMetric);
861  rText = aFmt.GetStr(nValue);
862  rText += " " + SdrFormatter::GetUnitStr(ePresMetric);
863  if (ePres==SfxItemPresentation::Complete) {
864  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
865  }
866  return true;
867 }
868 
869 
870 // items of the legend object
871 
872 
873 SfxPoolItem* SdrCaptionTypeItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrCaptionTypeItem(*this); }
874 
875 sal_uInt16 SdrCaptionTypeItem::GetValueCount() const { return 4; }
876 
877 OUString SdrCaptionTypeItem::GetValueTextByPos(sal_uInt16 nPos)
878 {
879  static const char* ITEMVALCAPTIONTYPES[] =
880  {
881  STR_ItemValCAPTIONTYPE1,
882  STR_ItemValCAPTIONTYPE2,
883  STR_ItemValCAPTIONTYPE3,
884  STR_ItemValCAPTIONTYPE4
885  };
886  assert(nPos < SAL_N_ELEMENTS(ITEMVALCAPTIONTYPES) && "wrong pos!");
887  return SvxResId(ITEMVALCAPTIONTYPES[nPos]);
888 }
889 
891  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
892 {
893  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
894  if (ePres==SfxItemPresentation::Complete) {
895  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
896  }
897  return true;
898 }
899 
900 
902 
903 sal_uInt16 SdrCaptionEscDirItem::GetValueCount() const { return 3; }
904 
906 {
907  static const char* ITEMVALCAPTIONTYPES[] =
908  {
909  STR_ItemValCAPTIONESCHORI,
910  STR_ItemValCAPTIONESCVERT,
911  STR_ItemValCAPTIONESCBESTFIT
912  };
913  assert(nPos < SAL_N_ELEMENTS(ITEMVALCAPTIONTYPES) && "wrong pos!");
914  return SvxResId(ITEMVALCAPTIONTYPES[nPos]);
915 }
916 
918  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
919 {
920  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
921  if (ePres==SfxItemPresentation::Complete) {
922  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
923  }
924  return true;
925 }
926 
927 
928 // MiscItems
929 
930 
931 // FitToSize
932 
934 
936 
937 sal_uInt16 SdrTextFitToSizeTypeItem::GetValueCount() const { return 4; }
938 
940 {
941  static const char* ITEMVALFITTISIZETYPES[] =
942  {
943  STR_ItemValFITTOSIZENONE,
944  STR_ItemValFITTOSIZEPROP,
945  STR_ItemValFITTOSIZEALLLINES,
946  STR_ItemValFITTOSIZERESIZEAT
947  };
948  assert(nPos < SAL_N_ELEMENTS(ITEMVALFITTISIZETYPES) && "wrong pos!");
949  return SvxResId(ITEMVALFITTISIZETYPES[nPos]);
950 }
951 
953  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
954 {
955  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
956  if (ePres==SfxItemPresentation::Complete) {
957  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
958  }
959  return true;
960 }
961 
962 bool SdrTextFitToSizeTypeItem::HasBoolValue() const { return true; }
963 
964 bool SdrTextFitToSizeTypeItem::GetBoolValue() const { return GetValue() != drawing::TextFitToSizeType_NONE; }
965 
967 {
968  SetValue(bVal ? drawing::TextFitToSizeType_PROPORTIONAL : drawing::TextFitToSizeType_NONE);
969 }
970 
971 bool SdrTextFitToSizeTypeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
972 {
973  drawing::TextFitToSizeType eFS = GetValue();
974  rVal <<= eFS;
975 
976  return true;
977 }
978 
979 bool SdrTextFitToSizeTypeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
980 {
981  drawing::TextFitToSizeType eFS;
982  if(!(rVal >>= eFS))
983  {
984  sal_Int32 nEnum = 0;
985  if(!(rVal >>= nEnum))
986  return false;
987 
988  eFS = static_cast<drawing::TextFitToSizeType>(nEnum);
989  }
990 
991  SetValue(eFS);
992 
993  return true;
994 }
995 
996 
998 
999 sal_uInt16 SdrTextVertAdjustItem::GetValueCount() const { return 5; }
1000 
1002 {
1003  static const char* ITEMVALTEXTVADJTYPES[] =
1004  {
1005  STR_ItemValTEXTVADJTOP,
1006  STR_ItemValTEXTVADJCENTER,
1007  STR_ItemValTEXTVADJBOTTOM,
1008  STR_ItemValTEXTVADJBLOCK,
1009  STR_ItemValTEXTVADJSTRETCH
1010  };
1011  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTVADJTYPES) && "wrong pos!");
1012  return SvxResId(ITEMVALTEXTVADJTYPES[nPos]);
1013 }
1014 
1016  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1017 {
1018  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1019  if (ePres==SfxItemPresentation::Complete) {
1020  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1021  }
1022  return true;
1023 }
1024 
1025 bool SdrTextVertAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1026 {
1027  rVal <<= static_cast<drawing::TextVerticalAdjust>(GetValue());
1028  return true;
1029 }
1030 
1031 bool SdrTextVertAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1032 {
1033  drawing::TextVerticalAdjust eAdj;
1034  if(!(rVal >>= eAdj))
1035  {
1036  sal_Int32 nEnum = 0;
1037  if(!(rVal >>= nEnum))
1038  return false;
1039 
1040  eAdj = static_cast<drawing::TextVerticalAdjust>(nEnum);
1041  }
1042 
1043  SetValue( static_cast<SdrTextVertAdjust>(eAdj) );
1044 
1045  return true;
1046 }
1047 
1049 {
1050  xmlTextWriterStartElement(pWriter, BAD_CAST("SdrTextVertAdjustItem"));
1051  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
1052  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
1053  xmlTextWriterEndElement(pWriter);
1054 }
1055 
1057 
1058 sal_uInt16 SdrTextHorzAdjustItem::GetValueCount() const { return 5; }
1059 
1061 {
1062  static const char* ITEMVALTEXTHADJTYPES[] =
1063  {
1064  STR_ItemValTEXTHADJLEFT,
1065  STR_ItemValTEXTHADJCENTER,
1066  STR_ItemValTEXTHADJRIGHT,
1067  STR_ItemValTEXTHADJBLOCK,
1068  STR_ItemValTEXTHADJSTRETCH
1069  };
1070  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTHADJTYPES) && "wrong pos!");
1071  return SvxResId(ITEMVALTEXTHADJTYPES[nPos]);
1072 }
1073 
1075  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1076 {
1077  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1078  if (ePres==SfxItemPresentation::Complete) {
1079  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1080  }
1081  return true;
1082 }
1083 
1084 bool SdrTextHorzAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1085 {
1086  rVal <<= static_cast<drawing::TextHorizontalAdjust>(GetValue());
1087  return true;
1088 }
1089 
1090 bool SdrTextHorzAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1091 {
1092  drawing::TextHorizontalAdjust eAdj;
1093  if(!(rVal >>= eAdj))
1094  {
1095  sal_Int32 nEnum = 0;
1096  if(!(rVal >>= nEnum))
1097  return false;
1098 
1099  eAdj = static_cast<drawing::TextHorizontalAdjust>(nEnum);
1100  }
1101 
1102  SetValue( static_cast<SdrTextHorzAdjust>(eAdj) );
1103 
1104  return true;
1105 }
1106 
1107 
1108 SfxPoolItem* SdrTextAniKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrTextAniKindItem(*this); }
1109 
1110 sal_uInt16 SdrTextAniKindItem::GetValueCount() const { return 5; }
1111 
1112 OUString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos)
1113 {
1114  static const char* ITEMVALTEXTANITYPES[] =
1115  {
1116  STR_ItemValTEXTANI_NONE,
1117  STR_ItemValTEXTANI_BLINK,
1118  STR_ItemValTEXTANI_SCROLL,
1119  STR_ItemValTEXTANI_ALTERNATE,
1120  STR_ItemValTEXTANI_SLIDE
1121  };
1122  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1123  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1124 }
1125 
1127  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1128 {
1129  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1130  if (ePres==SfxItemPresentation::Complete) {
1131  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1132  }
1133  return true;
1134 }
1135 
1136 bool SdrTextAniKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1137 {
1138  rVal <<= static_cast<drawing::TextAnimationKind>(GetValue());
1139  return true;
1140 }
1141 
1142 bool SdrTextAniKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1143 {
1144  drawing::TextAnimationKind eKind;
1145  if(!(rVal >>= eKind))
1146  {
1147  sal_Int32 nEnum = 0;
1148  if(!(rVal >>= nEnum))
1149  return false;
1150  eKind = static_cast<drawing::TextAnimationKind>(nEnum);
1151  }
1152 
1153  SetValue( static_cast<SdrTextAniKind>(eKind) );
1154 
1155  return true;
1156 }
1157 
1158 
1160 
1161 sal_uInt16 SdrTextAniDirectionItem::GetValueCount() const { return 4; }
1162 
1164 {
1165  static const char* ITEMVALTEXTANITYPES[] =
1166  {
1167  STR_ItemValTEXTANI_LEFT,
1168  STR_ItemValTEXTANI_UP,
1169  STR_ItemValTEXTANI_RIGHT,
1170  STR_ItemValTEXTANI_DOWN
1171  };
1172  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1173  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1174 }
1175 
1177  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1178 {
1179  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1180  if (ePres==SfxItemPresentation::Complete) {
1181  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1182  }
1183  return true;
1184 }
1185 
1186 bool SdrTextAniDirectionItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1187 {
1188  rVal <<= static_cast<drawing::TextAnimationDirection>(GetValue());
1189  return true;
1190 }
1191 
1192 bool SdrTextAniDirectionItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1193 {
1194  drawing::TextAnimationDirection eDir;
1195  if(!(rVal >>= eDir))
1196  {
1197  sal_Int32 nEnum = 0;
1198  if(!(rVal >>= nEnum))
1199  return false;
1200 
1201  eDir = static_cast<drawing::TextAnimationDirection>(nEnum);
1202  }
1203 
1204  SetValue( static_cast<SdrTextAniDirection>(eDir) );
1205 
1206  return true;
1207 }
1208 
1209 
1211 
1213  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1214  OUString& rText, const IntlWrapper&) const
1215 {
1216  rText = OUString::number(GetValue()) + "ms";
1217 
1218  if(ePres == SfxItemPresentation::Complete)
1219  {
1220  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1221  }
1222 
1223  return true;
1224 }
1225 
1226 
1228 
1230 {
1231  return GetValue()>0;
1232 }
1233 
1234 void SdrTextAniAmountItem::ScaleMetrics(long nMul, long nDiv)
1235 {
1236  if (GetValue()>0) {
1237  BigInt aVal(GetValue());
1238  aVal*=nMul;
1239  aVal+=nDiv/2; // to round accurately
1240  aVal/=nDiv;
1241  SetValue(short(aVal));
1242  }
1243 }
1244 
1246  SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric,
1247  OUString& rText, const IntlWrapper&) const
1248 {
1249  sal_Int32 nValue(GetValue());
1250 
1251  if(!nValue)
1252  nValue = -1;
1253 
1254  if(nValue < 0)
1255  {
1256  rText = OUString::number(-nValue) + "pixel";
1257  }
1258  else
1259  {
1260  SdrFormatter aFmt(eCoreMetric, ePresMetric);
1261  rText = aFmt.GetStr(nValue) +
1262  SdrFormatter::GetUnitStr(ePresMetric);
1263  }
1264 
1265  if(ePres == SfxItemPresentation::Complete)
1266  {
1267  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1268  }
1269 
1270  return true;
1271 }
1272 
1273 
1275  : SfxBoolItem( SDRATTR_TEXT_USEFIXEDCELLHEIGHT, bUseFixedCellHeight )
1276 {
1277 }
1279  MapUnit /*eCoreMetric*/, MapUnit /*ePresentationMetric*/,
1280  OUString &rText, const IntlWrapper& ) const
1281 {
1282  rText = GetValueTextByVal( GetValue() );
1283  if (ePres==SfxItemPresentation::Complete)
1284  {
1285  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1286  }
1287  return true;
1288 }
1290 {
1291  return new SdrTextFixedCellHeightItem( GetValue() );
1292 }
1293 
1295 {
1296  bool bValue = GetValue();
1297  rVal <<= bValue;
1298  return true;
1299 }
1301 {
1302  bool bValue;
1303  if( !( rVal >>= bValue ) )
1304  return false;
1305  SetValue( bValue );
1306  return true;
1307 }
1308 
1309 // EdgeKind
1310 
1311 SfxPoolItem* SdrEdgeKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrEdgeKindItem(*this); }
1312 
1313 sal_uInt16 SdrEdgeKindItem::GetValueCount() const { return 4; }
1314 
1315 OUString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos)
1316 {
1317  static const char* ITEMVALEDGES[] =
1318  {
1319  STR_ItemValEDGE_ORTHOLINES,
1320  STR_ItemValEDGE_THREELINES,
1321  STR_ItemValEDGE_ONELINE,
1322  STR_ItemValEDGE_BEZIER
1323  };
1324  assert(nPos < SAL_N_ELEMENTS(ITEMVALEDGES) && "wrong pos!");
1325  return SvxResId(ITEMVALEDGES[nPos]);
1326 }
1327 
1329  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1330 {
1331  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1332  if (ePres==SfxItemPresentation::Complete) {
1333  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1334  }
1335  return true;
1336 }
1337 
1338 bool SdrEdgeKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1339 {
1340  drawing::ConnectorType eCT = drawing::ConnectorType_STANDARD;
1341 
1342  switch( GetValue() )
1343  {
1344  case SdrEdgeKind::OrthoLines : eCT = drawing::ConnectorType_STANDARD; break;
1345  case SdrEdgeKind::ThreeLines : eCT = drawing::ConnectorType_LINES; break;
1346  case SdrEdgeKind::OneLine : eCT = drawing::ConnectorType_LINE; break;
1347  case SdrEdgeKind::Bezier : eCT = drawing::ConnectorType_CURVE; break;
1348  case SdrEdgeKind::Arc : eCT = drawing::ConnectorType_CURVE; break;
1349  default:
1350  OSL_FAIL( "SdrEdgeKindItem::QueryValue : unknown enum" );
1351  }
1352 
1353  rVal <<= eCT;
1354 
1355  return true;
1356 }
1357 
1358 bool SdrEdgeKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1359 {
1360  drawing::ConnectorType eCT;
1361  if(!(rVal >>= eCT))
1362  {
1363  sal_Int32 nEnum = 0;
1364  if(!(rVal >>= nEnum))
1365  return false;
1366 
1367  eCT = static_cast<drawing::ConnectorType>(nEnum);
1368  }
1369 
1371  switch( eCT )
1372  {
1373  case drawing::ConnectorType_STANDARD : eEK = SdrEdgeKind::OrthoLines; break;
1374  case drawing::ConnectorType_CURVE : eEK = SdrEdgeKind::Bezier; break;
1375  case drawing::ConnectorType_LINE : eEK = SdrEdgeKind::OneLine; break;
1376  case drawing::ConnectorType_LINES : eEK = SdrEdgeKind::ThreeLines; break;
1377  default:
1378  OSL_FAIL( "SdrEdgeKindItem::PuValue : unknown enum" );
1379  }
1380  SetValue( eEK );
1381 
1382  return true;
1383 }
1384 
1386 {
1387  rVal <<= GetValue();
1388  return true;
1389 }
1390 
1391 bool SdrEdgeNode1HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1392 {
1393  sal_Int32 nValue = 0;
1394  if(!(rVal >>= nValue))
1395  return false;
1396 
1397  SetValue( nValue );
1398  return true;
1399 }
1400 
1402 {
1403  return new SdrEdgeNode1HorzDistItem(*this);
1404 }
1405 
1407 {
1408  rVal <<= GetValue();
1409  return true;
1410 }
1411 
1412 bool SdrEdgeNode1VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1413 {
1414  sal_Int32 nValue = 0;
1415  if(!(rVal >>= nValue))
1416  return false;
1417 
1418  SetValue( nValue );
1419  return true;
1420 }
1421 
1423 {
1424  return new SdrEdgeNode1VertDistItem(*this);
1425 }
1426 
1428 {
1429  rVal <<= GetValue();
1430  return true;
1431 }
1432 
1433 bool SdrEdgeNode2HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1434 {
1435  sal_Int32 nValue = 0;
1436  if(!(rVal >>= nValue))
1437  return false;
1438 
1439  SetValue( nValue );
1440  return true;
1441 }
1442 
1444 {
1445  return new SdrEdgeNode2HorzDistItem(*this);
1446 }
1447 
1449 {
1450  rVal <<= GetValue();
1451  return true;
1452 }
1453 
1454 bool SdrEdgeNode2VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1455 {
1456  sal_Int32 nValue = 0;
1457  if(!(rVal >>= nValue))
1458  return false;
1459 
1460  SetValue( nValue );
1461  return true;
1462 }
1463 
1465 {
1466  return new SdrEdgeNode2VertDistItem(*this);
1467 }
1468 
1470 {
1471  return new SdrEdgeNode1GlueDistItem(*this);
1472 }
1473 
1475 {
1476  return new SdrEdgeNode2GlueDistItem(*this);
1477 }
1478 
1479 SfxPoolItem* SdrMeasureKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrMeasureKindItem(*this); }
1480 
1481 sal_uInt16 SdrMeasureKindItem::GetValueCount() const { return 2; }
1482 
1483 OUString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos)
1484 {
1485  static const char* ITEMVALMEASURETYPES[] =
1486  {
1487  STR_ItemValMEASURE_STD,
1488  STR_ItemValMEASURE_RADIUS
1489  };
1490  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETYPES) && "wrong pos!");
1491  return SvxResId(ITEMVALMEASURETYPES[nPos]);
1492 }
1493 
1495  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1496 {
1497  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1498  if (ePres==SfxItemPresentation::Complete) {
1499  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1500  }
1501  return true;
1502 }
1503 
1504 bool SdrMeasureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1505 {
1506  rVal <<= static_cast<drawing::MeasureKind>(GetValue());
1507  return true;
1508 }
1509 
1510 bool SdrMeasureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1511 {
1512  drawing::MeasureKind eKind;
1513  if(!(rVal >>= eKind))
1514  {
1515  sal_Int32 nEnum = 0;
1516  if(!(rVal >>= nEnum))
1517  return false;
1518 
1519  eKind = static_cast<drawing::MeasureKind>(nEnum);
1520  }
1521 
1522  SetValue( static_cast<SdrMeasureKind>(eKind) );
1523  return true;
1524 }
1525 
1526 
1528 
1529 sal_uInt16 SdrMeasureTextHPosItem::GetValueCount() const { return 4; }
1530 
1532 {
1533  static const char* ITEMVALMEASURETEXTTYPES[] =
1534  {
1535  STR_ItemValMEASURE_TEXTHAUTO,
1536  STR_ItemValMEASURE_TEXTLEFTOUTSIDE,
1537  STR_ItemValMEASURE_TEXTINSIDE,
1538  STR_ItemValMEASURE_TEXTRIGHTOUTSID
1539  };
1540  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1541  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1542 }
1543 
1545  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1546 {
1547  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1548  if (ePres==SfxItemPresentation::Complete) {
1549  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1550  }
1551  return true;
1552 }
1553 
1554 bool SdrMeasureTextHPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1555 {
1556  rVal <<= GetValue();
1557  return true;
1558 }
1559 
1560 bool SdrMeasureTextHPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1561 {
1562  drawing::MeasureTextHorzPos ePos;
1563  if(!(rVal >>= ePos))
1564  {
1565  sal_Int32 nEnum = 0;
1566  if(!(rVal >>= nEnum))
1567  return false;
1568 
1569  ePos = static_cast<drawing::MeasureTextHorzPos>(nEnum);
1570  }
1571 
1572  SetValue(ePos);
1573  return true;
1574 }
1575 
1576 
1578 
1579 sal_uInt16 SdrMeasureTextVPosItem::GetValueCount() const { return 5; }
1580 
1582 {
1583  static const char* ITEMVALMEASURETEXTTYPES[] =
1584  {
1585  STR_ItemValMEASURE_TEXTVAUTO,
1586  STR_ItemValMEASURE_ABOVE,
1587  STR_ItemValMEASURETEXT_BREAKEDLINE,
1588  STR_ItemValMEASURE_BELOW,
1589  STR_ItemValMEASURETEXT_VERTICALCEN
1590  };
1591  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1592  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1593 }
1594 
1596  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1597 {
1598  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1599  if (ePres==SfxItemPresentation::Complete) {
1600  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1601  }
1602  return true;
1603 }
1604 
1605 bool SdrMeasureTextVPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1606 {
1607  rVal <<= GetValue();
1608  return true;
1609 }
1610 
1611 bool SdrMeasureTextVPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1612 {
1613  drawing::MeasureTextVertPos ePos;
1614  if(!(rVal >>= ePos))
1615  {
1616  sal_Int32 nEnum = 0;
1617  if(!(rVal >>= nEnum))
1618  return false;
1619 
1620  ePos = static_cast<drawing::MeasureTextVertPos>(nEnum);
1621  }
1622 
1623  SetValue(ePos);
1624  return true;
1625 }
1626 
1627 SfxPoolItem* SdrMeasureUnitItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrMeasureUnitItem(*this); }
1628 
1629 sal_uInt16 SdrMeasureUnitItem::GetValueCount() const { return 14; }
1630 
1631 OUString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos)
1632 {
1633  if(static_cast<FieldUnit>(nPos) == FieldUnit::NONE)
1634  return "default";
1635  else
1636  return SdrFormatter::GetUnitStr(static_cast<FieldUnit>(nPos));
1637 }
1638 
1640  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1641 {
1642  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1643  if (ePres==SfxItemPresentation::Complete) {
1644  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1645  }
1646  return true;
1647 }
1648 
1649 bool SdrMeasureUnitItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1650 {
1651  rVal <<= static_cast<sal_Int32>(GetValue());
1652  return true;
1653 }
1654 
1655 bool SdrMeasureUnitItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1656 {
1657  sal_Int32 nMeasure = 0;
1658  if(!(rVal >>= nMeasure))
1659  return false;
1660 
1661  SetValue( static_cast<FieldUnit>(nMeasure) );
1662  return true;
1663 }
1664 
1665 
1666 SfxPoolItem* SdrCircKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrCircKindItem(*this); }
1667 
1668 sal_uInt16 SdrCircKindItem::GetValueCount() const { return 4; }
1669 
1670 OUString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos)
1671 {
1672  static const char* ITEMVALCIRCTYPES[] =
1673  {
1674  STR_ItemValCIRC_FULL,
1675  STR_ItemValCIRC_SECT,
1676  STR_ItemValCIRC_CUT,
1677  STR_ItemValCIRC_ARC
1678  };
1679  assert(nPos < SAL_N_ELEMENTS(ITEMVALCIRCTYPES) && "wrong pos!");
1680  return SvxResId(ITEMVALCIRCTYPES[nPos]);
1681 }
1682 
1684  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1685 {
1686  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1687  if (ePres==SfxItemPresentation::Complete) {
1688  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1689  }
1690  return true;
1691 }
1692 
1693 bool SdrCircKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1694 {
1695  rVal <<= static_cast<drawing::CircleKind>(GetValue());
1696  return true;
1697 }
1698 
1699 bool SdrCircKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1700 {
1701  drawing::CircleKind eKind;
1702  if(!(rVal >>= eKind))
1703  {
1704  sal_Int32 nEnum = 0;
1705  if(!(rVal >>= nEnum))
1706  return false;
1707 
1708  eKind = static_cast<drawing::CircleKind>(nEnum);
1709  }
1710 
1711  SetValue( static_cast<SdrCircKind>(eKind) );
1712  return true;
1713 }
1714 
1715 
1716 
1717 
1719 {
1720  return new SdrSignedPercentItem( Which(), GetValue() );
1721 }
1722 
1724  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1725  OUString& rText, const IntlWrapper&) const
1726 {
1727  rText = unicode::formatPercent(GetValue(),
1728  Application::GetSettings().GetUILanguageTag());
1729 
1730  if(ePres == SfxItemPresentation::Complete)
1731  {
1732  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1733  }
1734 
1735  return true;
1736 }
1737 
1738 
1740 {
1741  return new SdrGrafRedItem( *this );
1742 }
1743 
1744 
1746 {
1747  return new SdrGrafGreenItem( *this );
1748 }
1749 
1750 
1752 {
1753  return new SdrGrafBlueItem( *this );
1754 }
1755 
1756 
1758 {
1759  return new SdrGrafLuminanceItem( *this );
1760 }
1761 
1762 
1764 {
1765  return new SdrGrafContrastItem( *this );
1766 }
1767 
1768 
1770 {
1771  return new SdrGrafGamma100Item( *this );
1772 }
1773 
1774 bool SdrGrafGamma100Item::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1775 {
1776  rVal <<= static_cast<double>(GetValue()) / 100.0;
1777  return true;
1778 }
1779 
1780 bool SdrGrafGamma100Item::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1781 {
1782  double nGamma = 0;
1783  if(!(rVal >>= nGamma))
1784  return false;
1785 
1786  SetValue( static_cast<sal_uInt32>(nGamma * 100.0 ) );
1787  return true;
1788 }
1789 
1790 
1792 {
1793  return new SdrGrafInvertItem( *this );
1794 }
1795 
1796 
1798 {
1799  return new SdrGrafTransparenceItem( *this );
1800 }
1801 
1802 
1804 {
1805  return new SdrGrafModeItem( *this );
1806 }
1807 
1809 {
1810  return 4;
1811 }
1812 
1813 OUString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos)
1814 {
1815  OUString aStr;
1816 
1817  switch(nPos)
1818  {
1819  case 1:
1820  {
1821  aStr = "Greys";
1822  break;
1823  }
1824  case 2:
1825  {
1826  aStr = "Black/White";
1827  break;
1828  }
1829  case 3:
1830  {
1831  aStr = "Watermark";
1832  break;
1833  }
1834  default:
1835  {
1836  aStr = "Standard";
1837  break;
1838  }
1839  }
1840 
1841  return aStr;
1842 }
1843 
1845  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1846  OUString& rText, const IntlWrapper&) const
1847 {
1848  rText = GetValueTextByPos( sal::static_int_cast< sal_uInt16 >( GetValue() ) );
1849 
1850  if( ePres == SfxItemPresentation::Complete )
1851  {
1852  rText = SdrItemPool::GetItemName( Which() ) + " " + rText;
1853  }
1854 
1855  return true;
1856 }
1857 
1858 
1860 {
1861  return new SdrGrafCropItem( *this );
1862 }
1863 
1865 {
1866 }
1868 {
1869  return new SdrTextAniStartInsideItem(*this);
1870 }
1872 {
1873 }
1875 {
1876  return new SdrTextAniStopInsideItem(*this);
1877 }
1879 {
1880 }
1882 {
1883  return new SdrCaptionEscIsRelItem(*this);
1884 }
1886 {
1887 }
1889 {
1890  return new SdrCaptionEscRelItem(*this);
1891 }
1893 {
1894 }
1896 {
1897  return new SdrCaptionFitLineLenItem(*this);
1898 }
1900 {
1901 }
1903 {
1904  return new SdrCaptionLineLenItem(*this);
1905 }
1907 {
1908 }
1910 {
1911  return new SdrMeasureBelowRefEdgeItem(*this);
1912 }
1914 {
1915 }
1917 {
1918  return new SdrMeasureTextIsFixedAngleItem(*this);
1919 }
1921 {
1922 }
1924 {
1925  return new SdrMeasureTextFixedAngleItem(*this);
1926 }
1928 {
1929 }
1931 {
1932  return new SdrMeasureDecimalPlacesItem(*this);
1933 }
1935 {
1936 }
1938 {
1939  return new SdrMeasureTextRota90Item(*this);
1940 }
1942 {
1943 }
1945 {
1946  return new SdrMeasureTextUpsideDownItem(*this);
1947 }
1948 
1950 {
1951  return new SdrLayerIdItem(*this);
1952 }
1953 
1955 {
1956  return new SdrLayerNameItem(*this);
1957 }
1958 
1959 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SDRATTR_GRAFRED
Definition: svddef.hxx:308
const Fraction & GetValue() const
Definition: sxfiitm.hxx:36
SdrGrafLuminanceItem(short nLuminancePercent=0)
Definition: sdgluitm.hxx:36
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1161
#define SDRATTR_CUSTOMSHAPE_DATA
Definition: svddef.hxx:394
bool GetValue() const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1554
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1909
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1803
static OUString GetUnitStr(MapUnit eUnit)
Definition: svdtrans.cxx:841
SdrTextFixedCellHeightItem(bool bUseFixedCellHeight=false)
Definition: svdattr.cxx:1274
#define XATTR_LINESTARTCENTER
Definition: xdef.hxx:98
sal_Int32 GetValue() const
#define EE_CHAR_ESCAPEMENT
virtual ~SdrMeasureDecimalPlacesItem() override
Definition: svdattr.cxx:1927
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1631
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:971
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1916
virtual bool GetBoolValue() const override
Definition: svdattr.cxx:964
#define EE_CHAR_FONTINFO
#define SDRATTR_EDGELINE1DELTA
Definition: svddef.hxx:231
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1192
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1808
#define XATTR_FILLHATCH
Definition: xdef.hxx:110
#define EE_FEATURE_NOTCONV
SdrGrafModeItem(GraphicDrawMode eMode=GraphicDrawMode::Standard)
Definition: sdgmoitm.hxx:38
SdrTextAniKindItem(SdrTextAniKind eKind=SdrTextAniKind::NONE)
Definition: sdtakitm.hxx:81
#define SDRATTR_ROTATEONE
Definition: svddef.hxx:290
SdrGrafRedItem(short nRedPercent=0)
Definition: sdgcoitm.hxx:36
virtual bool GetPresentation(const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
constexpr::Color COL_BLACK(0x00, 0x00, 0x00)
#define SDRATTR_3DOBJ_NORMALS_KIND
Definition: svddef.hxx:330
#define SDRATTR_TEXT_FITTOSIZE
Definition: svddef.hxx:197
#define EE_PARA_BULLET
SdrYesNoItem(sal_uInt16 nId, bool bOn)
Definition: sdynitm.hxx:32
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:999
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1056
The length of the first caption line is either automatically calculated or the default setting is use...
Definition: sxcllitm.hxx:47
#define SDRATTR_TEXT_WORDWRAP
Definition: svddef.hxx:218
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:935
#define SDRATTR_MEASUREOVERHANG
Definition: svddef.hxx:248
#define SDRATTR_3DSCENE_TWO_SIDED_LIGHTING
Definition: svddef.hxx:361
#define SDRATTR_3DOBJ_PERCENT_DIAGONAL
Definition: svddef.hxx:323
virtual SVX_DLLPRIVATE bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1294
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1529
#define SDRATTR_LAYERID
Definition: svddef.hxx:271
#define SDRATTR_EDGENODE2HORZDIST
Definition: svddef.hxx:226
#define SDRATTR_3DOBJ_CLOSE_BACK
Definition: svddef.hxx:349
#define SDRATTR_ALLSIZEWIDTH
Definition: svddef.hxx:276
SdrCaptionTypeItem(SdrCaptionType eStyle=SdrCaptionType::Type3)
Definition: sxctitm.hxx:32
#define SDRATTR_CUSTOMSHAPE_ENGINE
Definition: svddef.hxx:393
#define SDRATTR_TABLE_BORDER
Definition: svddef.hxx:399
#define XATTR_FILLBMP_POSOFFSETX
Definition: xdef.hxx:124
void SetValue(sal_Int32 nTheValue)
#define SDRATTR_CAPTIONFIXEDANGLE
Definition: svddef.hxx:182
#define SDRATTR_LOGICSIZEHEIGHT
Definition: svddef.hxx:283
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1481
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1084
virtual bool operator==(const SfxPoolItem &) const =0
SdrCaptionEscDirItem(SdrCaptionEscDir eDir=SdrCaptionEscDir::Horizontal)
Definition: sxcecitm.hxx:35
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1745
#define SDRATTR_RESIZEXONE
Definition: svddef.hxx:288
#define SDRATTR_3DOBJ_VERT_SEGS
Definition: svddef.hxx:327
#define XATTR_LINEENDWIDTH
Definition: xdef.hxx:97
#define SDRATTR_GRAFMODE
Definition: svddef.hxx:316
#define SDRATTR_3DSCENE_LIGHTON_4
Definition: svddef.hxx:374
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const override
Definition: svdattr.cxx:772
SdrGrafTransparenceItem(sal_uInt16 nTransparencePercent=0)
Definition: sdgtritm.hxx:35
virtual ~SdrCaptionEscRelItem() override
Definition: svdattr.cxx:1885
#define EE_PARA_OUTLLEVEL
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1358
virtual void SetBoolValue(bool bVal) override
Definition: svdattr.cxx:966
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1937
#define SDRATTR_GRAFGAMMA
Definition: svddef.hxx:313
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1902
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:625
virtual ~SdrMeasureTextIsFixedAngleItem() override
Definition: svdattr.cxx:1913
#define SDRATTR_3DOBJ_MAT_EMISSION
Definition: svddef.hxx:336
#define SDRATTR_TABLE_TEXT_ROTATION
Definition: svddef.hxx:403
#define SDRATTR_ROTATEANGLE
Definition: svddef.hxx:284
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:856
#define SDRATTR_MEASURETEXTVPOS
Definition: svddef.hxx:239
SdrTextAniStopInsideItem(bool bOn=false)
Definition: sdtaiitm.hxx:39
#define EE_CHAR_KERNING
void SetTable(bool bNew)
static const AllSettings & GetSettings()
#define SDRATTR_3DSCENE_SHADE_MODE
Definition: svddef.hxx:388
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1245
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1278
SdrTextAniStartInsideItem(bool bOn=false)
Definition: sdtaiitm.hxx:27
#define SDRATTR_EDGEKIND
Definition: svddef.hxx:223
#define SDRATTR_XMLATTRIBUTES
Definition: svddef.hxx:216
#define XATTR_FILLGRADIENT
Definition: xdef.hxx:109
#define SDRATTR_SHADOWTRANSPARENCE
Definition: svddef.hxx:175
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1888
#define SDRATTR_MEASURETEXTISFIXEDANGLE
Definition: svddef.hxx:255
sal_uInt16 GetValue() const
#define EE_PARA_HYPHENATE
virtual ~SdrMeasureBelowRefEdgeItem() override
Definition: svdattr.cxx:1906
void SetDefaults(std::vector< SfxPoolItem * > *pDefaults)
#define EE_PARA_JUST
#define XATTR_FILLFLOATTRANSPARENCE
Definition: xdef.hxx:118
SdrTextAniDelayItem(sal_uInt16 nVal=0)
Definition: sdtayitm.hxx:28
#define SDRATTR_3DSCENE_LIGHTON_2
Definition: svddef.hxx:372
virtual bool HasMetrics() const override
Definition: svdattr.cxx:840
#define SDRATTR_SHADOWCOLOR
Definition: svddef.hxx:172
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1483
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1611
static bool isNumLeadingZero()
#define SDRATTR_3DOBJ_DOUBLE_SIDED
Definition: svddef.hxx:329
SdrCaptionEscIsRelItem(bool bRel=true)
Definition: sxcecitm.hxx:51
#define SDRATTR_NOTPERSIST_LAST
Definition: svddef.hxx:304
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1504
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:939
static SfxPoolItem * CreateDefault()
Definition: svdattr.cxx:933
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1112
#define SDRATTR_MEASUREHELPLINE2LEN
Definition: svddef.hxx:244
SdrEdgeNode2HorzDistItem(long nVal)
Definition: sxenditm.hxx:44
#define SDRATTR_ONEPOSITIONX
Definition: svddef.hxx:278
#define SDRATTR_END
Definition: svddef.hxx:407
#define SDRATTR_ONEPOSITIONY
Definition: svddef.hxx:279
virtual ~SdrCaptionEscIsRelItem() override
Definition: svdattr.cxx:1878
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1494
#define SDRATTR_GRAFINVERT
Definition: svddef.hxx:315
SdrScaleItem(sal_uInt16 nId, const Fraction &rVal)
Definition: sxsiitm.hxx:26
#define SDRATTR_GRAFGREEN
Definition: svddef.hxx:309
#define SDRATTR_EDGENODE1HORZDIST
Definition: svddef.hxx:224
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1527
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1859
#define SDRATTR_ONESIZEWIDTH
Definition: svddef.hxx:280
Length of the first caption line Only for Type3 and Type4 Only relevant, if SdrCaptionFitLineLenItem ...
Definition: sxcllitm.hxx:31
struct _xmlTextWriter * xmlTextWriterPtr
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1629
#define SDRATTR_3DOBJ_SMOOTH_NORMALS
Definition: svddef.hxx:345
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1422
css::chart::ChartAxisLabelPosition ePos
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1464
#define SDRATTR_3DSCENE_LIGHTON_8
Definition: svddef.hxx:378
#define SDRATTR_RESIZEYALL
Definition: svddef.hxx:294
SdrCaptionLineLenItem(long nLineLen=0)
Definition: sxcllitm.hxx:33
#define SDRATTR_HORZSHEARALL
Definition: svddef.hxx:296
#define XATTR_FILLBMP_STRETCH
Definition: xdef.hxx:123
#define SDRATTR_EDGENODE2VERTDIST
Definition: svddef.hxx:227
SdrMeasureTextVPosItem(css::drawing::MeasureTextVertPos ePos=css::drawing::MeasureTextVertPos_AUTO)
Definition: sxmtpitm.hxx:46
#define XATTR_FILLCOLOR
Definition: xdef.hxx:108
#define SDRATTR_MEASUREHELPLINEDIST
Definition: svddef.hxx:242
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:952
#define EE_FEATURE_TAB
SdrGrafContrastItem(short nContrastPercent=0)
Definition: sdgluitm.hxx:51
#define EE_CHAR_FONTWIDTH
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1108
#define SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY
Definition: svddef.hxx:338
#define SDRATTR_HORZSHEARONE
Definition: svddef.hxx:291
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:749
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
#define EE_PARA_ULSPACE
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1844
#define SDRATTR_RESIZEYONE
Definition: svddef.hxx:289
#define SDRATTR_ALLPOSITIONX
Definition: svddef.hxx:274
#define SDRATTR_EDGELINE2DELTA
Definition: svddef.hxx:232
sal_uInt16 sal_Unicode
#define SDRATTR_MEASURETEXTROTA90
Definition: svddef.hxx:246
#define XATTR_LINEJOINT
Definition: xdef.hxx:101
#define SDRATTR_3DSCENE_LIGHTCOLOR_3
Definition: svddef.hxx:364
#define SDRATTR_TABLE_BORDER_INNER
Definition: svddef.hxx:400
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1074
virtual SVX_DLLPRIVATE SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1289
#define SDRATTR_NOTPERSIST_FIRST
Definition: svddef.hxx:267
#define SDRATTR_TEXT_ANIKIND
Definition: svddef.hxx:208
const LocaleDataWrapper * getLocaleData() const
#define SDRATTR_CAPTIONESCABS
Definition: svddef.hxx:188
#define SDRATTR_CUSTOMSHAPE_GEOMETRY
Definition: svddef.hxx:395
#define SDRATTR_VERTSHEARONE
Definition: svddef.hxx:292
SdrEdgeKindItem(SdrEdgeKind eStyle=SdrEdgeKind::OrthoLines)
Definition: sxekitm.hxx:35
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1510
OUString SvxResId(const char *pId)
Definition: dialmgr.cxx:28
#define SDRATTR_TEXT_MAXFRAMEWIDTH
Definition: svddef.hxx:205
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1126
#define SDRATTR_MEASUREHELPLINE1LEN
Definition: svddef.hxx:243
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1031
#define SDRATTR_MEASUREBELOWREFEDGE
Definition: svddef.hxx:245
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1025
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1774
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:905
#define SDRATTR_CIRCENDANGLE
Definition: svddef.hxx:263
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:719
int nCount
SdrCircKindItem(SdrCircKind eKind=SdrCircKind::Full)
Definition: sxcikitm.hxx:28
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1110
std::vector< SfxPoolItem * > * mpLocalPoolDefaults
Definition: xpool.hxx:36
sal_Int16 const nValue
Definition: fmsrccfg.cxx:82
#define XATTR_FILLBMP_TILEOFFSETY
Definition: xdef.hxx:122
SdrTextAniAmountItem(sal_Int16 nVal=0)
Definition: sdtaaitm.hxx:28
#define XATTRSET_LINE
Definition: xdef.hxx:104
#define SDRATTR_CAPTIONESCISREL
Definition: svddef.hxx:186
#define SDRATTR_ONESIZEHEIGHT
Definition: svddef.hxx:281
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:731
#define XATTR_FORMTXTSHADOW
Definition: xdef.hxx:137
#define SDRATTR_3DOBJ_NORMALS_INVERT
Definition: svddef.hxx:331
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1227
#define SDRATTR_3DSCENE_LIGHTCOLOR_6
Definition: svddef.hxx:367
SdrMeasureTextIsFixedAngleItem(bool bOn=false)
Definition: sxmtfitm.hxx:32
#define EE_CHAR_ITALIC
#define SDRATTR_MEASURETEXTFIXEDANGLE
Definition: svddef.hxx:256
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1780
virtual ~SdrMeasureTextRota90Item() override
Definition: svdattr.cxx:1934
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1895
void SetAllDistances(sal_uInt16 nNew)
#define SDRATTR_CAPTIONTYPE
Definition: svddef.hxx:181
#define XATTR_FORMTXTSHDWXVAL
Definition: xdef.hxx:139
#define SDRATTR_CAPTIONGAP
Definition: svddef.hxx:184
SdrSignedPercentItem(sal_uInt16 nId, sal_Int16 nVal)
Definition: sdprcitm.hxx:47
SdrMetricItem(sal_uInt16 nId, sal_Int32 nVal)
Definition: sdmetitm.hxx:32
#define SDRATTR_3DSCENE_FOCAL_LENGTH
Definition: svddef.hxx:360
#define SDRATTR_TRANSFORMREF2Y
Definition: svddef.hxx:301
#define EE_CHAR_OVERLINE
#define SDRATTR_3DSCENE_LIGHTON_5
Definition: svddef.hxx:375
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:873
#define SDRATTR_3DOBJ_END_ANGLE
Definition: svddef.hxx:328
o3tl::strong_int< sal_uInt8, struct SdrLayerIDTag > SdrLayerID
Definition: svdtypes.hxx:59
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1595
SdrGrafBlueItem(short nBluePercent=0)
Definition: sdgcoitm.hxx:64
#define XATTR_FILLBMP_POSOFFSETY
Definition: xdef.hxx:125
#define XATTR_FILLBMP_SIZELOG
Definition: xdef.hxx:120
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:655
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1670
#define SDRATTR_MEASURETEXTAUTOANGLE
Definition: svddef.hxx:253
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1136
#define XATTR_FILLBMP_POS
Definition: xdef.hxx:115
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1874
#define SDRATTR_CAPTIONLINELEN
Definition: svddef.hxx:189
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1723
SdrGrafGamma100Item(sal_uInt32 nGamma100=100)
Definition: sdggaitm.hxx:36
#define SDRATTR_3DSCENE_LIGHTON_3
Definition: svddef.hxx:373
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:687
#define XATTR_LINEENDCENTER
Definition: xdef.hxx:99
#define SAL_N_ELEMENTS(arr)
#define SDRATTR_SHADOWYDIST
Definition: svddef.hxx:174
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1531
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:875
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1433
#define SDRATTR_3DSCENE_LIGHTDIRECTION_5
Definition: svddef.hxx:383
#define XATTR_FORMTXTADJUST
Definition: xdef.hxx:132
#define SDRATTR_MEASURESHOWUNIT
Definition: svddef.hxx:251
#define SDRATTR_MEASUREKIND
Definition: svddef.hxx:237
virtual bool HasMetrics() const override
Definition: svdattr.cxx:1229
#define SDRATTR_TEXT_ANICOUNT
Definition: svddef.hxx:212
#define SDRATTR_3DOBJ_SMOOTH_LIDS
Definition: svddef.hxx:346
#define EE_PARA_LRSPACE
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1313
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1454
#define SDRATTR_OBJECTNAME
Definition: svddef.hxx:273
#define SDRATTR_TEXT_HORZADJUST
Definition: svddef.hxx:207
#define SDRATTR_3DSCENE_LIGHTCOLOR_1
Definition: svddef.hxx:362
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1666
const OUString & getNumDecimalSep() const
#define SDRATTR_3DSCENE_PERSPECTIVE
Definition: svddef.hxx:358
#define SDRATTR_TABLE_BORDER_TLBR
Definition: svddef.hxx:401
#define SDRATTR_EDGENODE1VERTDIST
Definition: svddef.hxx:225
virtual SVX_DLLPRIVATE bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1300
SfxItemPresentation
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:877
sal_Int16 GetValue() const
#define XATTR_FORMTXTSTART
Definition: xdef.hxx:134
SdrMeasureTextFixedAngleItem(long nVal=0)
Definition: sxmtfitm.hxx:45
SdrMeasureDecimalPlacesItem(sal_Int16 nVal=2)
Definition: sxmtfitm.hxx:58
#define SDRATTR_3DSCENE_LIGHTCOLOR_2
Definition: svddef.hxx:363
#define SDRATTR_3DSCENE_LIGHTDIRECTION_6
Definition: svddef.hxx:384
#define SDRATTR_EDGELINE3DELTA
Definition: svddef.hxx:233
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1015
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1338
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:890
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1757
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1163
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1693
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:664
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1763
class SdrCaptionGapItem Distance of the line start from the Rect
Definition: sxcgitm.hxx:29
#define SDRATTR_3DOBJ_TEXTURE_PROJ_Y
Definition: svddef.hxx:333
#define SDRATTR_3DSCENE_LIGHTDIRECTION_4
Definition: svddef.hxx:382
#define SDRATTR_GRAFCROP
Definition: svddef.hxx:317
#define SDRATTR_SHADOWXDIST
Definition: svddef.hxx:173
#define SDRATTR_TEXT_VERTADJUST
Definition: svddef.hxx:202
#define SDRATTR_MEASUREDECIMALPLACES
Definition: svddef.hxx:257
#define EE_CHAR_UNDERLINE
#define SDRATTR_3DSCENE_LIGHTDIRECTION_8
Definition: svddef.hxx:386
#define EE_FEATURE_FIELD
#define SDRATTR_3DOBJ_HORZ_SEGS
Definition: svddef.hxx:326
SdrGrafGreenItem(short nGreenPercent=0)
Definition: sdgcoitm.hxx:50
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1751
#define SDRATTR_CAPTIONESCDIR
Definition: svddef.hxx:185
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1579
int i
#define SDRATTR_ROTATEALL
Definition: svddef.hxx:295
void SetValue(sal_Int16 nTheValue)
std::unique_ptr< SfxItemInfo[]> mpLocalItemInfos
Definition: xpool.hxx:37
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1769
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1944
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1159
#define SDRATTR_3DOBJ_BACKSCALE
Definition: svddef.hxx:324
#define XATTR_FILLBMP_SIZEX
Definition: xdef.hxx:116
#define EE_CHAR_SHADOW
#define SDRATTR_SHADOW_FIRST
Definition: svddef.hxx:170
SdrMeasureBelowRefEdgeItem(bool bOn=false)
Definition: sxmbritm.hxx:34
#define SDRATTR_VERTSHEARALL
Definition: svddef.hxx:297
void SetItemInfos(const SfxItemInfo *pInfos)
#define SDRATTR_3DSCENE_LIGHTON_1
Definition: svddef.hxx:371
SdrTextVertAdjustItem(SdrTextVertAdjust eAdj=SDRTEXTVERTADJUST_TOP)
Definition: sdtaitm.hxx:37
#define XATTR_FORMTXTOUTLINE
Definition: xdef.hxx:136
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1605
virtual SfxItemPool * Clone() const override
Definition: svdattr.cxx:363
#define DEGREE_CHAR
Definition: svdmodel.hxx:51
#define SDRATTR_OBJVISIBLE
Definition: svddef.hxx:303
SdrEdgeKind
Definition: sxekitm.hxx:26
#define XATTR_FORMTXTHIDEFORM
Definition: xdef.hxx:141
SdrMeasureTextHPosItem(css::drawing::MeasureTextHorzPos ePos=css::drawing::MeasureTextHorzPos::MeasureTextHorzPos_AUTO)
Definition: sxmtpitm.hxx:30
#define SDRATTR_SHADOW
Definition: svddef.hxx:171
#define SDRATTR_MEASURETEXTAUTOANGLEVIEW
Definition: svddef.hxx:254
#define EE_CHAR_COLOR
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:997
#define SDRATTR_TEXTDIRECTION
Definition: svddef.hxx:302
virtual ~SdrCaptionFitLineLenItem() override
Definition: svdattr.cxx:1892
#define EE_CHAR_FONTHEIGHT
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1867
#define XATTR_LINESTYLE
Definition: xdef.hxx:90
#define SDRATTR_3DOBJ_DEPTH
Definition: svddef.hxx:325
#define SDRATTR_START
Definition: svddef.hxx:168
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1401
#define SDRATTR_TEXT_ANIAMOUNT
Definition: svddef.hxx:214
virtual OUString GetValueTextByVal(bool bVal) const override
Definition: svdattr.cxx:724
#define XATTR_GRADIENTSTEPCOUNT
Definition: xdef.hxx:113
#define SDRATTR_TRANSFORMREF2X
Definition: svddef.hxx:300
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1699
#define SDRATTR_MOVEX
Definition: svddef.hxx:286
#define XATTR_FORMTXTSHDWYVAL
Definition: xdef.hxx:140
#define SDRATTR_TEXT_CONTOURFRAME
Definition: svddef.hxx:215
#define XATTR_FORMTXTSHDWCOLOR
Definition: xdef.hxx:138
virtual OUString GetValueTextByVal(bool bTheValue) const
#define SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY
Definition: svddef.hxx:353
#define XATTR_FILLSTYLE
Definition: xdef.hxx:107
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1412
SdrMeasureTextUpsideDownItem(bool bOn=false)
Definition: sxmtritm.hxx:42
SdrAngleItem(sal_uInt16 nId, sal_Int32 nAngle)
Definition: sdangitm.hxx:29
#define SDRATTR_TRANSFORMREF1X
Definition: svddef.hxx:298
#define SDRATTR_CAPTIONFITLINELEN
Definition: svddef.hxx:190
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1797
SdrLayerIdItem(SdrLayerID nId)
Definition: sxlayitm.hxx:29
#define SDRATTR_TEXT_MINFRAMEHEIGHT
Definition: svddef.hxx:195
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:696
#define SDRATTR_GRAFBLUE
Definition: svddef.hxx:310
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: svdattr.cxx:1048
#define SDRATTR_TEXT_ANIDELAY
Definition: svddef.hxx:213
#define XATTR_LINEDASH
Definition: xdef.hxx:91
#define SDRATTR_MEASUREUNIT
Definition: svddef.hxx:249
SdrCaptionEscRelItem(long nEscRel=5000)
Definition: sxcecitm.hxx:70
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1923
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:767
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1060
void SetValue(bool const bTheValue)
#define SDRATTR_3DSCENE_DISTANCE
Definition: svddef.hxx:359
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:708
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:979
SdrGrafCropItem(sal_Int32 nLeftCrop=0, sal_Int32 nTopCrop=0, sal_Int32 nRightCrop=0, sal_Int32 nBottomCrop=0)
Definition: sdgcpitm.hxx:35
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1813
#define SDRATTR_OBJPRINTABLE
Definition: svddef.hxx:270
#define SDRATTR_3DSCENE_LIGHTDIRECTION_7
Definition: svddef.hxx:385
#define XATTR_SECONDARYFILLCOLOR
Definition: xdef.hxx:119
#define SDRATTR_3DSCENE_LIGHTCOLOR_4
Definition: svddef.hxx:365
virtual void ScaleMetrics(long nMul, long nDiv) override
Definition: svdattr.cxx:845
SdrPercentItem(sal_uInt16 nId, sal_uInt16 nVal)
Definition: sdprcitm.hxx:33
#define SDRATTR_CAPTIONANGLE
Definition: svddef.hxx:183
#define SDRATTR_TEXT_UPPERDIST
Definition: svddef.hxx:200
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1311
#define XATTR_LINEWIDTH
Definition: xdef.hxx:92
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1443
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1001
virtual bool operator==(const SfxPoolItem &) const override
Definition: svdattr.cxx:619
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1212
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1683
#define XATTR_FILLBMP_SIZEY
Definition: xdef.hxx:117
#define XATTR_FORMTXTDISTANCE
Definition: xdef.hxx:133
#define SDRATTR_TEXT_ANIDIRECTION
Definition: svddef.hxx:209
#define SDRATTR_MEASURESCALE
Definition: svddef.hxx:250
#define EE_PARA_SBL
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1577
#define SDRATTR_TEXT_ANISTOPINSIDE
Definition: svddef.hxx:211
#define EE_CHAR_PAIRKERNING
#define SDRATTR_ALLSIZEHEIGHT
Definition: svddef.hxx:277
#define SDRATTR_TEXT_ANISTARTINSIDE
Definition: svddef.hxx:210
SdrTextAniDirectionItem(SdrTextAniDirection eDir=SdrTextAniDirection::Left)
Definition: sdtaditm.hxx:36
SdrEdgeNode1GlueDistItem(long nVal=0)
Definition: sxenditm.hxx:60
#define SDRATTR_3DOBJ_TEXTURE_MODE
Definition: svddef.hxx:340
#define SDRATTR_TEXT_RIGHTDIST
Definition: svddef.hxx:199
#define SDRATTR_LOGICSIZEWIDTH
Definition: svddef.hxx:282
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1186
#define XATTR_FILLBMP_TILE
Definition: xdef.hxx:114
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1627
#define SDRATTR_3DSCENE_LIGHTCOLOR_8
Definition: svddef.hxx:369
SdrMeasureUnitItem(FieldUnit eUnit=FieldUnit::NONE)
Definition: sxmuitm.hxx:31
SdrEdgeNode1HorzDistItem(long nVal)
Definition: sxenditm.hxx:28
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1954
#define SDRATTR_SHADOW3D
Definition: svddef.hxx:176
static OUString formatPercent(double dNumber, const LanguageTag &rLangTag)
#define SDRATTR_3DOBJ_MAT_SPECULAR
Definition: svddef.hxx:337
#define EE_CHAR_OUTLINE
static OUString GetItemName(sal_uInt16 nWhich)
Definition: svdattr.cxx:393
#define SDRATTR_MOVEY
Definition: svddef.hxx:287
virtual bool GetPresentation(const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const override
Definition: svdattr.cxx:374
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1328
virtual ~SdrTextAniStopInsideItem() override
Definition: svdattr.cxx:1871
sal_Int32 GetDenominator() const
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:937
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1655
#define SDRATTR_OBJMOVEPROTECT
Definition: svddef.hxx:268
#define SDRATTR_ALLPOSITIONY
Definition: svddef.hxx:275
unsigned char sal_uInt8
SdrCaptionFitLineLenItem(bool bBestFit=true)
Definition: sxcllitm.hxx:49
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:744
#define EE_CHAR_WEIGHT
#define SDRATTR_MEASUREHELPLINEOVERHANG
Definition: svddef.hxx:241
virtual void ScaleMetrics(long nMul, long nDiv) override
Definition: svdattr.cxx:1234
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1544
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1176
#define SDRATTR_CAPTIONESCREL
Definition: svddef.hxx:187
#define SDRATTR_GRAFLUMINANCE
Definition: svddef.hxx:311
virtual ~SdrMeasureTextUpsideDownItem() override
Definition: svdattr.cxx:1941
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1668
#define SDRATTR_MEASUREFORMATSTRING
Definition: svddef.hxx:252
#define SDRATTR_RESIZEXALL
Definition: svddef.hxx:293
virtual ~SdrCaptionLineLenItem() override
Definition: svdattr.cxx:1899
#define XATTR_LINEEND
Definition: xdef.hxx:95
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1474
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1406
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1479
#define SDRATTR_TEXT_AUTOGROWWIDTH
Definition: svddef.hxx:206
#define SDRATTR_MEASURETEXTUPSIDEDOWN
Definition: svddef.hxx:247
virtual bool HasBoolValue() const override
Definition: svdattr.cxx:962
#define SDRATTR_3DSCENE_LIGHTON_7
Definition: svddef.hxx:377
#define EE_PARA_BULLETSTATE
SdrEdgeNode1VertDistItem(long nVal)
Definition: sxenditm.hxx:36
virtual ~SdrTextAniStartInsideItem() override
Definition: svdattr.cxx:1864
#define SDRATTR_GRAFTRANSPARENCE
Definition: svddef.hxx:314
#define SDRATTR_MEASURETEXTHPOS
Definition: svddef.hxx:238
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1739
#define SDRATTR_3DOBJ_TEXTURE_PROJ_X
Definition: svddef.hxx:332
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1639
#define SDRATTR_3DSCENE_SHADOW_SLANT
Definition: svddef.hxx:387
sal_Int32 GetNumerator() const
SdrEdgeNode2GlueDistItem(long nVal=0)
Definition: sxenditm.hxx:66
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1560
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1058
#define SDRATTR_LAYERNAME
Definition: svddef.hxx:272
#define SDRATTR_TABLE_BORDER_BLTR
Definition: svddef.hxx:402
#define SDRATTR_EDGENODE1GLUEDIST
Definition: svddef.hxx:228
SdrTextHorzAdjustItem(SdrTextHorzAdjust eAdj=SDRTEXTHORZADJUST_BLOCK)
Definition: sdtaitm.hxx:61
#define SDRATTR_3DSCENE_AMBIENTCOLOR
Definition: svddef.hxx:370
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1581
#define SDRATTR_SHEARANGLE
Definition: svddef.hxx:285
#define SDRATTR_MEASURELINEDIST
Definition: svddef.hxx:240
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1718
void SetValue(sal_uInt32 nTheValue)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1142
sal_uInt32 GetValue() const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1949
#define XATTR_FORMTXTSTYLE
Definition: xdef.hxx:131
OUString GetStr(long nVal) const
Definition: svdtrans.cxx:730
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:901
void SetValid(SvxBoxInfoItemValidFlags nValid, bool bValid=true)
#define SDRATTR_TEXT_MINFRAMEWIDTH
Definition: svddef.hxx:204
#define SDRATTR_3DOBJ_TEXTURE_FILTER
Definition: svddef.hxx:341
#define SDRATTR_CIRCSTARTANGLE
Definition: svddef.hxx:262
#define XATTR_FILLBITMAP
Definition: xdef.hxx:111
SdrTextFitToSizeTypeItem(css::drawing::TextFitToSizeType const eFit=css::drawing::TextFitToSizeType_NONE)
Definition: sdtfsitm.hxx:38
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:903
#define XATTR_FILLBMP_TILEOFFSETX
Definition: xdef.hxx:121
#define SDRATTR_TEXT_AUTOGROWHEIGHT
Definition: svddef.hxx:196
#define SDRATTR_TEXT_CHAINNEXTNAME
Definition: svddef.hxx:219
MapUnit
SdrEdgeNode2VertDistItem(long nVal)
Definition: sxenditm.hxx:52
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1385
#define SDRATTR_TEXT_USEFIXEDCELLHEIGHT
Definition: svddef.hxx:217
#define XATTR_FORMTXTMIRROR
Definition: xdef.hxx:135
#define SDRATTR_GRAFCONTRAST
Definition: svddef.hxx:312
#define EE_PARA_TABS
#define XATTR_LINESTARTWIDTH
Definition: xdef.hxx:96
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:835
#define SDRATTR_3DOBJ_CHARACTER_MODE
Definition: svddef.hxx:347
virtual OUString GetValueTextByVal(bool bVal) const override
Definition: svdattr.cxx:701
SdrItemPool(SfxItemPool *pMaster=nullptr)
Definition: svdattr.cxx:122
#define XATTR_LINECOLOR
Definition: xdef.hxx:93
#define SDRATTR_3DOBJ_SHADOW_3D
Definition: svddef.hxx:334
virtual ~SdrItemPool() override
Definition: svdattr.cxx:368
#define SDRATTR_EDGENODE2GLUEDIST
Definition: svddef.hxx:229
#define SDRATTR_3DSCENE_LIGHTDIRECTION_3
Definition: svddef.hxx:381
#define EE_FEATURE_LINEBR
#define SDRATTR_CIRCKIND
Definition: svddef.hxx:261
#define SDRATTR_3DSCENE_LIGHTCOLOR_7
Definition: svddef.hxx:368
bool IsValid() const
#define SDRATTR_3DOBJ_MAT_COLOR
Definition: svddef.hxx:335
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1210
SdrFractionItem(sal_uInt16 nId, const Fraction &rVal)
Definition: sxfiitm.hxx:32
#define SDRATTR_TRANSFORMREF1Y
Definition: svddef.hxx:299
#define SDRATTR_3DSCENE_LIGHTON_6
Definition: svddef.hxx:376
SdrOnOffItem(sal_uInt16 nId, bool bOn)
Definition: sdooitm.hxx:32
SdrGrafInvertItem(bool bInvert=false)
Definition: sdginitm.hxx:36
#define SDRATTR_TEXT_LOWERDIST
Definition: svddef.hxx:201
#define SDRATTR_3DSCENE_LIGHTDIRECTION_1
Definition: svddef.hxx:379
SdrMeasureTextRota90Item(bool bOn=false)
Definition: sxmtritm.hxx:28
bool IsInvalidItem(const SfxPoolItem *pItem)
#define SDRATTR_SHADOWPERSP
Definition: svddef.hxx:177
#define SDRATTR_3DSCENE_LIGHTDIRECTION_2
Definition: svddef.hxx:380
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:917
#define SDRATTR_EDGELINEDELTACOUNT
Definition: svddef.hxx:230
virtual ~SdrMeasureTextFixedAngleItem() override
Definition: svdattr.cxx:1920
#define XATTRSET_FILL
Definition: xdef.hxx:128
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1930
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1448
#define EE_CHAR_STRIKEOUT
#define SDRATTR_TEXT_MAXFRAMEHEIGHT
Definition: svddef.hxx:203
#define XATTR_FORMTXTSHDWTRANSP
Definition: xdef.hxx:142
#define SDRATTR_3DSCENE_LIGHTCOLOR_5
Definition: svddef.hxx:366
#define XATTR_LINETRANSPARENCE
Definition: xdef.hxx:100
aStr
Fraction nValue
Definition: sxfiitm.hxx:30
#define SDRATTR_OBJSIZEPROTECT
Definition: svddef.hxx:269
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1791
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1391
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1315
sal_uInt16 Which() const
#define EE_PARA_OUTLLRSPACE
#define SDRATTR_TEXT_LEFTDIST
Definition: svddef.hxx:198
void SetSecondaryPool(SfxItemPool *pPool)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1090
#define SDRATTR_3DOBJ_CLOSE_FRONT
Definition: svddef.hxx:348
#define XATTR_FILLBACKGROUND
Definition: xdef.hxx:126
#define XATTR_LINESTART
Definition: xdef.hxx:94
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1881
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1469
void SetDist(bool bNew)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1649
#define XATTR_FILLTRANSPARENCE
Definition: xdef.hxx:112
#define EE_CHAR_WLM
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1427
#define SDRATTR_ECKENRADIUS
Definition: svddef.hxx:194
#define SDRATTR_3DOBJ_TEXTURE_KIND
Definition: svddef.hxx:339