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