LibreOffice Module editeng (master) 1
editattr.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 <vcl/outdev.hxx>
21
22#include <svl/grabbagitem.hxx>
23#include <libxml/xmlwriter.h>
24#include <editeng/svxfont.hxx>
25#include <editeng/flditem.hxx>
26#include <editeng/fontitem.hxx>
27#include <editeng/postitem.hxx>
28#include <editeng/wghtitem.hxx>
29#include <editeng/udlnitem.hxx>
31#include <editeng/shdditem.hxx>
33#include <editeng/colritem.hxx>
34#include <editeng/wrlmitem.hxx>
35#include <editeng/fhgtitem.hxx>
37#include <editeng/kernitem.hxx>
39#include <editeng/langitem.hxx>
43#include <editeng/cmapitem.hxx>
44
45#include <editattr.hxx>
46
47
48
49EditCharAttrib::EditCharAttrib( const SfxPoolItem& rAttr, sal_Int32 nS, sal_Int32 nE ) :
50 nStart(nS), nEnd(nE), bFeature(false), bEdge(false)
51{
52 pItem = &rAttr;
53
54 assert((rAttr.Which() >= EE_ITEMS_START) && (rAttr.Which() <= EE_ITEMS_END));
55 assert((rAttr.Which() < EE_FEATURE_START) || (rAttr.Which() > EE_FEATURE_END) || (nE == (nS+1)));
56}
57
59{
60}
61
63{
64}
65
67{
68 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("EditCharAttrib"));
69 (void)xmlTextWriterWriteFormatAttribute(
70 pWriter, BAD_CAST("nStart"), "%" SAL_PRIdINT32, nStart);
71 (void)xmlTextWriterWriteFormatAttribute(
72 pWriter, BAD_CAST("nEnd"), "%" SAL_PRIdINT32, nEnd);
73 pItem->dumpAsXml(pWriter);
74 (void)xmlTextWriterEndElement(pWriter);
75}
76
77
78
79EditCharAttribFont::EditCharAttribFont( const SvxFontItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
80 : EditCharAttrib( rAttr, _nStart, _nEnd )
81{
82 assert(rAttr.Which() == EE_CHAR_FONTINFO || rAttr.Which() == EE_CHAR_FONTINFO_CJK || rAttr.Which() == EE_CHAR_FONTINFO_CTL);
83}
84
86{
87 const SvxFontItem& rAttr = static_cast<const SvxFontItem&>(*GetItem());
88
89 rFont.SetFamilyName( rAttr.GetFamilyName() );
90 rFont.SetFamily( rAttr.GetFamily() );
91 rFont.SetPitch( rAttr.GetPitch() );
92 rFont.SetCharSet( rAttr.GetCharSet() );
93}
94
95
96
97EditCharAttribItalic::EditCharAttribItalic( const SvxPostureItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
98 : EditCharAttrib( rAttr, _nStart, _nEnd )
99{
100 assert(rAttr.Which() == EE_CHAR_ITALIC || rAttr.Which() == EE_CHAR_ITALIC_CJK || rAttr.Which() == EE_CHAR_ITALIC_CTL);
101}
102
104{
105 rFont.SetItalic( static_cast<const SvxPostureItem*>(GetItem())->GetPosture() );
106}
107
108
109
110EditCharAttribWeight::EditCharAttribWeight( const SvxWeightItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
111 : EditCharAttrib( rAttr, _nStart, _nEnd )
112{
113 assert(rAttr.Which() == EE_CHAR_WEIGHT || rAttr.Which() == EE_CHAR_WEIGHT_CJK || rAttr.Which() == EE_CHAR_WEIGHT_CTL);
114}
115
117{
118 rFont.SetWeight( static_cast<const SvxWeightItem*>(GetItem())->GetValue() );
119}
120
121
122
123EditCharAttribUnderline::EditCharAttribUnderline( const SvxUnderlineItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
124 : EditCharAttrib( rAttr, _nStart, _nEnd )
125{
126 assert(rAttr.Which() == EE_CHAR_UNDERLINE);
127}
128
130{
131 rFont.SetUnderline( static_cast<const SvxUnderlineItem*>(GetItem())->GetValue() );
132
133 if ( pOutDev )
134 pOutDev->SetTextLineColor( static_cast<const SvxUnderlineItem*>(GetItem())->GetColor() );
135
136}
137
138
139
140EditCharAttribOverline::EditCharAttribOverline( const SvxOverlineItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
141 : EditCharAttrib( rAttr, _nStart, _nEnd )
142{
143 assert(rAttr.Which() == EE_CHAR_OVERLINE);
144}
145
147{
148 rFont.SetOverline( static_cast<const SvxOverlineItem*>(GetItem())->GetValue() );
149 if ( pOutDev )
150 pOutDev->SetOverlineColor( static_cast<const SvxOverlineItem*>(GetItem())->GetColor() );
151}
152
153
154
155EditCharAttribFontHeight::EditCharAttribFontHeight( const SvxFontHeightItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
156 : EditCharAttrib( rAttr, _nStart, _nEnd )
157{
158 assert(rAttr.Which() == EE_CHAR_FONTHEIGHT || rAttr.Which() == EE_CHAR_FONTHEIGHT_CJK || rAttr.Which() == EE_CHAR_FONTHEIGHT_CTL);
159}
160
162{
163 // Property is ignored
164 rFont.SetFontSize( Size( rFont.GetFontSize().Width(), static_cast<const SvxFontHeightItem*>(GetItem())->GetHeight() ) );
165}
166
167
168
169EditCharAttribFontWidth::EditCharAttribFontWidth( const SvxCharScaleWidthItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
170 : EditCharAttrib( rAttr, _nStart, _nEnd )
171{
172 assert(rAttr.Which() == EE_CHAR_FONTWIDTH);
173}
174
176{
177 // must be calculated outside, because f(device)...
178}
179
180
181
182EditCharAttribStrikeout::EditCharAttribStrikeout( const SvxCrossedOutItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
183 : EditCharAttrib( rAttr, _nStart, _nEnd )
184{
185 assert(rAttr.Which() == EE_CHAR_STRIKEOUT);
186}
187
189{
190 rFont.SetStrikeout( static_cast<const SvxCrossedOutItem*>(GetItem())->GetValue() );
191}
192
193
194
195EditCharAttribCaseMap::EditCharAttribCaseMap( const SvxCaseMapItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
196 : EditCharAttrib( rAttr, _nStart, _nEnd )
197{
198 assert(rAttr.Which() == EE_CHAR_CASEMAP);
199}
200
202{
203 rFont.SetCaseMap( static_cast<const SvxCaseMapItem*>(GetItem())->GetCaseMap() );
204}
205
206
207
208EditCharAttribColor::EditCharAttribColor( const SvxColorItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
209 : EditCharAttrib( rAttr, _nStart, _nEnd )
210{
211 assert(rAttr.Which() == EE_CHAR_COLOR);
212}
213
215{
216 Color aColor = static_cast<const SvxColorItem*>(GetItem())->GetValue();
217 rFont.SetColor( aColor);
218}
219
220
222 const SvxColorItem& rAttr,
223 sal_Int32 _nStart,
224 sal_Int32 _nEnd )
225 : EditCharAttrib( rAttr, _nStart, _nEnd )
226{
227 assert(rAttr.Which() == EE_CHAR_BKGCOLOR);
228}
229
231{
232 Color aColor = static_cast<const SvxColorItem*>(GetItem())->GetValue();
233 rFont.SetTransparent(aColor.IsTransparent());
234 rFont.SetFillColor(aColor);
235}
236
237EditCharAttribLanguage::EditCharAttribLanguage( const SvxLanguageItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
238 : EditCharAttrib( rAttr, _nStart, _nEnd )
239{
240 assert((rAttr.Which() == EE_CHAR_LANGUAGE) || (rAttr.Which() == EE_CHAR_LANGUAGE_CJK) || (rAttr.Which() == EE_CHAR_LANGUAGE_CTL));
241}
242
244{
245 rFont.SetLanguage( static_cast<const SvxLanguageItem*>(GetItem())->GetLanguage() );
246}
247
248
249
250EditCharAttribShadow::EditCharAttribShadow( const SvxShadowedItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
251 : EditCharAttrib( rAttr, _nStart, _nEnd )
252{
253 assert(rAttr.Which() == EE_CHAR_SHADOW);
254}
255
257{
258 rFont.SetShadow( static_cast<const SvxShadowedItem*>(GetItem())->GetValue() );
259}
260
261
262
263EditCharAttribEscapement::EditCharAttribEscapement( const SvxEscapementItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
264 : EditCharAttrib( rAttr, _nStart, _nEnd )
265{
266 assert(rAttr.Which() == EE_CHAR_ESCAPEMENT);
267}
268
270{
271 sal_uInt16 const nProp = static_cast<const SvxEscapementItem*>(GetItem())->GetProportionalHeight();
272 rFont.SetPropr( static_cast<sal_uInt8>(nProp) );
273
274 short nEsc = static_cast<const SvxEscapementItem*>(GetItem())->GetEsc();
275 rFont.SetNonAutoEscapement( nEsc, pOutDev );
276}
277
278
279
280EditCharAttribOutline::EditCharAttribOutline( const SvxContourItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
281 : EditCharAttrib( rAttr, _nStart, _nEnd )
282{
283 assert(rAttr.Which() == EE_CHAR_OUTLINE);
284}
285
287{
288 rFont.SetOutline( static_cast<const SvxContourItem*>(GetItem())->GetValue() );
289}
290
291
292
294 : EditCharAttrib( rAttr, nPos, nPos+1 )
295{
296 SetFeature( true );
297}
298
300{
301}
302
303
304
306 : EditCharAttrib( rAttr, nPos, nPos+1 )
307{
308 SetFeature( true );
309}
310
312{
313}
314
315
316
318 : EditCharAttrib( rAttr, nPos, nPos+1 )
319{
320 SetFeature( true ); // !!!
321}
322
324{
325 if ( mxFldColor )
326 {
327 rFont.SetFillColor( *mxFldColor );
328 rFont.SetTransparent( false );
329 }
330 if ( mxTxtColor )
331 rFont.SetColor( *mxTxtColor );
332 if ( mxFldLineStyle )
334}
335
336
337void EditCharAttribField::SetFieldValue(const OUString& rVal)
338{
339 aFieldValue = rVal;
340}
341
343{
344 aFieldValue.clear();
345 mxTxtColor.reset();
346 mxFldColor.reset();
347 mxFldLineStyle.reset();
348}
349
351 : EditCharAttrib( *rAttr.GetItem(), rAttr.GetStart(), rAttr.GetEnd() ),
352 aFieldValue( rAttr.aFieldValue )
353{
354 // Use this constructor only for temporary Objects, Item is not pooled.
355 mxTxtColor = rAttr.mxTxtColor;
356 mxFldColor = rAttr.mxFldColor;
358}
359
361{
362 Reset();
363}
364
366{
367 if ( aFieldValue != rAttr.aFieldValue )
368 return false;
369
370 if ( ( mxTxtColor && !rAttr.mxTxtColor ) || ( !mxTxtColor && rAttr.mxTxtColor ) )
371 return false;
372 if ( ( mxTxtColor && rAttr.mxTxtColor ) && ( *mxTxtColor != *rAttr.mxTxtColor ) )
373 return false;
374
375 if ( ( mxFldColor && !rAttr.mxFldColor ) || ( !mxFldColor && rAttr.mxFldColor ) )
376 return false;
377 if ( ( mxFldColor && rAttr.mxFldColor ) && ( *mxFldColor != *rAttr.mxFldColor ) )
378 return false;
379
380 if ( ( mxFldLineStyle && !rAttr.mxFldLineStyle ) || ( !mxFldLineStyle && rAttr.mxFldLineStyle ) )
381 return false;
382 if ( ( mxFldLineStyle && rAttr.mxFldLineStyle ) && ( *mxFldLineStyle != *rAttr.mxFldLineStyle ) )
383 return false;
384
385 return true;
386}
387
388
389
390EditCharAttribPairKerning::EditCharAttribPairKerning( const SvxAutoKernItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
391: EditCharAttrib( rAttr, _nStart, _nEnd )
392{
393 assert(rAttr.Which() == EE_CHAR_PAIRKERNING);
394}
395
397{
398 rFont.SetKerning( static_cast<const SvxAutoKernItem*>(GetItem())->GetValue() ? FontKerning::FontSpecific : FontKerning::NONE );
399}
400
401
402
403EditCharAttribKerning::EditCharAttribKerning( const SvxKerningItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
404: EditCharAttrib( rAttr, _nStart, _nEnd )
405{
406 assert(rAttr.Which() == EE_CHAR_KERNING);
407}
408
410{
411 rFont.SetFixKerning( static_cast<const SvxKerningItem*>(GetItem())->GetValue() );
412}
413
414
415
416EditCharAttribWordLineMode::EditCharAttribWordLineMode( const SvxWordLineModeItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
417: EditCharAttrib( rAttr, _nStart, _nEnd )
418{
419 assert(rAttr.Which() == EE_CHAR_WLM);
420}
421
423{
424 rFont.SetWordLineMode( static_cast<const SvxWordLineModeItem*>(GetItem())->GetValue() );
425}
426
427
428
429EditCharAttribEmphasisMark::EditCharAttribEmphasisMark( const SvxEmphasisMarkItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
430 : EditCharAttrib( rAttr, _nStart, _nEnd )
431{
432 assert(rAttr.Which() == EE_CHAR_EMPHASISMARK);
433}
434
436{
437 rFont.SetEmphasisMark( static_cast<const SvxEmphasisMarkItem*>(GetItem())->GetEmphasisMark() );
438}
439
440
441
442EditCharAttribRelief::EditCharAttribRelief( const SvxCharReliefItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
443 : EditCharAttrib( rAttr, _nStart, _nEnd )
444{
445 assert(rAttr.Which() == EE_CHAR_RELIEF);
446}
447
449{
450 rFont.SetRelief( static_cast<const SvxCharReliefItem*>(GetItem())->GetValue() );
451}
452
453
454EditCharAttribGrabBag::EditCharAttribGrabBag( const SfxGrabBagItem& rAttr, sal_Int32 _nStart, sal_Int32 _nEnd )
455 : EditCharAttrib( rAttr, _nStart, _nEnd )
456{
457 assert(rAttr.Which() == EE_CHAR_GRABBAG);
458}
459
460/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool IsTransparent() const
EditCharAttribBackgroundColor(const SvxColorItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:221
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:230
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:201
EditCharAttribCaseMap(const SvxCaseMapItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:195
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:214
EditCharAttribColor(const SvxColorItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:208
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:435
EditCharAttribEmphasisMark(const SvxEmphasisMarkItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:429
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:269
EditCharAttribEscapement(const SvxEscapementItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:263
EditCharAttribField(const SvxFieldItem &rAttr, sal_Int32 nPos)
Definition: editattr.cxx:317
virtual ~EditCharAttribField() override
Definition: editattr.cxx:360
bool operator==(const EditCharAttribField &rAttr) const
Definition: editattr.cxx:365
std::optional< Color > mxFldColor
Definition: editattr.hxx:346
std::optional< FontLineStyle > mxFldLineStyle
Definition: editattr.hxx:347
std::optional< Color > mxTxtColor
Definition: editattr.hxx:345
OUString aFieldValue
Definition: editattr.hxx:344
void SetFieldValue(const OUString &rVal)
Definition: editattr.cxx:337
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:323
EditCharAttribFontHeight(const SvxFontHeightItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:155
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:161
EditCharAttribFontWidth(const SvxCharScaleWidthItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:169
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:175
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:85
EditCharAttribFont(const SvxFontItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:79
EditCharAttribGrabBag(const SfxGrabBagItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:454
EditCharAttribItalic(const SvxPostureItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:97
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:103
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:409
EditCharAttribKerning(const SvxKerningItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:403
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:243
EditCharAttribLanguage(const SvxLanguageItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:237
EditCharAttribLineBreak(const SfxVoidItem &rAttr, sal_Int32 nPos)
Definition: editattr.cxx:305
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:311
EditCharAttribOutline(const SvxContourItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:280
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:286
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:146
EditCharAttribOverline(const SvxOverlineItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:140
EditCharAttribPairKerning(const SvxAutoKernItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:390
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:396
EditCharAttribRelief(const SvxCharReliefItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:442
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:448
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:256
EditCharAttribShadow(const SvxShadowedItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:250
EditCharAttribStrikeout(const SvxCrossedOutItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:182
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:188
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:299
EditCharAttribTab(const SfxVoidItem &rAttr, sal_Int32 nPos)
Definition: editattr.cxx:293
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:129
EditCharAttribUnderline(const SvxUnderlineItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:123
EditCharAttribWeight(const SvxWeightItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:110
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:116
EditCharAttribWordLineMode(const SvxWordLineModeItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:416
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev) override
Definition: editattr.cxx:422
void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: editattr.cxx:66
sal_Int32 nStart
Definition: editattr.hxx:70
const SfxPoolItem * GetItem() const
Definition: editattr.hxx:85
void SetFeature(bool b)
Definition: editattr.hxx:111
sal_Int32 nEnd
Definition: editattr.hxx:71
EditCharAttrib(const SfxPoolItem &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
Definition: editattr.cxx:49
virtual ~EditCharAttrib()
Definition: editattr.cxx:58
virtual void SetFont(SvxFont &rFont, OutputDevice *pOutDev)
Definition: editattr.cxx:62
const SfxPoolItem * pItem
Definition: editattr.hxx:68
void SetOverlineColor()
void SetTextLineColor()
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
sal_uInt16 Which() const
constexpr tools::Long Width() const
SvxColorItem item describes a color.
Definition: colritem.hxx:32
This item stores a field (SvxFieldData).
Definition: flditem.hxx:70
This item describes a Font.
Definition: fontitem.hxx:30
FontFamily GetFamily() const
Definition: fontitem.hxx:81
FontPitch GetPitch() const
Definition: fontitem.hxx:90
rtl_TextEncoding GetCharSet() const
Definition: fontitem.hxx:99
const OUString & GetFamilyName() const
Definition: fontitem.hxx:63
void SetPropr(const sal_uInt8 nNewPropr)
Definition: svxfont.hxx:58
void SetNonAutoEscapement(short nNewEsc, const OutputDevice *pOutDev=nullptr)
Definition: svxfont.cxx:69
void SetCaseMap(const SvxCaseMap eNew)
Definition: svxfont.hxx:63
void SetFontSize(const Size &)
void SetOutline(bool bOutline)
void SetWordLineMode(bool bWordLine)
void SetPitch(FontPitch ePitch)
void SetTransparent(bool bTransparent)
void SetFillColor(const Color &)
void SetColor(const Color &)
void SetItalic(FontItalic)
void SetWeight(FontWeight)
void SetFamily(FontFamily)
void SetUnderline(FontLineStyle)
void SetCharSet(rtl_TextEncoding)
const Size & GetFontSize() const
void SetKerning(FontKerning nKerning)
void SetFixKerning(const short nSpacing)
void SetOverline(FontLineStyle)
void SetFamilyName(const OUString &rFamilyName)
void SetLanguage(LanguageType)
void SetShadow(bool bShadow)
void SetRelief(FontRelief)
void SetEmphasisMark(FontEmphasisMark)
void SetStrikeout(FontStrikeout)
constexpr sal_uInt16 EE_FEATURE_END(EE_FEATURE_FIELD+0)
constexpr TypedWhichId< SvxContourItem > EE_CHAR_OUTLINE(EE_CHAR_START+8)
constexpr TypedWhichId< SvxKerningItem > EE_CHAR_KERNING(EE_CHAR_START+12)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxAutoKernItem > EE_CHAR_PAIRKERNING(EE_CHAR_START+11)
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CTL(EE_CHAR_START+16)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr sal_uInt16 EE_ITEMS_END(EE_FEATURE_END)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CTL(EE_CHAR_START+22)
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
constexpr TypedWhichId< SfxGrabBagItem > EE_CHAR_GRABBAG(EE_CHAR_START+31)
constexpr TypedWhichId< SvxEmphasisMarkItem > EE_CHAR_EMPHASISMARK(EE_CHAR_START+25)
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
constexpr sal_uInt16 EE_FEATURE_START(EE_CHAR_END+1)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CTL(EE_CHAR_START+20)
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT_CJK(EE_CHAR_START+21)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CJK(EE_CHAR_START+15)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CJK(EE_CHAR_START+23)
constexpr TypedWhichId< SvxCaseMapItem > EE_CHAR_CASEMAP(EE_CHAR_START+30)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_BKGCOLOR(EE_CHAR_START+32)
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC_CTL(EE_CHAR_START+24)
constexpr TypedWhichId< SvxCharScaleWidthItem > EE_CHAR_FONTWIDTH(EE_CHAR_START+3)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr sal_uInt16 EE_ITEMS_START(OWN_ATTR_VALUE_END+1)
constexpr TypedWhichId< SvxWordLineModeItem > EE_CHAR_WLM(EE_CHAR_START+13)
constexpr TypedWhichId< SvxCharReliefItem > EE_CHAR_RELIEF(EE_CHAR_START+26)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CJK(EE_CHAR_START+19)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
struct _xmlTextWriter * xmlTextWriterPtr
sal_uInt16 nPos
const SfxPoolItem * GetItem(const SwTextAttr &rAttr, sal_uInt16 nWhich)
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
sal_Int16 GetCaseMap(sal_Int32 nToken)
const char GetValue[]
unsigned char sal_uInt8