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