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 <sdgcoitm.hxx>
58 #include <svx/sdggaitm.hxx>
59 #include <sdginitm.hxx>
60 #include <svx/sdgluitm.hxx>
61 #include <svx/sdgmoitm.hxx>
62 #include <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 <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 <sxfiitm.hxx>
89 #include <sxlayitm.hxx>
90 #include <sxlogitm.hxx>
91 #include <svx/sxmbritm.hxx>
92 #include <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 <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 
742 {
743  return new SdrPercentItem(Which(),GetValue());
744 }
745 
747  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/,
748  MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
749 {
751  Application::GetSettings().GetUILanguageTag());
752 
753  if(ePres == SfxItemPresentation::Complete)
754  {
755  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
756  }
757 
758  return true;
759 }
760 
762 {
763  return new SdrAngleItem(Which(),GetValue());
764 }
765 
767  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
768  OUString& rText, const IntlWrapper& rIntlWrapper) const
769 {
770  sal_Int32 nValue(GetValue());
771  bool bNeg(nValue < 0);
772 
773  if(bNeg)
774  nValue = -nValue;
775 
776  OUStringBuffer aText = OUString::number(nValue);
777 
778  if(nValue)
779  {
780  sal_Unicode aUnicodeNull('0');
781  sal_Int32 nCount(2);
782 
784  nCount++;
785 
786  while(aText.getLength() < nCount)
787  aText.insert(0, aUnicodeNull);
788 
789  sal_Int32 nLen = aText.getLength();
790  bool bNull1(aText[nLen-1] == aUnicodeNull);
791  bool bNull2(bNull1 && aText[nLen-2] == aUnicodeNull);
792 
793  if(bNull2)
794  {
795  // no decimal place(s)
796  sal_Int32 idx = nLen-2;
797  aText.remove(idx, aText.getLength()-idx);
798  }
799  else
800  {
801  sal_Unicode cDec =
802  rIntlWrapper.getLocaleData()->getNumDecimalSep()[0];
803  aText.insert(nLen-2, cDec);
804 
805  if(bNull1)
806  aText.remove(nLen, aText.getLength()-nLen);
807  }
808 
809  if(bNeg)
810  aText.insert(0, '-');
811  }
812 
813  aText.append(sal_Unicode(DEGREE_CHAR));
814 
815  if(ePres == SfxItemPresentation::Complete)
816  {
817  OUString aStr = SdrItemPool::GetItemName(Which());
818  aText.insert(0, ' ');
819  aText.insert(0, aStr);
820  }
821 
822  rText = aText.makeStringAndClear();
823  return true;
824 }
825 
827 {
828  return new SdrMetricItem(Which(),GetValue());
829 }
830 
832 {
833  return true;
834 }
835 
836 void SdrMetricItem::ScaleMetrics(long nMul, long nDiv)
837 {
838  if (GetValue()!=0) {
839  BigInt aVal(GetValue());
840  aVal*=nMul;
841  aVal+=nDiv/2; // to round accurately
842  aVal/=nDiv;
843  SetValue(long(aVal));
844  }
845 }
846 
848  MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const
849 {
850  long nValue=GetValue();
851  SdrFormatter aFmt(eCoreMetric,ePresMetric);
852  rText = aFmt.GetStr(nValue);
853  rText += " " + SdrFormatter::GetUnitStr(ePresMetric);
854  if (ePres==SfxItemPresentation::Complete) {
855  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
856  }
857  return true;
858 }
859 
860 
861 // items of the legend object
862 
863 
865 
866 sal_uInt16 SdrCaptionTypeItem::GetValueCount() const { return 4; }
867 
868 OUString SdrCaptionTypeItem::GetValueTextByPos(sal_uInt16 nPos)
869 {
870  static const char* ITEMVALCAPTIONTYPES[] =
871  {
872  STR_ItemValCAPTIONTYPE1,
873  STR_ItemValCAPTIONTYPE2,
874  STR_ItemValCAPTIONTYPE3,
875  STR_ItemValCAPTIONTYPE4
876  };
877  assert(nPos < SAL_N_ELEMENTS(ITEMVALCAPTIONTYPES) && "wrong pos!");
878  return SvxResId(ITEMVALCAPTIONTYPES[nPos]);
879 }
880 
882  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
883 {
884  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
885  if (ePres==SfxItemPresentation::Complete) {
886  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
887  }
888  return true;
889 }
890 
891 
893 
894 sal_uInt16 SdrCaptionEscDirItem::GetValueCount() const { return 3; }
895 
897 {
898  static const char* ITEMVALCAPTIONTYPES[] =
899  {
900  STR_ItemValCAPTIONESCHORI,
901  STR_ItemValCAPTIONESCVERT,
902  STR_ItemValCAPTIONESCBESTFIT
903  };
904  assert(nPos < SAL_N_ELEMENTS(ITEMVALCAPTIONTYPES) && "wrong pos!");
905  return SvxResId(ITEMVALCAPTIONTYPES[nPos]);
906 }
907 
909  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
910 {
911  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
912  if (ePres==SfxItemPresentation::Complete) {
913  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
914  }
915  return true;
916 }
917 
918 
919 // MiscItems
920 
921 
922 // FitToSize
923 
925 
927 
928 sal_uInt16 SdrTextFitToSizeTypeItem::GetValueCount() const { return 4; }
929 
931 {
932  static const char* ITEMVALFITTISIZETYPES[] =
933  {
934  STR_ItemValFITTOSIZENONE,
935  STR_ItemValFITTOSIZEPROP,
936  STR_ItemValFITTOSIZEALLLINES,
937  STR_ItemValFITTOSIZERESIZEAT
938  };
939  assert(nPos < SAL_N_ELEMENTS(ITEMVALFITTISIZETYPES) && "wrong pos!");
940  return SvxResId(ITEMVALFITTISIZETYPES[nPos]);
941 }
942 
944  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
945 {
946  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
947  if (ePres==SfxItemPresentation::Complete) {
948  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
949  }
950  return true;
951 }
952 
953 bool SdrTextFitToSizeTypeItem::HasBoolValue() const { return true; }
954 
955 bool SdrTextFitToSizeTypeItem::GetBoolValue() const { return GetValue() != drawing::TextFitToSizeType_NONE; }
956 
958 {
959  SetValue(bVal ? drawing::TextFitToSizeType_PROPORTIONAL : drawing::TextFitToSizeType_NONE);
960 }
961 
962 bool SdrTextFitToSizeTypeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
963 {
964  drawing::TextFitToSizeType eFS = GetValue();
965  rVal <<= eFS;
966 
967  return true;
968 }
969 
970 bool SdrTextFitToSizeTypeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
971 {
972  drawing::TextFitToSizeType eFS;
973  if(!(rVal >>= eFS))
974  {
975  sal_Int32 nEnum = 0;
976  if(!(rVal >>= nEnum))
977  return false;
978 
979  eFS = static_cast<drawing::TextFitToSizeType>(nEnum);
980  }
981 
982  SetValue(eFS);
983 
984  return true;
985 }
986 
987 
989 
990 sal_uInt16 SdrTextVertAdjustItem::GetValueCount() const { return 5; }
991 
993 {
994  static const char* ITEMVALTEXTVADJTYPES[] =
995  {
996  STR_ItemValTEXTVADJTOP,
997  STR_ItemValTEXTVADJCENTER,
998  STR_ItemValTEXTVADJBOTTOM,
999  STR_ItemValTEXTVADJBLOCK,
1000  STR_ItemValTEXTVADJSTRETCH
1001  };
1002  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTVADJTYPES) && "wrong pos!");
1003  return SvxResId(ITEMVALTEXTVADJTYPES[nPos]);
1004 }
1005 
1007  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1008 {
1009  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1010  if (ePres==SfxItemPresentation::Complete) {
1011  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1012  }
1013  return true;
1014 }
1015 
1016 bool SdrTextVertAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1017 {
1018  rVal <<= static_cast<drawing::TextVerticalAdjust>(GetValue());
1019  return true;
1020 }
1021 
1022 bool SdrTextVertAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1023 {
1024  drawing::TextVerticalAdjust eAdj;
1025  if(!(rVal >>= eAdj))
1026  {
1027  sal_Int32 nEnum = 0;
1028  if(!(rVal >>= nEnum))
1029  return false;
1030 
1031  eAdj = static_cast<drawing::TextVerticalAdjust>(nEnum);
1032  }
1033 
1034  SetValue( static_cast<SdrTextVertAdjust>(eAdj) );
1035 
1036  return true;
1037 }
1038 
1040 {
1041  xmlTextWriterStartElement(pWriter, BAD_CAST("SdrTextVertAdjustItem"));
1042  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
1043  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
1044  xmlTextWriterEndElement(pWriter);
1045 }
1046 
1048 
1049 sal_uInt16 SdrTextHorzAdjustItem::GetValueCount() const { return 5; }
1050 
1052 {
1053  static const char* ITEMVALTEXTHADJTYPES[] =
1054  {
1055  STR_ItemValTEXTHADJLEFT,
1056  STR_ItemValTEXTHADJCENTER,
1057  STR_ItemValTEXTHADJRIGHT,
1058  STR_ItemValTEXTHADJBLOCK,
1059  STR_ItemValTEXTHADJSTRETCH
1060  };
1061  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTHADJTYPES) && "wrong pos!");
1062  return SvxResId(ITEMVALTEXTHADJTYPES[nPos]);
1063 }
1064 
1066  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1067 {
1068  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1069  if (ePres==SfxItemPresentation::Complete) {
1070  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1071  }
1072  return true;
1073 }
1074 
1075 bool SdrTextHorzAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1076 {
1077  rVal <<= static_cast<drawing::TextHorizontalAdjust>(GetValue());
1078  return true;
1079 }
1080 
1081 bool SdrTextHorzAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1082 {
1083  drawing::TextHorizontalAdjust eAdj;
1084  if(!(rVal >>= eAdj))
1085  {
1086  sal_Int32 nEnum = 0;
1087  if(!(rVal >>= nEnum))
1088  return false;
1089 
1090  eAdj = static_cast<drawing::TextHorizontalAdjust>(nEnum);
1091  }
1092 
1093  SetValue( static_cast<SdrTextHorzAdjust>(eAdj) );
1094 
1095  return true;
1096 }
1097 
1098 
1100 
1101 sal_uInt16 SdrTextAniKindItem::GetValueCount() const { return 5; }
1102 
1103 OUString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos)
1104 {
1105  static const char* ITEMVALTEXTANITYPES[] =
1106  {
1107  STR_ItemValTEXTANI_NONE,
1108  STR_ItemValTEXTANI_BLINK,
1109  STR_ItemValTEXTANI_SCROLL,
1110  STR_ItemValTEXTANI_ALTERNATE,
1111  STR_ItemValTEXTANI_SLIDE
1112  };
1113  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1114  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1115 }
1116 
1118  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1119 {
1120  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1121  if (ePres==SfxItemPresentation::Complete) {
1122  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1123  }
1124  return true;
1125 }
1126 
1127 bool SdrTextAniKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1128 {
1129  rVal <<= static_cast<drawing::TextAnimationKind>(GetValue());
1130  return true;
1131 }
1132 
1133 bool SdrTextAniKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1134 {
1135  drawing::TextAnimationKind eKind;
1136  if(!(rVal >>= eKind))
1137  {
1138  sal_Int32 nEnum = 0;
1139  if(!(rVal >>= nEnum))
1140  return false;
1141  eKind = static_cast<drawing::TextAnimationKind>(nEnum);
1142  }
1143 
1144  SetValue( static_cast<SdrTextAniKind>(eKind) );
1145 
1146  return true;
1147 }
1148 
1149 
1151 
1152 sal_uInt16 SdrTextAniDirectionItem::GetValueCount() const { return 4; }
1153 
1155 {
1156  static const char* ITEMVALTEXTANITYPES[] =
1157  {
1158  STR_ItemValTEXTANI_LEFT,
1159  STR_ItemValTEXTANI_UP,
1160  STR_ItemValTEXTANI_RIGHT,
1161  STR_ItemValTEXTANI_DOWN
1162  };
1163  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1164  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1165 }
1166 
1168  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1169 {
1170  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1171  if (ePres==SfxItemPresentation::Complete) {
1172  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1173  }
1174  return true;
1175 }
1176 
1177 bool SdrTextAniDirectionItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1178 {
1179  rVal <<= static_cast<drawing::TextAnimationDirection>(GetValue());
1180  return true;
1181 }
1182 
1183 bool SdrTextAniDirectionItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1184 {
1185  drawing::TextAnimationDirection eDir;
1186  if(!(rVal >>= eDir))
1187  {
1188  sal_Int32 nEnum = 0;
1189  if(!(rVal >>= nEnum))
1190  return false;
1191 
1192  eDir = static_cast<drawing::TextAnimationDirection>(nEnum);
1193  }
1194 
1195  SetValue( static_cast<SdrTextAniDirection>(eDir) );
1196 
1197  return true;
1198 }
1199 
1200 
1202 
1204  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1205  OUString& rText, const IntlWrapper&) const
1206 {
1207  rText = OUString::number(GetValue()) + "ms";
1208 
1209  if(ePres == SfxItemPresentation::Complete)
1210  {
1211  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1212  }
1213 
1214  return true;
1215 }
1216 
1217 
1219 
1221 {
1222  return GetValue()>0;
1223 }
1224 
1225 void SdrTextAniAmountItem::ScaleMetrics(long nMul, long nDiv)
1226 {
1227  if (GetValue()>0) {
1228  BigInt aVal(GetValue());
1229  aVal*=nMul;
1230  aVal+=nDiv/2; // to round accurately
1231  aVal/=nDiv;
1232  SetValue(short(aVal));
1233  }
1234 }
1235 
1237  SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric,
1238  OUString& rText, const IntlWrapper&) const
1239 {
1240  sal_Int32 nValue(GetValue());
1241 
1242  if(!nValue)
1243  nValue = -1;
1244 
1245  if(nValue < 0)
1246  {
1247  rText = OUString::number(-nValue) + "pixel";
1248  }
1249  else
1250  {
1251  SdrFormatter aFmt(eCoreMetric, ePresMetric);
1252  rText = aFmt.GetStr(nValue) +
1253  SdrFormatter::GetUnitStr(ePresMetric);
1254  }
1255 
1256  if(ePres == SfxItemPresentation::Complete)
1257  {
1258  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1259  }
1260 
1261  return true;
1262 }
1263 
1264 
1266  : SfxBoolItem( SDRATTR_TEXT_USEFIXEDCELLHEIGHT, bUseFixedCellHeight )
1267 {
1268 }
1270  MapUnit /*eCoreMetric*/, MapUnit /*ePresentationMetric*/,
1271  OUString &rText, const IntlWrapper& ) const
1272 {
1273  rText = GetValueTextByVal( GetValue() );
1274  if (ePres==SfxItemPresentation::Complete)
1275  {
1276  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1277  }
1278  return true;
1279 }
1280 
1282 {
1283  return new SdrTextFixedCellHeightItem( GetValue() );
1284 }
1285 
1287 {
1288  bool bValue = GetValue();
1289  rVal <<= bValue;
1290  return true;
1291 }
1293 {
1294  bool bValue;
1295  if( !( rVal >>= bValue ) )
1296  return false;
1297  SetValue( bValue );
1298  return true;
1299 }
1300 
1301 // EdgeKind
1302 
1303 SdrEdgeKindItem* SdrEdgeKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrEdgeKindItem(*this); }
1304 
1305 sal_uInt16 SdrEdgeKindItem::GetValueCount() const { return 4; }
1306 
1307 OUString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos)
1308 {
1309  static const char* ITEMVALEDGES[] =
1310  {
1311  STR_ItemValEDGE_ORTHOLINES,
1312  STR_ItemValEDGE_THREELINES,
1313  STR_ItemValEDGE_ONELINE,
1314  STR_ItemValEDGE_BEZIER
1315  };
1316  assert(nPos < SAL_N_ELEMENTS(ITEMVALEDGES) && "wrong pos!");
1317  return SvxResId(ITEMVALEDGES[nPos]);
1318 }
1319 
1321  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1322 {
1323  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1324  if (ePres==SfxItemPresentation::Complete) {
1325  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1326  }
1327  return true;
1328 }
1329 
1330 bool SdrEdgeKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1331 {
1332  drawing::ConnectorType eCT = drawing::ConnectorType_STANDARD;
1333 
1334  switch( GetValue() )
1335  {
1336  case SdrEdgeKind::OrthoLines : eCT = drawing::ConnectorType_STANDARD; break;
1337  case SdrEdgeKind::ThreeLines : eCT = drawing::ConnectorType_LINES; break;
1338  case SdrEdgeKind::OneLine : eCT = drawing::ConnectorType_LINE; break;
1339  case SdrEdgeKind::Bezier : eCT = drawing::ConnectorType_CURVE; break;
1340  case SdrEdgeKind::Arc : eCT = drawing::ConnectorType_CURVE; break;
1341  default:
1342  OSL_FAIL( "SdrEdgeKindItem::QueryValue : unknown enum" );
1343  }
1344 
1345  rVal <<= eCT;
1346 
1347  return true;
1348 }
1349 
1350 bool SdrEdgeKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1351 {
1352  drawing::ConnectorType eCT;
1353  if(!(rVal >>= eCT))
1354  {
1355  sal_Int32 nEnum = 0;
1356  if(!(rVal >>= nEnum))
1357  return false;
1358 
1359  eCT = static_cast<drawing::ConnectorType>(nEnum);
1360  }
1361 
1363  switch( eCT )
1364  {
1365  case drawing::ConnectorType_STANDARD : eEK = SdrEdgeKind::OrthoLines; break;
1366  case drawing::ConnectorType_CURVE : eEK = SdrEdgeKind::Bezier; break;
1367  case drawing::ConnectorType_LINE : eEK = SdrEdgeKind::OneLine; break;
1368  case drawing::ConnectorType_LINES : eEK = SdrEdgeKind::ThreeLines; break;
1369  default:
1370  OSL_FAIL( "SdrEdgeKindItem::PuValue : unknown enum" );
1371  }
1372  SetValue( eEK );
1373 
1374  return true;
1375 }
1376 
1378 {
1379  rVal <<= GetValue();
1380  return true;
1381 }
1382 
1383 bool SdrEdgeNode1HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1384 {
1385  sal_Int32 nValue = 0;
1386  if(!(rVal >>= nValue))
1387  return false;
1388 
1389  SetValue( nValue );
1390  return true;
1391 }
1392 
1394 {
1395  return new SdrEdgeNode1HorzDistItem(*this);
1396 }
1397 
1399 {
1400  rVal <<= GetValue();
1401  return true;
1402 }
1403 
1404 bool SdrEdgeNode1VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1405 {
1406  sal_Int32 nValue = 0;
1407  if(!(rVal >>= nValue))
1408  return false;
1409 
1410  SetValue( nValue );
1411  return true;
1412 }
1413 
1415 {
1416  return new SdrEdgeNode1VertDistItem(*this);
1417 }
1418 
1420 {
1421  rVal <<= GetValue();
1422  return true;
1423 }
1424 
1425 bool SdrEdgeNode2HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1426 {
1427  sal_Int32 nValue = 0;
1428  if(!(rVal >>= nValue))
1429  return false;
1430 
1431  SetValue( nValue );
1432  return true;
1433 }
1434 
1436 {
1437  return new SdrEdgeNode2HorzDistItem(*this);
1438 }
1439 
1441 {
1442  rVal <<= GetValue();
1443  return true;
1444 }
1445 
1446 bool SdrEdgeNode2VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1447 {
1448  sal_Int32 nValue = 0;
1449  if(!(rVal >>= nValue))
1450  return false;
1451 
1452  SetValue( nValue );
1453  return true;
1454 }
1455 
1457 {
1458  return new SdrEdgeNode2VertDistItem(*this);
1459 }
1460 
1462 {
1463  return new SdrEdgeNode1GlueDistItem(*this);
1464 }
1465 
1467 {
1468  return new SdrEdgeNode2GlueDistItem(*this);
1469 }
1470 
1472 
1473 sal_uInt16 SdrMeasureKindItem::GetValueCount() const { return 2; }
1474 
1475 OUString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos)
1476 {
1477  static const char* ITEMVALMEASURETYPES[] =
1478  {
1479  STR_ItemValMEASURE_STD,
1480  STR_ItemValMEASURE_RADIUS
1481  };
1482  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETYPES) && "wrong pos!");
1483  return SvxResId(ITEMVALMEASURETYPES[nPos]);
1484 }
1485 
1487  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1488 {
1489  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1490  if (ePres==SfxItemPresentation::Complete) {
1491  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1492  }
1493  return true;
1494 }
1495 
1496 bool SdrMeasureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1497 {
1498  rVal <<= static_cast<drawing::MeasureKind>(GetValue());
1499  return true;
1500 }
1501 
1502 bool SdrMeasureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1503 {
1504  drawing::MeasureKind eKind;
1505  if(!(rVal >>= eKind))
1506  {
1507  sal_Int32 nEnum = 0;
1508  if(!(rVal >>= nEnum))
1509  return false;
1510 
1511  eKind = static_cast<drawing::MeasureKind>(nEnum);
1512  }
1513 
1514  SetValue( static_cast<SdrMeasureKind>(eKind) );
1515  return true;
1516 }
1517 
1518 
1520 
1521 sal_uInt16 SdrMeasureTextHPosItem::GetValueCount() const { return 4; }
1522 
1524 {
1525  static const char* ITEMVALMEASURETEXTTYPES[] =
1526  {
1527  STR_ItemValMEASURE_TEXTHAUTO,
1528  STR_ItemValMEASURE_TEXTLEFTOUTSIDE,
1529  STR_ItemValMEASURE_TEXTINSIDE,
1530  STR_ItemValMEASURE_TEXTRIGHTOUTSID
1531  };
1532  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1533  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1534 }
1535 
1537  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1538 {
1539  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1540  if (ePres==SfxItemPresentation::Complete) {
1541  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1542  }
1543  return true;
1544 }
1545 
1546 bool SdrMeasureTextHPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1547 {
1548  rVal <<= GetValue();
1549  return true;
1550 }
1551 
1552 bool SdrMeasureTextHPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1553 {
1554  drawing::MeasureTextHorzPos ePos;
1555  if(!(rVal >>= ePos))
1556  {
1557  sal_Int32 nEnum = 0;
1558  if(!(rVal >>= nEnum))
1559  return false;
1560 
1561  ePos = static_cast<drawing::MeasureTextHorzPos>(nEnum);
1562  }
1563 
1564  SetValue(ePos);
1565  return true;
1566 }
1567 
1569 
1570 sal_uInt16 SdrMeasureTextVPosItem::GetValueCount() const { return 5; }
1571 
1573 {
1574  static const char* ITEMVALMEASURETEXTTYPES[] =
1575  {
1576  STR_ItemValMEASURE_TEXTVAUTO,
1577  STR_ItemValMEASURE_ABOVE,
1578  STR_ItemValMEASURETEXT_BREAKEDLINE,
1579  STR_ItemValMEASURE_BELOW,
1580  STR_ItemValMEASURETEXT_VERTICALCEN
1581  };
1582  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1583  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1584 }
1585 
1587  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1588 {
1589  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1590  if (ePres==SfxItemPresentation::Complete) {
1591  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1592  }
1593  return true;
1594 }
1595 
1596 bool SdrMeasureTextVPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1597 {
1598  rVal <<= GetValue();
1599  return true;
1600 }
1601 
1602 bool SdrMeasureTextVPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1603 {
1604  drawing::MeasureTextVertPos ePos;
1605  if(!(rVal >>= ePos))
1606  {
1607  sal_Int32 nEnum = 0;
1608  if(!(rVal >>= nEnum))
1609  return false;
1610 
1611  ePos = static_cast<drawing::MeasureTextVertPos>(nEnum);
1612  }
1613 
1614  SetValue(ePos);
1615  return true;
1616 }
1617 
1619 
1620 sal_uInt16 SdrMeasureUnitItem::GetValueCount() const { return 14; }
1621 
1622 OUString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos)
1623 {
1624  if(static_cast<FieldUnit>(nPos) == FieldUnit::NONE)
1625  return "default";
1626  else
1627  return SdrFormatter::GetUnitStr(static_cast<FieldUnit>(nPos));
1628 }
1629 
1631  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1632 {
1633  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1634  if (ePres==SfxItemPresentation::Complete) {
1635  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1636  }
1637  return true;
1638 }
1639 
1640 bool SdrMeasureUnitItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1641 {
1642  rVal <<= static_cast<sal_Int32>(GetValue());
1643  return true;
1644 }
1645 
1646 bool SdrMeasureUnitItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1647 {
1648  sal_Int32 nMeasure = 0;
1649  if(!(rVal >>= nMeasure))
1650  return false;
1651 
1652  SetValue( static_cast<FieldUnit>(nMeasure) );
1653  return true;
1654 }
1655 
1656 
1657 SdrCircKindItem* SdrCircKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrCircKindItem(*this); }
1658 
1659 sal_uInt16 SdrCircKindItem::GetValueCount() const { return 4; }
1660 
1661 OUString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos)
1662 {
1663  static const char* ITEMVALCIRCTYPES[] =
1664  {
1665  STR_ItemValCIRC_FULL,
1666  STR_ItemValCIRC_SECT,
1667  STR_ItemValCIRC_CUT,
1668  STR_ItemValCIRC_ARC
1669  };
1670  assert(nPos < SAL_N_ELEMENTS(ITEMVALCIRCTYPES) && "wrong pos!");
1671  return SvxResId(ITEMVALCIRCTYPES[nPos]);
1672 }
1673 
1675  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1676 {
1677  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1678  if (ePres==SfxItemPresentation::Complete) {
1679  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1680  }
1681  return true;
1682 }
1683 
1684 bool SdrCircKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1685 {
1686  rVal <<= static_cast<drawing::CircleKind>(GetValue());
1687  return true;
1688 }
1689 
1690 bool SdrCircKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1691 {
1692  drawing::CircleKind eKind;
1693  if(!(rVal >>= eKind))
1694  {
1695  sal_Int32 nEnum = 0;
1696  if(!(rVal >>= nEnum))
1697  return false;
1698 
1699  eKind = static_cast<drawing::CircleKind>(nEnum);
1700  }
1701 
1702  SetValue( static_cast<SdrCircKind>(eKind) );
1703  return true;
1704 }
1705 
1707 {
1708  return new SdrSignedPercentItem( Which(), GetValue() );
1709 }
1710 
1712  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1713  OUString& rText, const IntlWrapper&) const
1714 {
1715  rText = unicode::formatPercent(GetValue(),
1716  Application::GetSettings().GetUILanguageTag());
1717 
1718  if(ePres == SfxItemPresentation::Complete)
1719  {
1720  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1721  }
1722 
1723  return true;
1724 }
1725 
1727 {
1728  return new SdrGrafRedItem( *this );
1729 }
1730 
1732 {
1733  return new SdrGrafGreenItem( *this );
1734 }
1735 
1737 {
1738  return new SdrGrafBlueItem( *this );
1739 }
1740 
1742 {
1743  return new SdrGrafLuminanceItem( *this );
1744 }
1745 
1747 {
1748  return new SdrGrafContrastItem( *this );
1749 }
1750 
1752 {
1753  return new SdrGrafGamma100Item( *this );
1754 }
1755 
1756 bool SdrGrafGamma100Item::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1757 {
1758  rVal <<= static_cast<double>(GetValue()) / 100.0;
1759  return true;
1760 }
1761 
1762 bool SdrGrafGamma100Item::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1763 {
1764  double nGamma = 0;
1765  if(!(rVal >>= nGamma))
1766  return false;
1767 
1768  SetValue( static_cast<sal_uInt32>(nGamma * 100.0 ) );
1769  return true;
1770 }
1771 
1773 {
1774  return new SdrGrafInvertItem( *this );
1775 }
1776 
1778 {
1779  return new SdrGrafTransparenceItem( *this );
1780 }
1781 
1783 {
1784  return new SdrGrafModeItem( *this );
1785 }
1786 
1788 {
1789  return 4;
1790 }
1791 
1792 OUString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos)
1793 {
1794  OUString aStr;
1795 
1796  switch(nPos)
1797  {
1798  case 1:
1799  {
1800  aStr = "Greys";
1801  break;
1802  }
1803  case 2:
1804  {
1805  aStr = "Black/White";
1806  break;
1807  }
1808  case 3:
1809  {
1810  aStr = "Watermark";
1811  break;
1812  }
1813  default:
1814  {
1815  aStr = "Standard";
1816  break;
1817  }
1818  }
1819 
1820  return aStr;
1821 }
1822 
1824  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1825  OUString& rText, const IntlWrapper&) const
1826 {
1827  rText = GetValueTextByPos( sal::static_int_cast< sal_uInt16 >( GetValue() ) );
1828 
1829  if( ePres == SfxItemPresentation::Complete )
1830  {
1831  rText = SdrItemPool::GetItemName( Which() ) + " " + rText;
1832  }
1833 
1834  return true;
1835 }
1836 
1838 {
1839  return new SdrGrafCropItem( *this );
1840 }
1841 
1843 {
1844 }
1845 
1847 {
1848  return new SdrTextAniStartInsideItem(*this);
1849 }
1850 
1852 {
1853 }
1854 
1856 {
1857  return new SdrTextAniStopInsideItem(*this);
1858 }
1859 
1861 {
1862 }
1863 
1865 {
1866  return new SdrCaptionEscIsRelItem(*this);
1867 }
1868 
1870 {
1871 }
1872 
1874 {
1875  return new SdrCaptionEscRelItem(*this);
1876 }
1877 
1879 {
1880 }
1881 
1883 {
1884  return new SdrCaptionFitLineLenItem(*this);
1885 }
1886 
1888 {
1889 }
1890 
1892 {
1893  return new SdrCaptionLineLenItem(*this);
1894 }
1895 
1897 {
1898 }
1899 
1901 {
1902  return new SdrMeasureBelowRefEdgeItem(*this);
1903 }
1904 
1906 {
1907 }
1908 
1910 {
1911  return new SdrMeasureTextIsFixedAngleItem(*this);
1912 }
1913 
1915 {
1916 }
1917 
1919 {
1920  return new SdrMeasureTextFixedAngleItem(*this);
1921 }
1922 
1924 {
1925 }
1926 
1928 {
1929  return new SdrMeasureDecimalPlacesItem(*this);
1930 }
1931 
1933 {
1934 }
1935 
1937 {
1938  return new SdrMeasureTextRota90Item(*this);
1939 }
1940 
1942 {
1943 }
1944 
1946 {
1947  return new SdrMeasureTextUpsideDownItem(*this);
1948 }
1949 
1951 {
1952  return new SdrLayerIdItem(*this);
1953 }
1954 
1956 {
1957  return new SdrLayerNameItem(*this);
1958 }
1959 
1960 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SDRATTR_GRAFRED
Definition: svddef.hxx:308
const Fraction & GetValue() const
Definition: sxfiitm.hxx:35
SdrGrafLuminanceItem(short nLuminancePercent=0)
Definition: sdgluitm.hxx:36
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1152
#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:1546
static OUString GetUnitStr(MapUnit eUnit)
Definition: svdtrans.cxx:841
SdrTextFixedCellHeightItem(bool bUseFixedCellHeight=false)
Definition: svdattr.cxx:1265
#define XATTR_LINESTARTCENTER
Definition: xdef.hxx:98
sal_Int32 GetValue() const
#define EE_CHAR_ESCAPEMENT
virtual ~SdrMeasureDecimalPlacesItem() override
Definition: svdattr.cxx:1923
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1622
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:962
virtual bool GetBoolValue() const override
Definition: svdattr.cxx:955
#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:1183
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1787
#define XATTR_FILLHATCH
Definition: xdef.hxx:110
#define EE_FEATURE_NOTCONV
virtual SdrMeasureTextRota90Item * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1936
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:35
virtual bool GetPresentation(const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
virtual SdrTextFitToSizeTypeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:926
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:990
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
#define SDRATTR_MEASUREOVERHANG
Definition: svddef.hxx:248
#define SDRATTR_3DSCENE_TWO_SIDED_LIGHTING
Definition: svddef.hxx:361
virtual SdrPercentItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:741
#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:1286
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1521
#define SDRATTR_LAYERID
Definition: svddef.hxx:271
struct _xmlTextWriter * xmlTextWriterPtr
#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:1473
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1075
virtual bool operator==(const SfxPoolItem &) const =0
SdrCaptionEscDirItem(SdrCaptionEscDir eDir=SdrCaptionEscDir::Horizontal)
Definition: sxcecitm.hxx:35
#define SDRATTR_RESIZEXONE
Definition: svddef.hxx:288
#define SDRATTR_3DOBJ_VERT_SEGS
Definition: svddef.hxx:327
virtual SdrMeasureKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1471
#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:766
virtual SdrEdgeNode1HorzDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1393
virtual SdrGrafInvertItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1772
virtual SdrEdgeNode1GlueDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1461
SdrGrafTransparenceItem(sal_uInt16 nTransparencePercent=0)
Definition: sdgtritm.hxx:34
virtual ~SdrCaptionEscRelItem() override
Definition: svdattr.cxx:1869
#define EE_PARA_OUTLLEVEL
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1350
virtual SdrMeasureTextFixedAngleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1918
virtual void SetBoolValue(bool bVal) override
Definition: svdattr.cxx:957
#define SDRATTR_GRAFGAMMA
Definition: svddef.hxx:313
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:1905
virtual SdrTextAniAmountItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1218
#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:847
#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:1236
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1269
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
#define SDRATTR_MEASURETEXTISFIXEDANGLE
Definition: svddef.hxx:255
sal_uInt16 GetValue() const
#define EE_PARA_HYPHENATE
virtual ~SdrMeasureBelowRefEdgeItem() override
Definition: svdattr.cxx:1896
void SetDefaults(std::vector< SfxPoolItem * > *pDefaults)
#define EE_PARA_JUST
virtual SdrMeasureTextVPosItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1568
virtual SdrSignedPercentItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1706
#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:831
#define SDRATTR_SHADOWCOLOR
Definition: svddef.hxx:172
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1475
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1602
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:1496
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:930
static SfxPoolItem * CreateDefault()
Definition: svdattr.cxx:924
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1103
#define SDRATTR_MEASUREHELPLINE2LEN
Definition: svddef.hxx:244
virtual SdrLayerIdItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1950
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:1860
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1486
#define SDRATTR_GRAFINVERT
Definition: svddef.hxx:315
SdrScaleItem(sal_uInt16 nId, const Fraction &rVal)
Definition: sxsiitm.hxx:25
#define SDRATTR_GRAFGREEN
Definition: svddef.hxx:309
#define SDRATTR_EDGENODE1HORZDIST
Definition: svddef.hxx:224
#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
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1620
#define SDRATTR_3DOBJ_SMOOTH_NORMALS
Definition: svddef.hxx:345
css::chart::ChartAxisLabelPosition ePos
#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
virtual SdrTextAniKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1099
virtual SdrTextHorzAdjustItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1047
#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:943
#define EE_FEATURE_TAB
virtual SdrTextAniStartInsideItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1846
SdrGrafContrastItem(short nContrastPercent=0)
Definition: sdgluitm.hxx:51
#define EE_CHAR_FONTWIDTH
#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:746
virtual SVX_DLLPRIVATE SdrTextFixedCellHeightItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1281
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:1823
#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:1065
#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
virtual SdrMeasureDecimalPlacesItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1927
#define SDRATTR_VERTSHEARONE
Definition: svddef.hxx:292
SdrEdgeKindItem(SdrEdgeKind eStyle=SdrEdgeKind::OrthoLines)
Definition: sxekitm.hxx:33
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1502
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:1117
#define SDRATTR_MEASUREHELPLINE1LEN
Definition: svddef.hxx:243
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1022
#define SDRATTR_MEASUREBELOWREFEDGE
Definition: svddef.hxx:245
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1016
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1756
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:896
#define SDRATTR_CIRCENDANGLE
Definition: svddef.hxx:263
int nCount
SdrCircKindItem(SdrCircKind eKind=SdrCircKind::Full)
Definition: sxcikitm.hxx:28
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1101
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
virtual SdrCaptionFitLineLenItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1882
virtual SdrGrafBlueItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1736
#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
#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:1762
virtual ~SdrMeasureTextRota90Item() override
Definition: svdattr.cxx:1932
virtual SdrMeasureTextUpsideDownItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1945
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
#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:1586
SdrGrafBlueItem(short nBluePercent=0)
Definition: sdgcoitm.hxx:63
#define XATTR_FILLBMP_POSOFFSETY
Definition: xdef.hxx:125
#define XATTR_FILLBMP_SIZELOG
Definition: xdef.hxx:120
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1661
#define SDRATTR_MEASURETEXTAUTOANGLE
Definition: svddef.hxx:253
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1127
#define XATTR_FILLBMP_POS
Definition: xdef.hxx:115
#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:1711
SdrGrafGamma100Item(sal_uInt32 nGamma100=100)
Definition: sdggaitm.hxx:36
#define SDRATTR_3DSCENE_LIGHTON_3
Definition: svddef.hxx:373
#define XATTR_LINEENDCENTER
Definition: xdef.hxx:99
virtual SdrGrafGreenItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1731
#define SAL_N_ELEMENTS(arr)
#define SDRATTR_SHADOWYDIST
Definition: svddef.hxx:174
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1523
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:866
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1425
virtual SdrGrafCropItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1837
#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:1220
#define SDRATTR_TEXT_ANICOUNT
Definition: svddef.hxx:212
virtual SdrEdgeNode2HorzDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1435
#define SDRATTR_3DOBJ_SMOOTH_LIDS
Definition: svddef.hxx:346
#define EE_PARA_LRSPACE
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1305
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1446
#define SDRATTR_OBJECTNAME
Definition: svddef.hxx:273
#define SDRATTR_TEXT_HORZADJUST
Definition: svddef.hxx:207
virtual SdrGrafModeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1782
#define SDRATTR_3DSCENE_LIGHTCOLOR_1
Definition: svddef.hxx:362
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 SdrYesNoItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:719
virtual SdrAngleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:761
virtual SVX_DLLPRIVATE bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1292
SfxItemPresentation
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:868
sal_Int16 GetValue() const
virtual SdrEdgeKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1303
#define XATTR_FORMTXTSTART
Definition: xdef.hxx:134
virtual SdrCaptionLineLenItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1891
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
virtual SdrEdgeNode2VertDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1456
#define SDRATTR_3DSCENE_LIGHTDIRECTION_6
Definition: svddef.hxx:384
virtual SdrMeasureUnitItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1618
#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:1006
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1330
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:881
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1154
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1684
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:664
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
virtual SdrItemPool * Clone() const override
Definition: svdattr.cxx:363
#define EE_FEATURE_FIELD
#define SDRATTR_3DOBJ_HORZ_SEGS
Definition: svddef.hxx:326
SdrGrafGreenItem(short nGreenPercent=0)
Definition: sdgcoitm.hxx:49
#define SDRATTR_CAPTIONESCDIR
Definition: svddef.hxx:185
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1570
int i
#define SDRATTR_ROTATEALL
Definition: svddef.hxx:295
void SetValue(sal_Int16 nTheValue)
std::unique_ptr< SfxItemInfo[]> mpLocalItemInfos
Definition: xpool.hxx:37
#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:1596
#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
#define SDRATTR_TEXTDIRECTION
Definition: svddef.hxx:302
virtual ~SdrCaptionFitLineLenItem() override
Definition: svdattr.cxx:1878
#define EE_CHAR_FONTHEIGHT
virtual SdrTextAniStopInsideItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1855
#define XATTR_LINESTYLE
Definition: xdef.hxx:90
#define SDRATTR_3DOBJ_DEPTH
Definition: svddef.hxx:325
#define SDRATTR_START
Definition: svddef.hxx:168
#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:1690
#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
virtual SdrFractionItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:655
#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:1404
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
virtual SdrMeasureBelowRefEdgeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1900
#define SDRATTR_CAPTIONFITLINELEN
Definition: svddef.hxx:190
SdrLayerIdItem(SdrLayerID nId)
Definition: sxlayitm.hxx:29
#define SDRATTR_TEXT_MINFRAMEHEIGHT
Definition: svddef.hxx:195
virtual SdrCaptionTypeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:864
virtual SdrCircKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1657
#define SDRATTR_GRAFBLUE
Definition: svddef.hxx:310
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: svdattr.cxx:1039
#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
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1051
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:970
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:1792
#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:836
virtual SdrMetricItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:826
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
#define XATTR_LINEWIDTH
Definition: xdef.hxx:92
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:992
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:1203
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1674
#define XATTR_FILLBMP_SIZEY
Definition: xdef.hxx:117
#define XATTR_FORMTXTDISTANCE
Definition: xdef.hxx:133
#define SDRATTR_TEXT_ANIDIRECTION
Definition: svddef.hxx:209
virtual SdrMeasureTextHPosItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1519
virtual SdrCaptionEscRelItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1873
#define SDRATTR_MEASURESCALE
Definition: svddef.hxx:250
#define EE_PARA_SBL
#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
virtual SdrGrafGamma100Item * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1751
#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:1177
#define XATTR_FILLBMP_TILE
Definition: xdef.hxx:114
#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
#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
virtual SdrLayerNameItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1955
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:1320
virtual ~SdrTextAniStopInsideItem() override
Definition: svdattr.cxx:1851
virtual SdrGrafLuminanceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1741
sal_Int32 GetDenominator() const
virtual SdrCaptionEscIsRelItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1864
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
virtual SdrMeasureTextIsFixedAngleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1909
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:928
virtual SdrGrafRedItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1726
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1646
#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
#define EE_CHAR_WEIGHT
#define SDRATTR_MEASUREHELPLINEOVERHANG
Definition: svddef.hxx:241
virtual void ScaleMetrics(long nMul, long nDiv) override
Definition: svdattr.cxx:1225
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1536
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1167
#define SDRATTR_CAPTIONESCREL
Definition: svddef.hxx:187
#define SDRATTR_GRAFLUMINANCE
Definition: svddef.hxx:311
virtual ~SdrMeasureTextUpsideDownItem() override
Definition: svdattr.cxx:1941
virtual SdrGrafTransparenceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1777
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1659
#define SDRATTR_MEASUREFORMATSTRING
Definition: svddef.hxx:252
#define SDRATTR_RESIZEXALL
Definition: svddef.hxx:293
virtual ~SdrCaptionLineLenItem() override
Definition: svdattr.cxx:1887
#define XATTR_LINEEND
Definition: xdef.hxx:95
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1398
#define SDRATTR_TEXT_AUTOGROWWIDTH
Definition: svddef.hxx:206
#define SDRATTR_MEASURETEXTUPSIDEDOWN
Definition: svddef.hxx:247
virtual bool HasBoolValue() const override
Definition: svdattr.cxx:953
#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:1842
#define SDRATTR_GRAFTRANSPARENCE
Definition: svddef.hxx:314
#define SDRATTR_MEASURETEXTHPOS
Definition: svddef.hxx:238
#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:1630
#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:1552
virtual SdrEdgeNode1VertDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1414
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1049
#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:1572
#define SDRATTR_SHEARANGLE
Definition: svddef.hxx:285
#define SDRATTR_MEASURELINEDIST
Definition: svddef.hxx:240
void SetValue(sal_uInt32 nTheValue)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1133
sal_uInt32 GetValue() const
#define XATTR_FORMTXTSTYLE
Definition: xdef.hxx:131
OUString GetStr(long nVal) const
Definition: svdtrans.cxx:730
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:894
virtual SdrOnOffItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:696
virtual SdrGrafContrastItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1746
#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:1377
#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
#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
virtual SdrTextAniDirectionItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1150
bool IsValid() const
#define SDRATTR_3DOBJ_MAT_COLOR
Definition: svddef.hxx:335
SdrFractionItem(sal_uInt16 nId, const Fraction &rVal)
Definition: sxfiitm.hxx:31
#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:34
#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:908
#define SDRATTR_EDGELINEDELTACOUNT
Definition: svddef.hxx:230
virtual ~SdrMeasureTextFixedAngleItem() override
Definition: svdattr.cxx:1914
virtual SdrScaleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:687
#define XATTRSET_FILL
Definition: xdef.hxx:128
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1440
#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:29
#define SDRATTR_OBJSIZEPROTECT
Definition: svddef.hxx:269
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1383
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1307
sal_uInt16 Which() const
#define EE_PARA_OUTLLRSPACE
#define SDRATTR_TEXT_LEFTDIST
Definition: svddef.hxx:198
virtual SdrCaptionEscDirItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:892
virtual SdrEdgeNode2GlueDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1466
virtual SdrTextAniDelayItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1201
void SetSecondaryPool(SfxItemPool *pPool)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1081
#define SDRATTR_3DOBJ_CLOSE_FRONT
Definition: svddef.hxx:348
virtual SdrTextVertAdjustItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:988
#define XATTR_FILLBACKGROUND
Definition: xdef.hxx:126
#define XATTR_LINESTART
Definition: xdef.hxx:94
void SetDist(bool bNew)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1640
#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:1419
#define SDRATTR_ECKENRADIUS
Definition: svddef.hxx:194
#define SDRATTR_3DOBJ_TEXTURE_KIND
Definition: svddef.hxx:339