LibreOffice Module sw (master)  1
atrstck.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 "atrhndl.hxx"
21 #include <svl/itemiter.hxx>
22 #include <vcl/outdev.hxx>
23 #include <editeng/cmapitem.hxx>
24 #include <editeng/colritem.hxx>
25 #include <editeng/contouritem.hxx>
28 #include <editeng/fontitem.hxx>
29 #include <editeng/fhgtitem.hxx>
30 #include <editeng/kernitem.hxx>
32 #include <editeng/langitem.hxx>
33 #include <editeng/postitem.hxx>
34 #include <editeng/shdditem.hxx>
35 #include <editeng/udlnitem.hxx>
36 #include <editeng/wghtitem.hxx>
37 #include <editeng/wrlmitem.hxx>
38 #include <editeng/autokernitem.hxx>
39 #include <editeng/blinkitem.hxx>
43 #include <editeng/twolinesitem.hxx>
45 #include <editeng/boxitem.hxx>
46 #include <editeng/shaditem.hxx>
47 #include <viewopt.hxx>
48 #include <charfmt.hxx>
49 #include <fchrfmt.hxx>
50 #include <fmtautofmt.hxx>
51 #include <editeng/brushitem.hxx>
52 #include <fmtinfmt.hxx>
53 #include <txtinet.hxx>
55 #include <viewsh.hxx>
56 
70 {
71  0, // // 0
72  1, // RES_CHRATR_CASEMAP = RES_CHRATR_BEGIN // 1
73  0, // RES_CHRATR_CHARSETCOLOR, // 2
74  2, // RES_CHRATR_COLOR, // 3
75  3, // RES_CHRATR_CONTOUR, // 4
76  4, // RES_CHRATR_CROSSEDOUT, // 5
77  5, // RES_CHRATR_ESCAPEMENT, // 6
78  6, // RES_CHRATR_FONT, // 7
79  7, // RES_CHRATR_FONTSIZE, // 8
80  8, // RES_CHRATR_KERNING, // 9
81  9, // RES_CHRATR_LANGUAGE, // 10
82  10, // RES_CHRATR_POSTURE, // 11
83  0, // RES_CHRATR_UNUSED1, // 12
84  11, // RES_CHRATR_SHADOWED, // 13
85  12, // RES_CHRATR_UNDERLINE, // 14
86  13, // RES_CHRATR_WEIGHT, // 15
87  14, // RES_CHRATR_WORDLINEMODE, // 16
88  15, // RES_CHRATR_AUTOKERN, // 17
89  16, // RES_CHRATR_BLINK, // 18
90  17, // RES_CHRATR_NOHYPHEN, // 19
91  0, // RES_CHRATR_UNUSED2, // 20
92  18, // RES_CHRATR_BACKGROUND, // 21
93  19, // RES_CHRATR_CJK_FONT, // 22
94  20, // RES_CHRATR_CJK_FONTSIZE, // 23
95  21, // RES_CHRATR_CJK_LANGUAGE, // 24
96  22, // RES_CHRATR_CJK_POSTURE, // 25
97  23, // RES_CHRATR_CJK_WEIGHT, // 26
98  24, // RES_CHRATR_CTL_FONT, // 27
99  25, // RES_CHRATR_CTL_FONTSIZE, // 28
100  26, // RES_CHRATR_CTL_LANGUAGE, // 29
101  27, // RES_CHRATR_CTL_POSTURE, // 30
102  28, // RES_CHRATR_CTL_WEIGHT, // 31
103  29, // RES_CHRATR_ROTATE, // 32
104  30, // RES_CHRATR_EMPHASIS_MARK, // 33
105  31, // RES_CHRATR_TWO_LINES, // 34
106  32, // RES_CHRATR_SCALEW, // 35
107  33, // RES_CHRATR_RELIEF, // 36
108  34, // RES_CHRATR_HIDDEN, // 37
109  35, // RES_CHRATR_OVERLINE, // 38
110  0, // RES_CHRATR_RSID, // 39
111  36, // RES_CHRATR_BOX, // 40
112  37, // RES_CHRATR_SHADOW, // 41
113  38, // RES_CHRATR_HIGHLIGHT, // 42
114  0, // RES_CHRATR_GRABBAG, // 43
115  0, // RES_CHRATR_BIDIRTL, // 44
116  0, // RES_CHRATR_IDCTHINT, // 45
117  39, // RES_TXTATR_REFMARK, // 46
118  40, // RES_TXTATR_TOXMARK, // 47
119  41, // RES_TXTATR_META, // 48
120  41, // RES_TXTATR_METAFIELD, // 49
121  0, // RES_TXTATR_AUTOFMT, // 50
122  0, // RES_TXTATR_INETFMT // 51
123  0, // RES_TXTATR_CHARFMT, // 52
124  42, // RES_TXTATR_CJK_RUBY, // 53
125  0, // RES_TXTATR_UNKNOWN_CONTAINER, // 54
126  43, // RES_TXTATR_INPUTFIELD // 55
127 };
128 
129 namespace CharFormat
130 {
131 
133 const SfxItemSet* GetItemSet( const SfxPoolItem& rAttr )
134 {
135  const SfxItemSet* pSet = nullptr;
136 
137  if ( RES_TXTATR_AUTOFMT == rAttr.Which() )
138  {
139  pSet = static_cast<const SwFormatAutoFormat&>(rAttr).GetStyleHandle().get();
140  }
141  else
142  {
143  // Get the attributes from the template
144  const SwCharFormat* pFormat = RES_TXTATR_INETFMT == rAttr.Which() ?
145  static_cast<const SwFormatINetFormat&>(rAttr).GetTextINetFormat()->GetCharFormat() :
146  static_cast<const SwFormatCharFormat&>(rAttr).GetCharFormat();
147  if( pFormat )
148  {
149  pSet = &pFormat->GetAttrSet();
150  }
151  }
152 
153  return pSet;
154 }
155 
157 const SfxPoolItem* GetItem( const SwTextAttr& rAttr, sal_uInt16 nWhich )
158 {
159  if ( RES_TXTATR_INETFMT == rAttr.Which() ||
160  RES_TXTATR_CHARFMT == rAttr.Which() ||
161  RES_TXTATR_AUTOFMT == rAttr.Which() )
162  {
163  const SfxItemSet* pSet = CharFormat::GetItemSet( rAttr.GetAttr() );
164  if ( !pSet ) return nullptr;
165 
166  bool bInParent = RES_TXTATR_AUTOFMT != rAttr.Which();
167  const SfxPoolItem* pItem;
168  bool bRet = SfxItemState::SET == pSet->GetItemState( nWhich, bInParent, &pItem );
169 
170  return bRet ? pItem : nullptr;
171  }
172 
173  return ( nWhich == rAttr.Which() ) ? &rAttr.GetAttr() : nullptr;
174 }
175 
177 bool IsItemIncluded( const sal_uInt16 nWhich, const SwTextAttr *pAttr )
178 {
179  bool bRet = false;
180 
181  const SfxItemSet* pItemSet = CharFormat::GetItemSet( pAttr->GetAttr() );
182  if ( pItemSet )
183  bRet = SfxItemState::SET == pItemSet->GetItemState( nWhich );
184 
185  return bRet;
186 }
187 }
188 
196 static bool lcl_ChgHyperLinkColor( const SwTextAttr& rAttr,
197  const SfxPoolItem& rItem,
198  const SwViewShell* pShell,
199  Color* pColor )
200 {
201  if ( !pShell ||
202  RES_TXTATR_INETFMT != rAttr.Which() ||
203  RES_CHRATR_COLOR != rItem.Which() )
204  return false;
205 
206  // #i15455#
207  // 1. case:
208  // We do not want to show visited links:
209  // (printing, pdf export, page preview)
210 
211  SwTextINetFormat & rINetAttr(const_cast<SwTextINetFormat&>(
212  static_txtattr_cast<SwTextINetFormat const&>(rAttr)));
213  if ( pShell->GetOut()->GetOutDevType() == OUTDEV_PRINTER ||
214  pShell->GetViewOptions()->IsPDFExport() ||
215  pShell->GetViewOptions()->IsPagePreview() )
216  {
217  if (rINetAttr.IsVisited())
218  {
219  if ( pColor )
220  {
221  // take color from character format 'unvisited link'
222  rINetAttr.SetVisited(false);
223  const SwCharFormat* pTmpFormat = rINetAttr.GetCharFormat();
224  const SfxPoolItem* pItem;
225  if (SfxItemState::SET == pTmpFormat->GetItemState(RES_CHRATR_COLOR, true, &pItem))
226  *pColor = static_cast<const SvxColorItem*>(pItem)->GetValue();
227  rINetAttr.SetVisited(true);
228  }
229  return true;
230  }
231 
232  return false;
233  }
234 
235  // 2. case:
236  // We do not want to apply the color set in the hyperlink
237  // attribute, instead we take the colors from the view options:
238 
239  if ( pShell->GetWin() &&
240  (
241  (rINetAttr.IsVisited() && SwViewOption::IsVisitedLinks()) ||
242  (!rINetAttr.IsVisited() && SwViewOption::IsLinks())
243  )
244  )
245  {
246  if ( pColor )
247  {
248  if (rINetAttr.IsVisited())
249  {
250  // take color from view option 'visited link color'
252  }
253  else
254  {
255  // take color from view option 'unvisited link color'
256  *pColor = SwViewOption::GetLinksColor();
257  }
258  }
259  return true;
260  }
261 
262  return false;
263 }
264 
266  : m_pIDocumentSettingAccess(nullptr)
267  , m_pShell(nullptr)
268  , m_bVertLayout(false)
269 {
270  memset( m_pDefaultArray, 0, NUM_DEFAULT_VALUES * sizeof(SfxPoolItem*) );
271 }
272 
274 {
275 }
276 
277 void SwAttrHandler::Init( const SwAttrSet& rAttrSet,
278  const IDocumentSettingAccess& rIDocumentSettingAcces )
279 {
280  m_pIDocumentSettingAccess = &rIDocumentSettingAcces;
281  m_pShell = nullptr;
282 
283  for ( sal_uInt16 i = RES_CHRATR_BEGIN; i < RES_CHRATR_END; i++ )
284  m_pDefaultArray[ StackPos[ i ] ] = &rAttrSet.Get( i );
285 }
286 
287 void SwAttrHandler::Init( const SfxPoolItem** pPoolItem, const SwAttrSet* pAS,
288  const IDocumentSettingAccess& rIDocumentSettingAcces,
289  const SwViewShell* pSh,
290  SwFont& rFnt, bool bVL )
291 {
292  // initialize default array
293  memcpy( m_pDefaultArray, pPoolItem,
294  NUM_DEFAULT_VALUES * sizeof(SfxPoolItem*) );
295 
296  m_pIDocumentSettingAccess = &rIDocumentSettingAcces;
297  m_pShell = pSh;
298 
299  // do we have to apply additional paragraph attributes?
300  m_bVertLayout = bVL;
301 
302  if ( pAS && pAS->Count() )
303  {
304  SfxItemIter aIter( *pAS );
305  sal_uInt16 nWhich;
306  const SfxPoolItem* pItem = aIter.GetCurItem();
307  do
308  {
309  nWhich = pItem->Which();
310  if (isCHRATR(nWhich))
311  {
312  m_pDefaultArray[ StackPos[ nWhich ] ] = pItem;
313  FontChg( *pItem, rFnt, true );
314  }
315 
316  pItem = aIter.NextItem();
317  } while (pItem);
318  }
319 
320  // It is possible, that Init is called more than once, e.g., in a
321  // SwTextFrame::FormatOnceMore situation or (since sw_redlinehide)
322  // from SwAttrIter::Seek(); in the latter case SwTextSizeInfo::m_pFnt
323  // is an alias of m_pFnt so it must not be deleted!
324  if (m_pFnt)
325  {
326  *m_pFnt = rFnt;
327  }
328  else
329  {
330  m_pFnt.reset(new SwFont(rFnt));
331  }
332 }
333 
335 {
336  for (auto& i : m_aAttrStack)
337  i.clear();
338 }
339 
340 void SwAttrHandler::PushAndChg( const SwTextAttr& rAttr, SwFont& rFnt )
341 {
342  // these special attributes in fact represent a collection of attributes
343  // they have to be pushed to each stack they belong to
344  if ( RES_TXTATR_INETFMT == rAttr.Which() ||
345  RES_TXTATR_CHARFMT == rAttr.Which() ||
346  RES_TXTATR_AUTOFMT == rAttr.Which() )
347  {
348  const SfxItemSet* pSet = CharFormat::GetItemSet( rAttr.GetAttr() );
349  if ( !pSet ) return;
350 
351  for ( sal_uInt16 i = RES_CHRATR_BEGIN; i < RES_CHRATR_END; i++)
352  {
353  const SfxPoolItem* pItem;
354  bool bRet = SfxItemState::SET == pSet->GetItemState( i, rAttr.Which() != RES_TXTATR_AUTOFMT, &pItem );
355 
356  if ( bRet )
357  {
358  // we push rAttr onto the appropriate stack
359  if ( Push( rAttr, *pItem ) )
360  {
361  // we let pItem change rFnt
362  Color aColor;
363  if (lcl_ChgHyperLinkColor(rAttr, *pItem, m_pShell, &aColor))
364  {
365  SvxColorItem aItemNext( aColor, RES_CHRATR_COLOR );
366  FontChg( aItemNext, rFnt, true );
367  }
368  else
369  FontChg( *pItem, rFnt, true );
370  }
371  }
372  }
373  }
374  // this is the usual case, we have a basic attribute, push it onto the
375  // stack and change the font
376  else
377  {
378  if ( Push( rAttr, rAttr.GetAttr() ) )
379  // we let pItem change rFnt
380  FontChg( rAttr.GetAttr(), rFnt, true );
381  }
382 }
383 
384 const SwTextAttr* SwAttrHandler::GetTop(sal_uInt16 nStack)
385 {
386  return m_aAttrStack[nStack].empty() ? nullptr : m_aAttrStack[nStack].back();
387 }
388 
389 bool SwAttrHandler::Push( const SwTextAttr& rAttr, const SfxPoolItem& rItem )
390 {
391  OSL_ENSURE( rItem.Which() < RES_TXTATR_WITHEND_END,
392  "I do not want this attribute, nWhich >= RES_TXTATR_WITHEND_END" );
393 
394  // robust
395  if ( RES_TXTATR_WITHEND_END <= rItem.Which() )
396  return false;
397 
398  const sal_uInt16 nStack = StackPos[ rItem.Which() ];
399 
400  // attributes originating from redlining have highest priority
401  // second priority are hyperlink attributes, which have a color replacement
402  const SwTextAttr* pTopAttr = GetTop(nStack);
403  if ( !pTopAttr
404  || rAttr.IsPriorityAttr()
405  || ( !pTopAttr->IsPriorityAttr()
406  && !lcl_ChgHyperLinkColor(*pTopAttr, rItem, m_pShell, nullptr)))
407  {
408  m_aAttrStack[nStack].push_back(&rAttr);
409  return true;
410  }
411 
412  const auto it = m_aAttrStack[nStack].end() - 1;
413  m_aAttrStack[nStack].insert(it, &rAttr);
414  return false;
415 }
416 
417 void SwAttrHandler::RemoveFromStack(sal_uInt16 nWhich, const SwTextAttr& rAttr)
418 {
419  auto& rStack = m_aAttrStack[StackPos[nWhich]];
420  const auto it = std::find(rStack.begin(), rStack.end(), &rAttr);
421  if (it != rStack.end())
422  rStack.erase(it);
423 }
424 
425 void SwAttrHandler::PopAndChg( const SwTextAttr& rAttr, SwFont& rFnt )
426 {
427  if ( RES_TXTATR_WITHEND_END <= rAttr.Which() )
428  return; // robust
429 
430  // these special attributes in fact represent a collection of attributes
431  // they have to be removed from each stack they belong to
432  if ( RES_TXTATR_INETFMT == rAttr.Which() ||
433  RES_TXTATR_CHARFMT == rAttr.Which() ||
434  RES_TXTATR_AUTOFMT == rAttr.Which() )
435  {
436  const SfxItemSet* pSet = CharFormat::GetItemSet( rAttr.GetAttr() );
437  if ( !pSet ) return;
438 
439  for ( sal_uInt16 i = RES_CHRATR_BEGIN; i < RES_CHRATR_END; i++)
440  {
441  const SfxPoolItem* pItem;
442  bool bRet = SfxItemState::SET == pSet->GetItemState( i, RES_TXTATR_AUTOFMT != rAttr.Which(), &pItem );
443  if ( bRet )
444  {
445  // we remove rAttr from the appropriate stack
446  RemoveFromStack(i, rAttr);
447  // reset font according to attribute on top of stack
448  // or default value
449  ActivateTop( rFnt, i );
450  }
451  }
452  }
453  // this is the usual case, we have a basic attribute, remove it from the
454  // stack and reset the font
455  else
456  {
457  RemoveFromStack(rAttr.Which(), rAttr);
458  // reset font according to attribute on top of stack
459  // or default value
460  ActivateTop( rFnt, rAttr.Which() );
461  }
462 }
463 
465 void SwAttrHandler::Pop( const SwTextAttr& rAttr )
466 {
467  OSL_ENSURE( rAttr.Which() < RES_TXTATR_WITHEND_END,
468  "I do not have this attribute, nWhich >= RES_TXTATR_WITHEND_END" );
469 
470  if ( rAttr.Which() < RES_TXTATR_WITHEND_END )
471  {
472  RemoveFromStack(rAttr.Which(), rAttr);
473  }
474 }
475 
476 void SwAttrHandler::ActivateTop( SwFont& rFnt, const sal_uInt16 nAttr )
477 {
478  OSL_ENSURE( nAttr < RES_TXTATR_WITHEND_END,
479  "I cannot activate this attribute, nWhich >= RES_TXTATR_WITHEND_END" );
480 
481  const sal_uInt16 nStackPos = StackPos[ nAttr ];
482  const SwTextAttr* pTopAt = GetTop(nStackPos);
483  if ( pTopAt )
484  {
485  const SfxPoolItem* pItemNext(nullptr);
486 
487  // check if top attribute is collection of attributes
488  if ( RES_TXTATR_INETFMT == pTopAt->Which() ||
489  RES_TXTATR_CHARFMT == pTopAt->Which() ||
490  RES_TXTATR_AUTOFMT == pTopAt->Which() )
491  {
492  const SfxItemSet* pSet = CharFormat::GetItemSet( pTopAt->GetAttr() );
493  if (pSet)
494  pSet->GetItemState( nAttr, RES_TXTATR_AUTOFMT != pTopAt->Which(), &pItemNext );
495  }
496 
497  if (pItemNext)
498  {
499  Color aColor;
500  if (lcl_ChgHyperLinkColor(*pTopAt, *pItemNext, m_pShell, &aColor))
501  {
502  SvxColorItem aItemNext( aColor, RES_CHRATR_COLOR );
503  FontChg( aItemNext, rFnt, false );
504  }
505  else
506  FontChg( *pItemNext, rFnt, false );
507  }
508  else
509  FontChg( pTopAt->GetAttr(), rFnt, false );
510  }
511 
512  // default value has to be set, we only have default values for char attribs
513  else if ( nStackPos < NUM_DEFAULT_VALUES )
514  FontChg( *m_pDefaultArray[ nStackPos ], rFnt, false );
515  else if ( RES_TXTATR_REFMARK == nAttr )
516  rFnt.GetRef()--;
517  else if ( RES_TXTATR_TOXMARK == nAttr )
518  rFnt.GetTox()--;
519  else if ( (RES_TXTATR_META == nAttr) || (RES_TXTATR_METAFIELD == nAttr) )
520  {
521  rFnt.GetMeta()--;
522  }
523  else if ( RES_TXTATR_CJK_RUBY == nAttr )
524  {
525  // ruby stack has no more attributes
526  // check, if a rotation attribute has to be applied
527  const sal_uInt16 nTwoLineStack = StackPos[ RES_CHRATR_TWO_LINES ];
528  bool bTwoLineAct = false;
529  const SwTextAttr* pTwoLineAttr = GetTop(nTwoLineStack);
530 
531  if ( pTwoLineAttr )
532  {
533  const SfxPoolItem* pTwoLineItem = CharFormat::GetItem( *pTwoLineAttr, RES_CHRATR_TWO_LINES );
534  bTwoLineAct = static_cast<const SvxTwoLinesItem*>(pTwoLineItem)->GetValue();
535  }
536  else
537  bTwoLineAct =
538  static_cast<const SvxTwoLinesItem*>(m_pDefaultArray[ nTwoLineStack ])->GetValue();
539 
540  if ( bTwoLineAct )
541  return;
542 
543  // eventually, a rotate attribute has to be activated
544  const sal_uInt16 nRotateStack = StackPos[ RES_CHRATR_ROTATE ];
545  const SwTextAttr* pRotateAttr = GetTop(nRotateStack);
546 
547  if ( pRotateAttr )
548  {
549  const SfxPoolItem* pRotateItem = CharFormat::GetItem( *pRotateAttr, RES_CHRATR_ROTATE );
550  rFnt.SetVertical( static_cast<const SvxCharRotateItem*>(pRotateItem)->GetValue(),
551  m_bVertLayout );
552  }
553  else
554  rFnt.SetVertical(
555  static_cast<const SvxCharRotateItem*>(m_pDefaultArray[ nRotateStack ])->GetValue(),
557  );
558  }
559  else if ( RES_TXTATR_INPUTFIELD == nAttr )
560  rFnt.GetInputField()--;
561 }
562 
568 void SwAttrHandler::FontChg(const SfxPoolItem& rItem, SwFont& rFnt, bool bPush )
569 {
570  switch ( rItem.Which() )
571  {
572  case RES_CHRATR_CASEMAP :
573  rFnt.SetCaseMap( static_cast<const SvxCaseMapItem&>(rItem).GetCaseMap() );
574  break;
575  case RES_CHRATR_COLOR :
576  rFnt.SetColor( static_cast<const SvxColorItem&>(rItem).GetValue() );
577  break;
578  case RES_CHRATR_CONTOUR :
579  rFnt.SetOutline( static_cast<const SvxContourItem&>(rItem).GetValue() );
580  break;
581  case RES_CHRATR_CROSSEDOUT :
582  rFnt.SetStrikeout( static_cast<const SvxCrossedOutItem&>(rItem).GetStrikeout() );
583  break;
584  case RES_CHRATR_ESCAPEMENT :
585  rFnt.SetEscapement( static_cast<const SvxEscapementItem&>(rItem).GetEsc() );
586  rFnt.SetProportion( static_cast<const SvxEscapementItem&>(rItem).GetProportionalHeight() );
587  break;
588  case RES_CHRATR_FONT :
589  rFnt.SetName( static_cast<const SvxFontItem&>(rItem).GetFamilyName(), SwFontScript::Latin );
590  rFnt.SetStyleName( static_cast<const SvxFontItem&>(rItem).GetStyleName(), SwFontScript::Latin );
591  rFnt.SetFamily( static_cast<const SvxFontItem&>(rItem).GetFamily(), SwFontScript::Latin );
592  rFnt.SetPitch( static_cast<const SvxFontItem&>(rItem).GetPitch(), SwFontScript::Latin );
593  rFnt.SetCharSet( static_cast<const SvxFontItem&>(rItem).GetCharSet(), SwFontScript::Latin );
594  break;
595  case RES_CHRATR_FONTSIZE :
596  rFnt.SetSize(Size(0,static_cast<const SvxFontHeightItem&>(rItem).GetHeight() ), SwFontScript::Latin );
597  break;
598  case RES_CHRATR_KERNING :
599  rFnt.SetFixKerning( static_cast<const SvxKerningItem&>(rItem).GetValue() );
600  break;
601  case RES_CHRATR_LANGUAGE :
602  rFnt.SetLanguage( static_cast<const SvxLanguageItem&>(rItem).GetLanguage(), SwFontScript::Latin );
603  break;
604  case RES_CHRATR_POSTURE :
605  rFnt.SetItalic( static_cast<const SvxPostureItem&>(rItem).GetPosture(), SwFontScript::Latin );
606  break;
607  case RES_CHRATR_SHADOWED :
608  rFnt.SetShadow( static_cast<const SvxShadowedItem&>(rItem).GetValue() );
609  break;
610  case RES_CHRATR_UNDERLINE :
611  {
612  const sal_uInt16 nStackPos = StackPos[ RES_CHRATR_HIDDEN ];
613  const SwTextAttr* pTopAt = GetTop(nStackPos);
614 
615  const SfxPoolItem* pTmpItem = pTopAt ?
617  m_pDefaultArray[ nStackPos ];
618 
619  if ((m_pShell && !m_pShell->GetWin()) ||
620  (pTmpItem && !static_cast<const SvxCharHiddenItem*>(pTmpItem)->GetValue()) )
621  {
622  rFnt.SetUnderline( static_cast<const SvxUnderlineItem&>(rItem).GetLineStyle() );
623  rFnt.SetUnderColor( static_cast<const SvxUnderlineItem&>(rItem).GetColor() );
624  }
625  break;
626  }
627  case RES_CHRATR_BOX:
628  {
629  const SvxBoxItem& aBoxItem = static_cast<const SvxBoxItem&>(rItem);
630  rFnt.SetTopBorder( aBoxItem.GetTop() );
631  rFnt.SetBottomBorder( aBoxItem.GetBottom() );
632  rFnt.SetRightBorder( aBoxItem.GetRight() );
633  rFnt.SetLeftBorder( aBoxItem.GetLeft() );
634  rFnt.SetTopBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::TOP) );
635  rFnt.SetBottomBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::BOTTOM) );
636  rFnt.SetRightBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::RIGHT) );
637  rFnt.SetLeftBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::LEFT) );
638  break;
639  }
640  case RES_CHRATR_SHADOW:
641  {
642  const SvxShadowItem& aShadowItem = static_cast<const SvxShadowItem&>(rItem);
643  rFnt.SetShadowColor( aShadowItem.GetColor() );
644  rFnt.SetShadowWidth( aShadowItem.GetWidth() );
645  rFnt.SetShadowLocation( aShadowItem.GetLocation() );
646  break;
647  }
648  case RES_CHRATR_OVERLINE :
649  rFnt.SetOverline( static_cast<const SvxOverlineItem&>(rItem).GetLineStyle() );
650  rFnt.SetOverColor( static_cast<const SvxOverlineItem&>(rItem).GetColor() );
651  break;
652  case RES_CHRATR_WEIGHT :
653  rFnt.SetWeight( static_cast<const SvxWeightItem&>(rItem).GetWeight(), SwFontScript::Latin );
654  break;
656  rFnt.SetWordLineMode( static_cast<const SvxWordLineModeItem&>(rItem).GetValue() );
657  break;
658  case RES_CHRATR_AUTOKERN :
659  if( static_cast<const SvxAutoKernItem&>(rItem).GetValue() )
660  {
663  FontKerning::FontSpecific :
664  FontKerning::Asian );
665  }
666  else
667  rFnt.SetAutoKern( FontKerning::NONE );
668  break;
669  case RES_CHRATR_BLINK :
670  rFnt.SetBlink( static_cast<const SvxBlinkItem&>(rItem).GetValue() );
671  break;
672  case RES_CHRATR_BACKGROUND :
673  rFnt.SetBackColor(new Color( static_cast<const SvxBrushItem&>(rItem).GetColor() ) );
674  break;
675  case RES_CHRATR_HIGHLIGHT :
676  rFnt.SetHighlightColor( static_cast<const SvxBrushItem&>(rItem).GetColor() );
677  break;
678  case RES_CHRATR_CJK_FONT :
679  rFnt.SetName( static_cast<const SvxFontItem&>(rItem).GetFamilyName(), SwFontScript::CJK );
680  rFnt.SetStyleName( static_cast<const SvxFontItem&>(rItem).GetStyleName(), SwFontScript::CJK );
681  rFnt.SetFamily( static_cast<const SvxFontItem&>(rItem).GetFamily(), SwFontScript::CJK );
682  rFnt.SetPitch( static_cast<const SvxFontItem&>(rItem).GetPitch(), SwFontScript::CJK );
683  rFnt.SetCharSet( static_cast<const SvxFontItem&>(rItem).GetCharSet(), SwFontScript::CJK );
684  break;
686  rFnt.SetSize(Size( 0, static_cast<const SvxFontHeightItem&>(rItem).GetHeight()), SwFontScript::CJK);
687  break;
689  rFnt.SetLanguage( static_cast<const SvxLanguageItem&>(rItem).GetLanguage(), SwFontScript::CJK );
690  break;
692  rFnt.SetItalic( static_cast<const SvxPostureItem&>(rItem).GetPosture(), SwFontScript::CJK );
693  break;
694  case RES_CHRATR_CJK_WEIGHT :
695  rFnt.SetWeight( static_cast<const SvxWeightItem&>(rItem).GetWeight(), SwFontScript::CJK );
696  break;
697  case RES_CHRATR_CTL_FONT :
698  rFnt.SetName( static_cast<const SvxFontItem&>(rItem).GetFamilyName(), SwFontScript::CTL );
699  rFnt.SetStyleName( static_cast<const SvxFontItem&>(rItem).GetStyleName(), SwFontScript::CTL );
700  rFnt.SetFamily( static_cast<const SvxFontItem&>(rItem).GetFamily(), SwFontScript::CTL );
701  rFnt.SetPitch( static_cast<const SvxFontItem&>(rItem).GetPitch(), SwFontScript::CTL );
702  rFnt.SetCharSet( static_cast<const SvxFontItem&>(rItem).GetCharSet(), SwFontScript::CTL );
703  break;
705  rFnt.SetSize(Size(0, static_cast<const SvxFontHeightItem&>(rItem).GetHeight() ), SwFontScript::CTL);
706  break;
708  rFnt.SetLanguage( static_cast<const SvxLanguageItem&>(rItem).GetLanguage(), SwFontScript::CTL );
709  break;
711  rFnt.SetItalic( static_cast<const SvxPostureItem&>(rItem).GetPosture(), SwFontScript::CTL );
712  break;
713  case RES_CHRATR_CTL_WEIGHT :
714  rFnt.SetWeight( static_cast<const SvxWeightItem&>(rItem).GetWeight(), SwFontScript::CTL );
715  break;
717  rFnt.SetEmphasisMark(
718  static_cast<const SvxEmphasisMarkItem&>(rItem).GetEmphasisMark()
719  );
720  break;
721  case RES_CHRATR_SCALEW :
722  rFnt.SetPropWidth( static_cast<const SvxCharScaleWidthItem&>(rItem).GetValue() );
723  break;
724  case RES_CHRATR_RELIEF :
725  rFnt.SetRelief( static_cast<const SvxCharReliefItem&>(rItem).GetValue() );
726  break;
727  case RES_CHRATR_HIDDEN :
728  if (m_pShell && m_pShell->GetWin())
729  {
730  if ( static_cast<const SvxCharHiddenItem&>(rItem).GetValue() )
732  else
734  }
735  break;
736  case RES_CHRATR_ROTATE :
737  {
738  // rotate attribute is applied, when:
739  // 1. ruby stack is empty and
740  // 2. top of two line stack ( or default attribute )is an
741  // deactivated two line attribute
742  const bool bRuby =
743  0 != m_aAttrStack[ StackPos[ RES_TXTATR_CJK_RUBY ] ].size();
744 
745  if ( bRuby )
746  break;
747 
748  const sal_uInt16 nTwoLineStack = StackPos[ RES_CHRATR_TWO_LINES ];
749  bool bTwoLineAct = false;
750  const SwTextAttr* pTwoLineAttr = GetTop(nTwoLineStack);
751 
752  if ( pTwoLineAttr )
753  {
754  const SfxPoolItem* pTwoLineItem = CharFormat::GetItem( *pTwoLineAttr, RES_CHRATR_TWO_LINES );
755  bTwoLineAct = static_cast<const SvxTwoLinesItem*>(pTwoLineItem)->GetValue();
756  }
757  else
758  bTwoLineAct =
759  static_cast<const SvxTwoLinesItem*>(m_pDefaultArray[ nTwoLineStack ])->GetValue();
760 
761  if ( !bTwoLineAct )
762  rFnt.SetVertical( static_cast<const SvxCharRotateItem&>(rItem).GetValue(),
763  m_bVertLayout );
764 
765  break;
766  }
767  case RES_CHRATR_TWO_LINES :
768  {
769  bool bRuby = 0 !=
771 
772  // two line is activated, if
773  // 1. no ruby attribute is set and
774  // 2. attribute is active
775  if ( !bRuby && static_cast<const SvxTwoLinesItem&>(rItem).GetValue() )
776  {
777  rFnt.SetVertical( 0, m_bVertLayout );
778  break;
779  }
780 
781  // a deactivating two line attribute is on top of stack,
782  // check if rotate attribute has to be enabled
783  if ( bRuby )
784  break;
785 
786  const sal_uInt16 nRotateStack = StackPos[ RES_CHRATR_ROTATE ];
787  const SwTextAttr* pRotateAttr = GetTop(nRotateStack);
788 
789  if ( pRotateAttr )
790  {
791  const SfxPoolItem* pRotateItem = CharFormat::GetItem( *pRotateAttr, RES_CHRATR_ROTATE );
792  rFnt.SetVertical( static_cast<const SvxCharRotateItem*>(pRotateItem)->GetValue(),
793  m_bVertLayout );
794  }
795  else
796  rFnt.SetVertical(
797  static_cast<const SvxCharRotateItem*>(m_pDefaultArray[ nRotateStack ])->GetValue(),
799  );
800  break;
801  }
802  case RES_TXTATR_CJK_RUBY :
803  rFnt.SetVertical( 0, m_bVertLayout );
804  break;
805  case RES_TXTATR_REFMARK :
806  if ( bPush )
807  rFnt.GetRef()++;
808  else
809  rFnt.GetRef()--;
810  break;
811  case RES_TXTATR_TOXMARK :
812  if ( bPush )
813  rFnt.GetTox()++;
814  else
815  rFnt.GetTox()--;
816  break;
817  case RES_TXTATR_META:
819  if ( bPush )
820  rFnt.GetMeta()++;
821  else
822  rFnt.GetMeta()--;
823  break;
824  case RES_TXTATR_INPUTFIELD :
825  if ( bPush )
826  rFnt.GetInputField()++;
827  else
828  rFnt.GetInputField()--;
829  break;
830  }
831 }
832 
835  sal_uInt16& nAscent, sal_uInt16& nHeight ) const
836 {
837  OSL_ENSURE(m_pFnt, "No font available for GetDefaultAscentAndHeight");
838 
839  if (m_pFnt)
840  {
841  SwFont aFont( *m_pFnt );
842  nHeight = aFont.GetHeight( pShell, rOut );
843  nAscent = aFont.GetAscent( pShell, rOut );
844  }
845 }
846 
847 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetLeftBorderDist(const sal_uInt16 nLeftDist)
Definition: swfont.hxx:856
vcl::RenderContext * GetOut() const
Definition: viewsh.hxx:341
OutDevType GetOutDevType() const
#define RES_CHRATR_WEIGHT
Definition: hintids.hxx:84
SwCharFormat * GetCharFormat()
Definition: txtatr2.cxx:113
bool IsPagePreview() const
Definition: viewopt.hxx:596
#define RES_CHRATR_CJK_LANGUAGE
Definition: hintids.hxx:93
void Pop(const SwTextAttr &rAttr)
Only used during redlining.
Definition: atrstck.cxx:465
static bool IsVisitedLinks()
Definition: viewopt.hxx:631
bool IsPriorityAttr() const
Definition: txatbase.hxx:97
void SetWordLineMode(const bool bWordLineMode)
Definition: swfont.hxx:671
#define RES_CHRATR_FONTSIZE
Definition: hintids.hxx:77
bool isCHRATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:343
#define RES_CHRATR_LANGUAGE
Definition: hintids.hxx:79
#define RES_TXTATR_CJK_RUBY
Definition: hintids.hxx:144
#define RES_CHRATR_RELIEF
Definition: hintids.hxx:105
void PopAndChg(const SwTextAttr &rAttr, SwFont &rFnt)
Definition: atrstck.cxx:425
#define RES_TXTATR_METAFIELD
Definition: hintids.hxx:140
std::string GetValue
#define RES_CHRATR_CJK_POSTURE
Definition: hintids.hxx:94
void FontChg(const SfxPoolItem &rItem, SwFont &rFnt, bool bPush)
When popping an attribute from the stack, the top more remaining attribute in the stack becomes valid...
Definition: atrstck.cxx:568
const SfxPoolItem * GetItem(const SwTextAttr &rAttr, sal_uInt16 nWhich)
Extracts pool item of type nWhich from rAttr.
Definition: atrstck.cxx:157
#define RES_CHRATR_WORDLINEMODE
Definition: hintids.hxx:85
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
Definition: langhelper.cxx:402
static Color & GetLinksColor()
Definition: viewopt.cxx:393
void SetBackColor(Color *pNewColor)
Definition: swfont.cxx:68
void SetEmphasisMark(const FontEmphasisMark eValue)
Definition: swfont.hxx:685
#define RES_CHRATR_CJK_WEIGHT
Definition: hintids.hxx:95
sal_uInt16 GetDistance(SvxBoxItemLine nLine) const
#define RES_CHRATR_FONT
Definition: hintids.hxx:76
bool IsVisited() const
Definition: txtinet.hxx:55
#define RES_CHRATR_BLINK
Definition: hintids.hxx:87
const SfxPoolItem * m_pDefaultArray[NUM_DEFAULT_VALUES]
Definition: atrhndl.hxx:44
#define RES_CHRATR_CJK_FONT
Definition: hintids.hxx:91
#define RES_CHRATR_CJK_FONTSIZE
Definition: hintids.hxx:92
#define RES_TXTATR_CHARFMT
Definition: hintids.hxx:143
sal_uInt16 Which() const
Definition: txatbase.hxx:110
void SetOutline(const bool bOutline)
Definition: swfont.hxx:603
const editeng::SvxBorderLine * GetRight() const
void SetPropWidth(const sal_uInt16 nNew)
Definition: swfont.hxx:693
sal_uInt8 & GetRef()
Definition: swfont.hxx:252
void SetBottomBorderDist(const sal_uInt16 nBottomDist)
Definition: swfont.hxx:842
void SetPitch(const FontPitch ePitch, const SwFontScript nWhich)
Definition: swfont.hxx:504
#define RES_CHRATR_TWO_LINES
Definition: hintids.hxx:103
#define NUM_DEFAULT_VALUES
Definition: swfntcch.hxx:22
void SetColor(const Color &rColor)
Definition: swfont.hxx:414
void SetShadow(const bool bShadow)
Definition: swfont.hxx:618
#define RES_TXTATR_META
Definition: hintids.hxx:139
#define RES_CHRATR_END
Definition: hintids.hxx:115
const SfxPoolItem * NextItem()
SvxShadowLocation GetLocation() const
bool m_bVertLayout
Definition: atrhndl.hxx:52
#define RES_CHRATR_CTL_FONTSIZE
Definition: hintids.hxx:97
sal_uInt16 GetAscent(SwViewShell const *pSh, const OutputDevice &rOut)
Definition: swfont.hxx:326
static Color & GetVisitedLinksColor()
Definition: viewopt.cxx:398
#define RES_TXTATR_WITHEND_END
Definition: hintids.hxx:147
void SetShadowColor(const Color &rColor)
Definition: swfont.hxx:928
void SetUnderline(const FontLineStyle eUnderline)
Definition: swfont.hxx:545
void SetShadowLocation(const SvxShadowLocation aLocation)
Definition: swfont.hxx:942
std::unique_ptr< SwFont > m_pFnt
Definition: atrhndl.hxx:50
#define RES_CHRATR_CASEMAP
Definition: hintids.hxx:70
void SetStrikeout(const FontStrikeout eStrikeout)
Definition: swfont.hxx:575
void SetLeftBorder(const editeng::SvxBorderLine *pLeftBorder)
Definition: swfont.cxx:114
#define RES_CHRATR_COLOR
Definition: hintids.hxx:72
OUTDEV_PRINTER
const Color & GetColor() const
void SetStyleName(const OUString &rStyleName, const SwFontScript nWhich)
Definition: swfont.hxx:477
const editeng::SvxBorderLine * GetTop() const
#define RES_CHRATR_OVERLINE
Definition: hintids.hxx:107
void SetLanguage(LanguageType eNewLang, const SwFontScript nWhich)
Definition: swfont.hxx:807
void Reset()
Definition: atrstck.cxx:334
void Init(const SwAttrSet &rAttrSet, const IDocumentSettingAccess &rIDocumentSettingAccess)
Definition: atrstck.cxx:277
#define RES_CHRATR_BACKGROUND
Definition: hintids.hxx:90
void SetRightBorder(const editeng::SvxBorderLine *pRightBorder)
Definition: swfont.cxx:101
const editeng::SvxBorderLine * GetLeft() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
#define RES_CHRATR_CTL_FONT
Definition: hintids.hxx:96
void SetVisited(bool bNew)
Definition: txtinet.hxx:56
void SetUnderColor(const Color &rColor)
Definition: swfont.hxx:215
void SetRightBorderDist(const sal_uInt16 nRightDist)
Definition: swfont.hxx:849
#define RES_CHRATR_BOX
Definition: hintids.hxx:109
void SetShadowWidth(const sal_uInt16 nWidth)
Definition: swfont.hxx:935
void SetCaseMap(const SvxCaseMap eNew)
Definition: swfont.hxx:657
int i
sal_uInt16 Count() const
long GetHeight() const
Definition: swfont.hxx:283
void SetRelief(const FontRelief eNew)
Definition: swfont.hxx:711
const IDocumentSettingAccess * m_pIDocumentSettingAccess
Definition: atrhndl.hxx:45
const SfxItemSet * GetItemSet(const SfxPoolItem &rAttr)
Returns the item set associated with a character/inet/auto style.
Definition: atrstck.cxx:133
#define RES_CHRATR_BEGIN
Definition: hintids.hxx:69
void SetEscapement(const short nNewEsc)
Definition: swfont.hxx:784
Provides access to settings of a document.
#define RES_CHRATR_UNDERLINE
Definition: hintids.hxx:83
void RemoveFromStack(sal_uInt16 nWhich, const SwTextAttr &rAttr)
Definition: atrstck.cxx:417
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
Definition: format.cxx:396
#define RES_TXTATR_TOXMARK
Definition: hintids.hxx:138
#define RES_CHRATR_ESCAPEMENT
Definition: hintids.hxx:75
void SetWeight(const FontWeight eWeight, const SwFontScript nWhich)
Definition: swfont.hxx:532
void GetDefaultAscentAndHeight(SwViewShell const *pShell, OutputDevice const &rOut, sal_uInt16 &nAscent, sal_uInt16 &nHeight) const
Takes the default font and calculated the ascent and height.
Definition: atrstck.cxx:834
bool IsPDFExport() const
Definition: viewopt.hxx:378
Shell * m_pShell
bool Push(const SwTextAttr &rAttr, const SfxPoolItem &rItem)
Definition: atrstck.cxx:389
sal_uInt8 & GetMeta()
Definition: swfont.hxx:254
#define RES_TXTATR_INETFMT
Definition: hintids.hxx:142
void SetOverColor(const Color &rColor)
Definition: swfont.hxx:217
#define RES_CHRATR_CONTOUR
Definition: hintids.hxx:73
const SwTextAttr * GetTop(sal_uInt16 nStack)
Definition: atrstck.cxx:384
void SetFixKerning(const short nNewKern)
Definition: swfont.hxx:650
#define RES_CHRATR_KERNING
Definition: hintids.hxx:78
void SetBottomBorder(const editeng::SvxBorderLine *pBottomBorder)
Definition: swfont.cxx:88
#define RES_CHRATR_EMPHASIS_MARK
Definition: hintids.hxx:102
#define RES_CHRATR_SHADOW
Definition: hintids.hxx:110
#define RES_CHRATR_ROTATE
Definition: hintids.hxx:101
static bool IsLinks()
Definition: viewopt.hxx:630
#define RES_TXTATR_AUTOFMT
Definition: hintids.hxx:141
const sal_uInt8 StackPos[RES_TXTATR_WITHEND_END-RES_CHRATR_BEGIN+1]
Attribute to Stack Mapping.
Definition: atrstck.cxx:69
const SwViewShell * m_pShell
Definition: atrhndl.hxx:46
sal_uInt8 & GetInputField()
Definition: swfont.hxx:256
sal_uInt8 & GetTox()
Definition: swfont.hxx:250
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void SetSize(const Size &rSize, const SwFontScript nWhich)
Definition: swfont.hxx:737
#define RES_CHRATR_CTL_LANGUAGE
Definition: hintids.hxx:98
unsigned char sal_uInt8
#define RES_CHRATR_POSTURE
Definition: hintids.hxx:80
#define RES_CHRATR_CTL_WEIGHT
Definition: hintids.hxx:100
#define RES_CHRATR_CTL_POSTURE
Definition: hintids.hxx:99
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:426
vcl::Window * GetWin() const
Definition: viewsh.hxx:340
LINESTYLE_DOTTED
void SetTopBorder(const editeng::SvxBorderLine *pTopBorder)
Definition: swfont.cxx:75
void SetBlink(const bool bBlink)
Definition: swfont.hxx:818
void SetFamily(const FontFamily eFamily, const SwFontScript nWhich)
Definition: swfont.hxx:451
void SetCharSet(const rtl_TextEncoding eCharSet, const SwFontScript nWhich)
Definition: swfont.hxx:490
#define RES_CHRATR_HIGHLIGHT
Definition: hintids.hxx:111
void ActivateTop(SwFont &rFnt, sal_uInt16 nStackPos)
Definition: atrstck.cxx:476
std::vector< const SwTextAttr * > m_aAttrStack[NUM_ATTRIBUTE_STACKS]
Definition: atrhndl.hxx:43
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
#define RES_TXTATR_REFMARK
Definition: hintids.hxx:137
void SetName(const OUString &rName, const SwFontScript nWhich)
Definition: swfont.hxx:464
#define RES_CHRATR_SHADOWED
Definition: hintids.hxx:82
void PushAndChg(const SwTextAttr &rAttr, SwFont &rFnt)
Definition: atrstck.cxx:340
const SfxPoolItem & GetAttr() const
Definition: txatbase.hxx:159
#define RES_CHRATR_AUTOKERN
Definition: hintids.hxx:86
#define RES_CHRATR_HIDDEN
Definition: hintids.hxx:106
bool IsItemIncluded(const sal_uInt16 nWhich, const SwTextAttr *pAttr)
Checks if item is included in character/inet/auto style.
Definition: atrstck.cxx:177
#define RES_CHRATR_CROSSEDOUT
Definition: hintids.hxx:74
void SetAutoKern(FontKerning nAutoKern)
Definition: swfont.hxx:633
void SetItalic(const FontItalic eItalic, const SwFontScript nWhich)
Definition: swfont.hxx:590
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:116
#define RES_CHRATR_SCALEW
Definition: hintids.hxx:104
void SetProportion(const sal_uInt8 nNewPropr)
Definition: swfont.hxx:765
void SetVertical(sal_uInt16 nDir, const bool bVertLayout=false, const bool bVertLayoutLRBT=false)
Definition: swfont.cxx:441
void SetHighlightColor(const Color &aNewColor)
Definition: swfont.hxx:949
static bool lcl_ChgHyperLinkColor(const SwTextAttr &rAttr, const SfxPoolItem &rItem, const SwViewShell *pShell, Color *pColor)
The color of hyperlinks is taken from the associated character attribute, depending on its 'visited' ...
Definition: atrstck.cxx:196
#define RES_TXTATR_INPUTFIELD
Definition: hintids.hxx:146
void SetOverline(const FontLineStyle eOverline)
Definition: swfont.hxx:560
const editeng::SvxBorderLine * GetBottom() const
sal_uInt16 Which() const
void SetTopBorderDist(const sal_uInt16 nTopDist)
Definition: swfont.hxx:835
sal_Int16 GetCaseMap(sal_Int32 nToken)
const SfxPoolItem * GetCurItem() const
sal_uInt16 GetWidth() const