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 
943 sal_uInt16 SdrTextFitToSizeTypeItem::GetValueCount() const { return 4; }
944 
946 {
947  static const char* ITEMVALFITTISIZETYPES[] =
948  {
949  STR_ItemValFITTOSIZENONE,
950  STR_ItemValFITTOSIZEPROP,
951  STR_ItemValFITTOSIZEALLLINES,
952  STR_ItemValFITTOSIZERESIZEAT
953  };
954  assert(nPos < SAL_N_ELEMENTS(ITEMVALFITTISIZETYPES) && "wrong pos!");
955  return SvxResId(ITEMVALFITTISIZETYPES[nPos]);
956 }
957 
959  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
960 {
961  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
962  if (ePres==SfxItemPresentation::Complete) {
963  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
964  }
965  return true;
966 }
967 
968 bool SdrTextFitToSizeTypeItem::HasBoolValue() const { return true; }
969 
970 bool SdrTextFitToSizeTypeItem::GetBoolValue() const { return GetValue() != drawing::TextFitToSizeType_NONE; }
971 
973 {
974  SetValue(bVal ? drawing::TextFitToSizeType_PROPORTIONAL : drawing::TextFitToSizeType_NONE);
975 }
976 
977 bool SdrTextFitToSizeTypeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
978 {
979  drawing::TextFitToSizeType eFS = GetValue();
980  rVal <<= eFS;
981 
982  return true;
983 }
984 
985 bool SdrTextFitToSizeTypeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
986 {
987  drawing::TextFitToSizeType eFS;
988  if(!(rVal >>= eFS))
989  {
990  sal_Int32 nEnum = 0;
991  if(!(rVal >>= nEnum))
992  return false;
993 
994  eFS = static_cast<drawing::TextFitToSizeType>(nEnum);
995  }
996 
997  SetValue(eFS);
998 
999  return true;
1000 }
1001 
1002 
1004 
1005 sal_uInt16 SdrTextVertAdjustItem::GetValueCount() const { return 5; }
1006 
1008 {
1009  static const char* ITEMVALTEXTVADJTYPES[] =
1010  {
1011  STR_ItemValTEXTVADJTOP,
1012  STR_ItemValTEXTVADJCENTER,
1013  STR_ItemValTEXTVADJBOTTOM,
1014  STR_ItemValTEXTVADJBLOCK,
1015  STR_ItemValTEXTVADJSTRETCH
1016  };
1017  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTVADJTYPES) && "wrong pos!");
1018  return SvxResId(ITEMVALTEXTVADJTYPES[nPos]);
1019 }
1020 
1022  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1023 {
1024  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1025  if (ePres==SfxItemPresentation::Complete) {
1026  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1027  }
1028  return true;
1029 }
1030 
1031 bool SdrTextVertAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1032 {
1033  rVal <<= static_cast<drawing::TextVerticalAdjust>(GetValue());
1034  return true;
1035 }
1036 
1037 bool SdrTextVertAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1038 {
1039  drawing::TextVerticalAdjust eAdj;
1040  if(!(rVal >>= eAdj))
1041  {
1042  sal_Int32 nEnum = 0;
1043  if(!(rVal >>= nEnum))
1044  return false;
1045 
1046  eAdj = static_cast<drawing::TextVerticalAdjust>(nEnum);
1047  }
1048 
1049  SetValue( static_cast<SdrTextVertAdjust>(eAdj) );
1050 
1051  return true;
1052 }
1053 
1055 {
1056  xmlTextWriterStartElement(pWriter, BAD_CAST("SdrTextVertAdjustItem"));
1057  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
1058  xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
1059  xmlTextWriterEndElement(pWriter);
1060 }
1061 
1063 
1064 sal_uInt16 SdrTextHorzAdjustItem::GetValueCount() const { return 5; }
1065 
1067 {
1068  static const char* ITEMVALTEXTHADJTYPES[] =
1069  {
1070  STR_ItemValTEXTHADJLEFT,
1071  STR_ItemValTEXTHADJCENTER,
1072  STR_ItemValTEXTHADJRIGHT,
1073  STR_ItemValTEXTHADJBLOCK,
1074  STR_ItemValTEXTHADJSTRETCH
1075  };
1076  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTHADJTYPES) && "wrong pos!");
1077  return SvxResId(ITEMVALTEXTHADJTYPES[nPos]);
1078 }
1079 
1081  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1082 {
1083  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1084  if (ePres==SfxItemPresentation::Complete) {
1085  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1086  }
1087  return true;
1088 }
1089 
1090 bool SdrTextHorzAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1091 {
1092  rVal <<= static_cast<drawing::TextHorizontalAdjust>(GetValue());
1093  return true;
1094 }
1095 
1096 bool SdrTextHorzAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1097 {
1098  drawing::TextHorizontalAdjust eAdj;
1099  if(!(rVal >>= eAdj))
1100  {
1101  sal_Int32 nEnum = 0;
1102  if(!(rVal >>= nEnum))
1103  return false;
1104 
1105  eAdj = static_cast<drawing::TextHorizontalAdjust>(nEnum);
1106  }
1107 
1108  SetValue( static_cast<SdrTextHorzAdjust>(eAdj) );
1109 
1110  return true;
1111 }
1112 
1113 
1115 
1116 sal_uInt16 SdrTextAniKindItem::GetValueCount() const { return 5; }
1117 
1118 OUString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos)
1119 {
1120  static const char* ITEMVALTEXTANITYPES[] =
1121  {
1122  STR_ItemValTEXTANI_NONE,
1123  STR_ItemValTEXTANI_BLINK,
1124  STR_ItemValTEXTANI_SCROLL,
1125  STR_ItemValTEXTANI_ALTERNATE,
1126  STR_ItemValTEXTANI_SLIDE
1127  };
1128  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1129  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1130 }
1131 
1133  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1134 {
1135  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1136  if (ePres==SfxItemPresentation::Complete) {
1137  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1138  }
1139  return true;
1140 }
1141 
1142 bool SdrTextAniKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1143 {
1144  rVal <<= static_cast<drawing::TextAnimationKind>(GetValue());
1145  return true;
1146 }
1147 
1148 bool SdrTextAniKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1149 {
1150  drawing::TextAnimationKind eKind;
1151  if(!(rVal >>= eKind))
1152  {
1153  sal_Int32 nEnum = 0;
1154  if(!(rVal >>= nEnum))
1155  return false;
1156  eKind = static_cast<drawing::TextAnimationKind>(nEnum);
1157  }
1158 
1159  SetValue( static_cast<SdrTextAniKind>(eKind) );
1160 
1161  return true;
1162 }
1163 
1164 
1166 
1167 sal_uInt16 SdrTextAniDirectionItem::GetValueCount() const { return 4; }
1168 
1170 {
1171  static const char* ITEMVALTEXTANITYPES[] =
1172  {
1173  STR_ItemValTEXTANI_LEFT,
1174  STR_ItemValTEXTANI_UP,
1175  STR_ItemValTEXTANI_RIGHT,
1176  STR_ItemValTEXTANI_DOWN
1177  };
1178  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1179  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1180 }
1181 
1183  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1184 {
1185  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1186  if (ePres==SfxItemPresentation::Complete) {
1187  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1188  }
1189  return true;
1190 }
1191 
1192 bool SdrTextAniDirectionItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1193 {
1194  rVal <<= static_cast<drawing::TextAnimationDirection>(GetValue());
1195  return true;
1196 }
1197 
1198 bool SdrTextAniDirectionItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1199 {
1200  drawing::TextAnimationDirection eDir;
1201  if(!(rVal >>= eDir))
1202  {
1203  sal_Int32 nEnum = 0;
1204  if(!(rVal >>= nEnum))
1205  return false;
1206 
1207  eDir = static_cast<drawing::TextAnimationDirection>(nEnum);
1208  }
1209 
1210  SetValue( static_cast<SdrTextAniDirection>(eDir) );
1211 
1212  return true;
1213 }
1214 
1215 
1217 
1219  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1220  OUString& rText, const IntlWrapper&) const
1221 {
1222  rText = OUString::number(GetValue()) + "ms";
1223 
1224  if(ePres == SfxItemPresentation::Complete)
1225  {
1226  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1227  }
1228 
1229  return true;
1230 }
1231 
1232 
1234 
1236 {
1237  return GetValue()>0;
1238 }
1239 
1240 void SdrTextAniAmountItem::ScaleMetrics(long nMul, long nDiv)
1241 {
1242  if (GetValue()>0) {
1243  BigInt aVal(GetValue());
1244  aVal*=nMul;
1245  aVal+=nDiv/2; // to round accurately
1246  aVal/=nDiv;
1247  SetValue(short(aVal));
1248  }
1249 }
1250 
1252  SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric,
1253  OUString& rText, const IntlWrapper&) const
1254 {
1255  sal_Int32 nValue(GetValue());
1256 
1257  if(!nValue)
1258  nValue = -1;
1259 
1260  if(nValue < 0)
1261  {
1262  rText = OUString::number(-nValue) + "pixel";
1263  }
1264  else
1265  {
1266  SdrFormatter aFmt(eCoreMetric, ePresMetric);
1267  rText = aFmt.GetStr(nValue) +
1268  SdrFormatter::GetUnitStr(ePresMetric);
1269  }
1270 
1271  if(ePres == SfxItemPresentation::Complete)
1272  {
1273  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1274  }
1275 
1276  return true;
1277 }
1278 
1279 
1280 SdrTextFixedCellHeightItem::SdrTextFixedCellHeightItem( bool bUseFixedCellHeight )
1281  : SfxBoolItem( SDRATTR_TEXT_USEFIXEDCELLHEIGHT, bUseFixedCellHeight )
1282 {
1283 }
1284 bool SdrTextFixedCellHeightItem::GetPresentation( SfxItemPresentation ePres,
1285  MapUnit /*eCoreMetric*/, MapUnit /*ePresentationMetric*/,
1286  OUString &rText, const IntlWrapper& ) const
1287 {
1288  rText = GetValueTextByVal( GetValue() );
1289  if (ePres==SfxItemPresentation::Complete)
1290  {
1291  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1292  }
1293  return true;
1294 }
1295 
1296 SdrTextFixedCellHeightItem* SdrTextFixedCellHeightItem::Clone( SfxItemPool * /*pPool*/) const
1297 {
1298  return new SdrTextFixedCellHeightItem( GetValue() );
1299 }
1300 
1301 bool SdrTextFixedCellHeightItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1302 {
1303  bool bValue = GetValue();
1304  rVal <<= bValue;
1305  return true;
1306 }
1307 bool SdrTextFixedCellHeightItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1308 {
1309  bool bValue;
1310  if( !( rVal >>= bValue ) )
1311  return false;
1312  SetValue( bValue );
1313  return true;
1314 }
1315 
1316 // EdgeKind
1317 
1318 SdrEdgeKindItem* SdrEdgeKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrEdgeKindItem(*this); }
1319 
1320 sal_uInt16 SdrEdgeKindItem::GetValueCount() const { return 4; }
1321 
1322 OUString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos)
1323 {
1324  static const char* ITEMVALEDGES[] =
1325  {
1326  STR_ItemValEDGE_ORTHOLINES,
1327  STR_ItemValEDGE_THREELINES,
1328  STR_ItemValEDGE_ONELINE,
1329  STR_ItemValEDGE_BEZIER
1330  };
1331  assert(nPos < SAL_N_ELEMENTS(ITEMVALEDGES) && "wrong pos!");
1332  return SvxResId(ITEMVALEDGES[nPos]);
1333 }
1334 
1336  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1337 {
1338  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1339  if (ePres==SfxItemPresentation::Complete) {
1340  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1341  }
1342  return true;
1343 }
1344 
1345 bool SdrEdgeKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1346 {
1347  drawing::ConnectorType eCT = drawing::ConnectorType_STANDARD;
1348 
1349  switch( GetValue() )
1350  {
1351  case SdrEdgeKind::OrthoLines : eCT = drawing::ConnectorType_STANDARD; break;
1352  case SdrEdgeKind::ThreeLines : eCT = drawing::ConnectorType_LINES; break;
1353  case SdrEdgeKind::OneLine : eCT = drawing::ConnectorType_LINE; break;
1354  case SdrEdgeKind::Bezier : eCT = drawing::ConnectorType_CURVE; break;
1355  case SdrEdgeKind::Arc : eCT = drawing::ConnectorType_CURVE; break;
1356  default:
1357  OSL_FAIL( "SdrEdgeKindItem::QueryValue : unknown enum" );
1358  }
1359 
1360  rVal <<= eCT;
1361 
1362  return true;
1363 }
1364 
1365 bool SdrEdgeKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1366 {
1367  drawing::ConnectorType eCT;
1368  if(!(rVal >>= eCT))
1369  {
1370  sal_Int32 nEnum = 0;
1371  if(!(rVal >>= nEnum))
1372  return false;
1373 
1374  eCT = static_cast<drawing::ConnectorType>(nEnum);
1375  }
1376 
1378  switch( eCT )
1379  {
1380  case drawing::ConnectorType_STANDARD : eEK = SdrEdgeKind::OrthoLines; break;
1381  case drawing::ConnectorType_CURVE : eEK = SdrEdgeKind::Bezier; break;
1382  case drawing::ConnectorType_LINE : eEK = SdrEdgeKind::OneLine; break;
1383  case drawing::ConnectorType_LINES : eEK = SdrEdgeKind::ThreeLines; break;
1384  default:
1385  OSL_FAIL( "SdrEdgeKindItem::PuValue : unknown enum" );
1386  }
1387  SetValue( eEK );
1388 
1389  return true;
1390 }
1391 
1393 {
1394  rVal <<= GetValue();
1395  return true;
1396 }
1397 
1398 bool SdrEdgeNode1HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1399 {
1400  sal_Int32 nValue = 0;
1401  if(!(rVal >>= nValue))
1402  return false;
1403 
1404  SetValue( nValue );
1405  return true;
1406 }
1407 
1409 {
1410  return new SdrEdgeNode1HorzDistItem(*this);
1411 }
1412 
1414 {
1415  rVal <<= GetValue();
1416  return true;
1417 }
1418 
1419 bool SdrEdgeNode1VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1420 {
1421  sal_Int32 nValue = 0;
1422  if(!(rVal >>= nValue))
1423  return false;
1424 
1425  SetValue( nValue );
1426  return true;
1427 }
1428 
1430 {
1431  return new SdrEdgeNode1VertDistItem(*this);
1432 }
1433 
1435 {
1436  rVal <<= GetValue();
1437  return true;
1438 }
1439 
1440 bool SdrEdgeNode2HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1441 {
1442  sal_Int32 nValue = 0;
1443  if(!(rVal >>= nValue))
1444  return false;
1445 
1446  SetValue( nValue );
1447  return true;
1448 }
1449 
1451 {
1452  return new SdrEdgeNode2HorzDistItem(*this);
1453 }
1454 
1456 {
1457  rVal <<= GetValue();
1458  return true;
1459 }
1460 
1461 bool SdrEdgeNode2VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1462 {
1463  sal_Int32 nValue = 0;
1464  if(!(rVal >>= nValue))
1465  return false;
1466 
1467  SetValue( nValue );
1468  return true;
1469 }
1470 
1472 {
1473  return new SdrEdgeNode2VertDistItem(*this);
1474 }
1475 
1477 {
1478  return new SdrEdgeNode1GlueDistItem(*this);
1479 }
1480 
1482 {
1483  return new SdrEdgeNode2GlueDistItem(*this);
1484 }
1485 
1487 
1488 sal_uInt16 SdrMeasureKindItem::GetValueCount() const { return 2; }
1489 
1490 OUString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos)
1491 {
1492  static const char* ITEMVALMEASURETYPES[] =
1493  {
1494  STR_ItemValMEASURE_STD,
1495  STR_ItemValMEASURE_RADIUS
1496  };
1497  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETYPES) && "wrong pos!");
1498  return SvxResId(ITEMVALMEASURETYPES[nPos]);
1499 }
1500 
1502  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1503 {
1504  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1505  if (ePres==SfxItemPresentation::Complete) {
1506  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1507  }
1508  return true;
1509 }
1510 
1511 bool SdrMeasureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1512 {
1513  rVal <<= static_cast<drawing::MeasureKind>(GetValue());
1514  return true;
1515 }
1516 
1517 bool SdrMeasureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1518 {
1519  drawing::MeasureKind eKind;
1520  if(!(rVal >>= eKind))
1521  {
1522  sal_Int32 nEnum = 0;
1523  if(!(rVal >>= nEnum))
1524  return false;
1525 
1526  eKind = static_cast<drawing::MeasureKind>(nEnum);
1527  }
1528 
1529  SetValue( static_cast<SdrMeasureKind>(eKind) );
1530  return true;
1531 }
1532 
1533 
1535 
1536 sal_uInt16 SdrMeasureTextHPosItem::GetValueCount() const { return 4; }
1537 
1539 {
1540  static const char* ITEMVALMEASURETEXTTYPES[] =
1541  {
1542  STR_ItemValMEASURE_TEXTHAUTO,
1543  STR_ItemValMEASURE_TEXTLEFTOUTSIDE,
1544  STR_ItemValMEASURE_TEXTINSIDE,
1545  STR_ItemValMEASURE_TEXTRIGHTOUTSID
1546  };
1547  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1548  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1549 }
1550 
1552  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1553 {
1554  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1555  if (ePres==SfxItemPresentation::Complete) {
1556  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1557  }
1558  return true;
1559 }
1560 
1561 bool SdrMeasureTextHPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1562 {
1563  rVal <<= GetValue();
1564  return true;
1565 }
1566 
1567 bool SdrMeasureTextHPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1568 {
1569  drawing::MeasureTextHorzPos ePos;
1570  if(!(rVal >>= ePos))
1571  {
1572  sal_Int32 nEnum = 0;
1573  if(!(rVal >>= nEnum))
1574  return false;
1575 
1576  ePos = static_cast<drawing::MeasureTextHorzPos>(nEnum);
1577  }
1578 
1579  SetValue(ePos);
1580  return true;
1581 }
1582 
1584 
1585 sal_uInt16 SdrMeasureTextVPosItem::GetValueCount() const { return 5; }
1586 
1588 {
1589  static const char* ITEMVALMEASURETEXTTYPES[] =
1590  {
1591  STR_ItemValMEASURE_TEXTVAUTO,
1592  STR_ItemValMEASURE_ABOVE,
1593  STR_ItemValMEASURETEXT_BREAKEDLINE,
1594  STR_ItemValMEASURE_BELOW,
1595  STR_ItemValMEASURETEXT_VERTICALCEN
1596  };
1597  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1598  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1599 }
1600 
1602  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1603 {
1604  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1605  if (ePres==SfxItemPresentation::Complete) {
1606  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1607  }
1608  return true;
1609 }
1610 
1611 bool SdrMeasureTextVPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1612 {
1613  rVal <<= GetValue();
1614  return true;
1615 }
1616 
1617 bool SdrMeasureTextVPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1618 {
1619  drawing::MeasureTextVertPos ePos;
1620  if(!(rVal >>= ePos))
1621  {
1622  sal_Int32 nEnum = 0;
1623  if(!(rVal >>= nEnum))
1624  return false;
1625 
1626  ePos = static_cast<drawing::MeasureTextVertPos>(nEnum);
1627  }
1628 
1629  SetValue(ePos);
1630  return true;
1631 }
1632 
1634 
1635 sal_uInt16 SdrMeasureUnitItem::GetValueCount() const { return 14; }
1636 
1637 OUString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos)
1638 {
1639  if(static_cast<FieldUnit>(nPos) == FieldUnit::NONE)
1640  return "default";
1641  else
1642  return SdrFormatter::GetUnitStr(static_cast<FieldUnit>(nPos));
1643 }
1644 
1646  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1647 {
1648  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1649  if (ePres==SfxItemPresentation::Complete) {
1650  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1651  }
1652  return true;
1653 }
1654 
1655 bool SdrMeasureUnitItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1656 {
1657  rVal <<= static_cast<sal_Int32>(GetValue());
1658  return true;
1659 }
1660 
1661 bool SdrMeasureUnitItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1662 {
1663  sal_Int32 nMeasure = 0;
1664  if(!(rVal >>= nMeasure))
1665  return false;
1666 
1667  SetValue( static_cast<FieldUnit>(nMeasure) );
1668  return true;
1669 }
1670 
1671 
1672 SdrCircKindItem* SdrCircKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrCircKindItem(*this); }
1673 
1674 sal_uInt16 SdrCircKindItem::GetValueCount() const { return 4; }
1675 
1676 OUString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos)
1677 {
1678  static const char* ITEMVALCIRCTYPES[] =
1679  {
1680  STR_ItemValCIRC_FULL,
1681  STR_ItemValCIRC_SECT,
1682  STR_ItemValCIRC_CUT,
1683  STR_ItemValCIRC_ARC
1684  };
1685  assert(nPos < SAL_N_ELEMENTS(ITEMVALCIRCTYPES) && "wrong pos!");
1686  return SvxResId(ITEMVALCIRCTYPES[nPos]);
1687 }
1688 
1690  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1691 {
1692  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1693  if (ePres==SfxItemPresentation::Complete) {
1694  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1695  }
1696  return true;
1697 }
1698 
1699 bool SdrCircKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1700 {
1701  rVal <<= static_cast<drawing::CircleKind>(GetValue());
1702  return true;
1703 }
1704 
1705 bool SdrCircKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1706 {
1707  drawing::CircleKind eKind;
1708  if(!(rVal >>= eKind))
1709  {
1710  sal_Int32 nEnum = 0;
1711  if(!(rVal >>= nEnum))
1712  return false;
1713 
1714  eKind = static_cast<drawing::CircleKind>(nEnum);
1715  }
1716 
1717  SetValue( static_cast<SdrCircKind>(eKind) );
1718  return true;
1719 }
1720 
1721 SdrSignedPercentItem* SdrSignedPercentItem::Clone(SfxItemPool* /*pPool*/) const
1722 {
1723  return new SdrSignedPercentItem( Which(), GetValue() );
1724 }
1725 
1726 bool SdrSignedPercentItem::GetPresentation(
1727  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1728  OUString& rText, const IntlWrapper&) const
1729 {
1730  rText = unicode::formatPercent(GetValue(),
1731  Application::GetSettings().GetUILanguageTag());
1732 
1733  if(ePres == SfxItemPresentation::Complete)
1734  {
1735  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1736  }
1737 
1738  return true;
1739 }
1740 
1741 SdrGrafRedItem* SdrGrafRedItem::Clone( SfxItemPool* /*pPool*/) const
1742 {
1743  return new SdrGrafRedItem( *this );
1744 }
1745 
1746 SdrGrafGreenItem* SdrGrafGreenItem::Clone( SfxItemPool* /*pPool*/) const
1747 {
1748  return new SdrGrafGreenItem( *this );
1749 }
1750 
1751 SdrGrafBlueItem* SdrGrafBlueItem::Clone( SfxItemPool* /*pPool*/) const
1752 {
1753  return new SdrGrafBlueItem( *this );
1754 }
1755 
1757 {
1758  return new SdrGrafLuminanceItem( *this );
1759 }
1760 
1762 {
1763  return new SdrGrafContrastItem( *this );
1764 }
1765 
1767 {
1768  return new SdrGrafGamma100Item( *this );
1769 }
1770 
1771 bool SdrGrafGamma100Item::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1772 {
1773  rVal <<= static_cast<double>(GetValue()) / 100.0;
1774  return true;
1775 }
1776 
1777 bool SdrGrafGamma100Item::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1778 {
1779  double nGamma = 0;
1780  if(!(rVal >>= nGamma))
1781  return false;
1782 
1783  SetValue( static_cast<sal_uInt32>(nGamma * 100.0 ) );
1784  return true;
1785 }
1786 
1788 {
1789  return new SdrGrafInvertItem( *this );
1790 }
1791 
1792 SdrGrafTransparenceItem* SdrGrafTransparenceItem::Clone( SfxItemPool* /*pPool*/) const
1793 {
1794  return new SdrGrafTransparenceItem( *this );
1795 }
1796 
1798 {
1799  return new SdrGrafModeItem( *this );
1800 }
1801 
1803 {
1804  return 4;
1805 }
1806 
1807 OUString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos)
1808 {
1809  OUString aStr;
1810 
1811  switch(nPos)
1812  {
1813  case 1:
1814  {
1815  aStr = "Greys";
1816  break;
1817  }
1818  case 2:
1819  {
1820  aStr = "Black/White";
1821  break;
1822  }
1823  case 3:
1824  {
1825  aStr = "Watermark";
1826  break;
1827  }
1828  default:
1829  {
1830  aStr = "Standard";
1831  break;
1832  }
1833  }
1834 
1835  return aStr;
1836 }
1837 
1839  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1840  OUString& rText, const IntlWrapper&) const
1841 {
1842  rText = GetValueTextByPos( sal::static_int_cast< sal_uInt16 >( GetValue() ) );
1843 
1844  if( ePres == SfxItemPresentation::Complete )
1845  {
1846  rText = SdrItemPool::GetItemName( Which() ) + " " + rText;
1847  }
1848 
1849  return true;
1850 }
1851 
1852 SdrGrafCropItem* SdrGrafCropItem::Clone( SfxItemPool* /*pPool*/) const
1853 {
1854  return new SdrGrafCropItem( *this );
1855 }
1856 
1858 {
1859 }
1860 
1862 {
1863  return new SdrTextAniStartInsideItem(*this);
1864 }
1865 
1867 {
1868 }
1869 
1871 {
1872  return new SdrTextAniStopInsideItem(*this);
1873 }
1874 
1876 {
1877 }
1878 
1880 {
1881  return new SdrCaptionEscIsRelItem(*this);
1882 }
1883 
1885 {
1886 }
1887 
1889 {
1890  return new SdrCaptionEscRelItem(*this);
1891 }
1892 
1894 {
1895 }
1896 
1898 {
1899  return new SdrCaptionFitLineLenItem(*this);
1900 }
1901 
1903 {
1904 }
1905 
1907 {
1908  return new SdrCaptionLineLenItem(*this);
1909 }
1910 
1912 {
1913 }
1914 
1916 {
1917  return new SdrMeasureBelowRefEdgeItem(*this);
1918 }
1919 
1921 {
1922 }
1923 
1925 {
1926  return new SdrMeasureTextIsFixedAngleItem(*this);
1927 }
1928 
1930 {
1931 }
1932 
1934 {
1935  return new SdrMeasureTextFixedAngleItem(*this);
1936 }
1937 
1939 {
1940 }
1941 
1943 {
1944  return new SdrMeasureDecimalPlacesItem(*this);
1945 }
1946 
1948 {
1949 }
1950 
1952 {
1953  return new SdrMeasureTextRota90Item(*this);
1954 }
1955 
1957 {
1958 }
1959 
1961 {
1962  return new SdrMeasureTextUpsideDownItem(*this);
1963 }
1964 
1966 {
1967  return new SdrLayerIdItem(*this);
1968 }
1969 
1971 {
1972  return new SdrLayerNameItem(*this);
1973 }
1974 
1975 /* 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:1167
bool GetValue() const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1561
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:1938
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1637
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:977
virtual bool GetBoolValue() const override
Definition: svdattr.cxx:970
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:1198
constexpr TypedWhichId< SdrTextHorzAdjustItem > SDRATTR_TEXT_HORZADJUST(SDRATTR_MISC_FIRST+13)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1802
constexpr TypedWhichId< SdrTextAniStartInsideItem > SDRATTR_TEXT_ANISTARTINSIDE(SDRATTR_MISC_FIRST+16)
virtual SdrMeasureTextRota90Item * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1951
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::Color COL_BLACK(0x00, 0x00, 0x00)
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:1005
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:1536
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:1488
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:1090
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:1486
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:1408
virtual SdrGrafInvertItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1787
virtual SdrEdgeNode1GlueDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1476
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_AUTOGROWWIDTH(SDRATTR_MISC_FIRST+12)
virtual ~SdrCaptionEscRelItem() override
Definition: svdattr.cxx:1884
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1365
virtual SdrMeasureTextFixedAngleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1933
virtual void SetBoolValue(bool bVal) override
Definition: svdattr.cxx:972
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:1920
virtual SdrTextAniAmountItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1233
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:1251
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:1911
void SetDefaults(std::vector< SfxPoolItem * > *pDefaults)
virtual SdrMeasureTextVPosItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1583
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:1490
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1617
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:1511
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:945
static SfxPoolItem * CreateDefault()
Definition: svdattr.cxx:939
constexpr TypedWhichId< XLineStyleItem > XATTR_LINESTYLE(XATTR_LINE_FIRST)
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1118
constexpr TypedWhichId< SdrMeasureUnitItem > SDRATTR_MEASUREUNIT(SDRATTR_MEASURE_FIRST+12)
virtual SdrLayerIdItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1965
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:1875
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:1501
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:1635
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:1114
virtual SdrTextHorzAdjustItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1062
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:958
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:1861
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:1838
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:1080
constexpr TypedWhichId< SdrResizeYOneItem > SDRATTR_RESIZEYONE(SDRATTR_NOTPERSIST_FIRST+21)
const LocaleDataWrapper * getLocaleData() const
virtual SdrMeasureDecimalPlacesItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1942
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:1517
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:1132
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1037
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1031
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1771
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:1116
std::vector< SfxPoolItem * > * mpLocalPoolDefaults
Definition: xpool.hxx:36
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:1897
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:1777
constexpr TypedWhichId< SdrOnePositionYItem > SDRATTR_ONEPOSITIONY(SDRATTR_NOTPERSIST_FIRST+11)
virtual ~SdrMeasureTextRota90Item() override
Definition: svdattr.cxx:1947
constexpr TypedWhichId< Svx3DReducedLineGeometryItem > SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY(SDRATTR_3DOBJ_FIRST+24)
virtual SdrMeasureTextUpsideDownItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1960
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:1601
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:1676
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1142
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)
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:1538
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:1440
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:1235
constexpr TypedWhichId< SdrOneSizeWidthItem > SDRATTR_ONESIZEWIDTH(SDRATTR_NOTPERSIST_FIRST+12)
virtual SdrEdgeNode2HorzDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1450
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1320
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1461
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_TEXTURE_FILTER(SDRATTR_3DOBJ_FIRST+18)
virtual SdrGrafModeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1797
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:1318
constexpr TypedWhichId< SdrEdgeNode1GlueDistItem > SDRATTR_EDGENODE1GLUEDIST(SDRATTR_EDGE_FIRST+5)
virtual SdrCaptionLineLenItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1906
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:1471
constexpr TypedWhichId< XSecondaryFillColorItem > XATTR_SECONDARYFILLCOLOR(XATTR_FILL_FIRST+12)
virtual SdrMeasureUnitItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1633
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:1021
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1345
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:1169
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:1699
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:1585
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:37
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:1611
#define DEGREE_CHAR
Definition: svdmodel.hxx:51
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:1893
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_8(SDRATTR_3DSCENE_FIRST+20)
virtual SdrTextAniStopInsideItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1870
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:1705
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:1419
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:1915
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:1672
constexpr TypedWhichId< SdrAllSizeHeightItem > SDRATTR_ALLSIZEHEIGHT(SDRATTR_NOTPERSIST_FIRST+9)
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: svdattr.cxx:1054
SdrCaptionEscRelItem(long nEscRel=5000)
Definition: sxcecitm.hxx:70
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1066
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:985
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1807
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:1007
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:1218
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:1689
virtual SdrMeasureTextHPosItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1534
virtual SdrCaptionEscRelItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1888
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:1766
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:1192
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:1970
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:1335
constexpr TypedWhichId< SdrYesNoItem > SDRATTR_MEASURESHOWUNIT(SDRATTR_MEASURE_FIRST+14)
virtual ~SdrTextAniStopInsideItem() override
Definition: svdattr.cxx:1866
virtual SdrGrafLuminanceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1756
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:1879
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:1924
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:943
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:1661
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:1240
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1551
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:1182
constexpr TypedWhichId< XFormTextShadowYValItem > XATTR_FORMTXTSHDWYVAL(XATTR_TEXT_FIRST+9)
virtual ~SdrMeasureTextUpsideDownItem() override
Definition: svdattr.cxx:1956
constexpr TypedWhichId< XFillBmpStretchItem > XATTR_FILLBMP_STRETCH(XATTR_FILL_FIRST+16)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1674
constexpr TypedWhichId< SdrMeasureTextVPosItem > SDRATTR_MEASURETEXTVPOS(SDRATTR_MEASURE_FIRST+2)
virtual ~SdrCaptionLineLenItem() override
Definition: svdattr.cxx:1902
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:1413
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:968
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:1857
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:1645
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_8(SDRATTR_3DSCENE_FIRST+11)
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:1567
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_6(SDRATTR_3DSCENE_FIRST+9)
virtual SdrEdgeNode1VertDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1429
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1064
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:1587
void SetValue(sal_uInt32 nTheValue)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1148
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:1761
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:1392
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:1165
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:1929
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:1455
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:1398
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1322
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:1481
virtual SdrTextAniDelayItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1216
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:1096
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:1003
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:1655
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1434
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)