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  while( true )
308  {
309  nWhich = pItem->Which();
310  if (isCHRATR(nWhich))
311  {
312  m_pDefaultArray[ StackPos[ nWhich ] ] = pItem;
313  FontChg( *pItem, rFnt, true );
314  }
315 
316  if( aIter.IsAtEnd() )
317  break;
318 
319  pItem = aIter.NextItem();
320  }
321  }
322 
323  // It is possible, that Init is called more than once, e.g., in a
324  // SwTextFrame::FormatOnceMore situation or (since sw_redlinehide)
325  // from SwAttrIter::Seek(); in the latter case SwTextSizeInfo::m_pFnt
326  // is an alias of m_pFnt so it must not be deleted!
327  if (m_pFnt)
328  {
329  *m_pFnt = rFnt;
330  }
331  else
332  {
333  m_pFnt.reset(new SwFont(rFnt));
334  }
335 }
336 
338 {
339  for (auto& i : m_aAttrStack)
340  i.clear();
341 }
342 
343 void SwAttrHandler::PushAndChg( const SwTextAttr& rAttr, SwFont& rFnt )
344 {
345  // these special attributes in fact represent a collection of attributes
346  // they have to be pushed to each stack they belong to
347  if ( RES_TXTATR_INETFMT == rAttr.Which() ||
348  RES_TXTATR_CHARFMT == rAttr.Which() ||
349  RES_TXTATR_AUTOFMT == rAttr.Which() )
350  {
351  const SfxItemSet* pSet = CharFormat::GetItemSet( rAttr.GetAttr() );
352  if ( !pSet ) return;
353 
354  for ( sal_uInt16 i = RES_CHRATR_BEGIN; i < RES_CHRATR_END; i++)
355  {
356  const SfxPoolItem* pItem;
357  bool bRet = SfxItemState::SET == pSet->GetItemState( i, rAttr.Which() != RES_TXTATR_AUTOFMT, &pItem );
358 
359  if ( bRet )
360  {
361  // we push rAttr onto the appropriate stack
362  if ( Push( rAttr, *pItem ) )
363  {
364  // we let pItem change rFnt
365  Color aColor;
366  if (lcl_ChgHyperLinkColor(rAttr, *pItem, m_pShell, &aColor))
367  {
368  SvxColorItem aItemNext( aColor, RES_CHRATR_COLOR );
369  FontChg( aItemNext, rFnt, true );
370  }
371  else
372  FontChg( *pItem, rFnt, true );
373  }
374  }
375  }
376  }
377  // this is the usual case, we have a basic attribute, push it onto the
378  // stack and change the font
379  else
380  {
381  if ( Push( rAttr, rAttr.GetAttr() ) )
382  // we let pItem change rFnt
383  FontChg( rAttr.GetAttr(), rFnt, true );
384  }
385 }
386 
387 const SwTextAttr* SwAttrHandler::GetTop(sal_uInt16 nStack)
388 {
389  return m_aAttrStack[nStack].empty() ? nullptr : m_aAttrStack[nStack].back();
390 }
391 
392 bool SwAttrHandler::Push( const SwTextAttr& rAttr, const SfxPoolItem& rItem )
393 {
394  OSL_ENSURE( rItem.Which() < RES_TXTATR_WITHEND_END,
395  "I do not want this attribute, nWhich >= RES_TXTATR_WITHEND_END" );
396 
397  // robust
398  if ( RES_TXTATR_WITHEND_END <= rItem.Which() )
399  return false;
400 
401  const sal_uInt16 nStack = StackPos[ rItem.Which() ];
402 
403  // attributes originating from redlining have highest priority
404  // second priority are hyperlink attributes, which have a color replacement
405  const SwTextAttr* pTopAttr = GetTop(nStack);
406  if ( !pTopAttr
407  || rAttr.IsPriorityAttr()
408  || ( !pTopAttr->IsPriorityAttr()
409  && !lcl_ChgHyperLinkColor(*pTopAttr, rItem, m_pShell, nullptr)))
410  {
411  m_aAttrStack[nStack].push_back(&rAttr);
412  return true;
413  }
414 
415  const auto it = m_aAttrStack[nStack].end() - 1;
416  m_aAttrStack[nStack].insert(it, &rAttr);
417  return false;
418 }
419 
420 void SwAttrHandler::RemoveFromStack(sal_uInt16 nWhich, const SwTextAttr& rAttr)
421 {
422  auto& rStack = m_aAttrStack[StackPos[nWhich]];
423  const auto it = std::find(rStack.begin(), rStack.end(), &rAttr);
424  if (it != rStack.end())
425  rStack.erase(it);
426 }
427 
428 void SwAttrHandler::PopAndChg( const SwTextAttr& rAttr, SwFont& rFnt )
429 {
430  if ( RES_TXTATR_WITHEND_END <= rAttr.Which() )
431  return; // robust
432 
433  // these special attributes in fact represent a collection of attributes
434  // they have to be removed from each stack they belong to
435  if ( RES_TXTATR_INETFMT == rAttr.Which() ||
436  RES_TXTATR_CHARFMT == rAttr.Which() ||
437  RES_TXTATR_AUTOFMT == rAttr.Which() )
438  {
439  const SfxItemSet* pSet = CharFormat::GetItemSet( rAttr.GetAttr() );
440  if ( !pSet ) return;
441 
442  for ( sal_uInt16 i = RES_CHRATR_BEGIN; i < RES_CHRATR_END; i++)
443  {
444  const SfxPoolItem* pItem;
445  bool bRet = SfxItemState::SET == pSet->GetItemState( i, RES_TXTATR_AUTOFMT != rAttr.Which(), &pItem );
446  if ( bRet )
447  {
448  // we remove rAttr from the appropriate stack
449  RemoveFromStack(i, rAttr);
450  // reset font according to attribute on top of stack
451  // or default value
452  ActivateTop( rFnt, i );
453  }
454  }
455  }
456  // this is the usual case, we have a basic attribute, remove it from the
457  // stack and reset the font
458  else
459  {
460  RemoveFromStack(rAttr.Which(), rAttr);
461  // reset font according to attribute on top of stack
462  // or default value
463  ActivateTop( rFnt, rAttr.Which() );
464  }
465 }
466 
468 void SwAttrHandler::Pop( const SwTextAttr& rAttr )
469 {
470  OSL_ENSURE( rAttr.Which() < RES_TXTATR_WITHEND_END,
471  "I do not have this attribute, nWhich >= RES_TXTATR_WITHEND_END" );
472 
473  if ( rAttr.Which() < RES_TXTATR_WITHEND_END )
474  {
475  RemoveFromStack(rAttr.Which(), rAttr);
476  }
477 }
478 
479 void SwAttrHandler::ActivateTop( SwFont& rFnt, const sal_uInt16 nAttr )
480 {
481  OSL_ENSURE( nAttr < RES_TXTATR_WITHEND_END,
482  "I cannot activate this attribute, nWhich >= RES_TXTATR_WITHEND_END" );
483 
484  const sal_uInt16 nStackPos = StackPos[ nAttr ];
485  const SwTextAttr* pTopAt = GetTop(nStackPos);
486  if ( pTopAt )
487  {
488  const SfxPoolItem* pItemNext(nullptr);
489 
490  // check if top attribute is collection of attributes
491  if ( RES_TXTATR_INETFMT == pTopAt->Which() ||
492  RES_TXTATR_CHARFMT == pTopAt->Which() ||
493  RES_TXTATR_AUTOFMT == pTopAt->Which() )
494  {
495  const SfxItemSet* pSet = CharFormat::GetItemSet( pTopAt->GetAttr() );
496  if (pSet)
497  pSet->GetItemState( nAttr, RES_TXTATR_AUTOFMT != pTopAt->Which(), &pItemNext );
498  }
499 
500  if (pItemNext)
501  {
502  Color aColor;
503  if (lcl_ChgHyperLinkColor(*pTopAt, *pItemNext, m_pShell, &aColor))
504  {
505  SvxColorItem aItemNext( aColor, RES_CHRATR_COLOR );
506  FontChg( aItemNext, rFnt, false );
507  }
508  else
509  FontChg( *pItemNext, rFnt, false );
510  }
511  else
512  FontChg( pTopAt->GetAttr(), rFnt, false );
513  }
514 
515  // default value has to be set, we only have default values for char attribs
516  else if ( nStackPos < NUM_DEFAULT_VALUES )
517  FontChg( *m_pDefaultArray[ nStackPos ], rFnt, false );
518  else if ( RES_TXTATR_REFMARK == nAttr )
519  rFnt.GetRef()--;
520  else if ( RES_TXTATR_TOXMARK == nAttr )
521  rFnt.GetTox()--;
522  else if ( (RES_TXTATR_META == nAttr) || (RES_TXTATR_METAFIELD == nAttr) )
523  {
524  rFnt.GetMeta()--;
525  }
526  else if ( RES_TXTATR_CJK_RUBY == nAttr )
527  {
528  // ruby stack has no more attributes
529  // check, if an rotation attribute has to be applied
530  const sal_uInt16 nTwoLineStack = StackPos[ RES_CHRATR_TWO_LINES ];
531  bool bTwoLineAct = false;
532  const SwTextAttr* pTwoLineAttr = GetTop(nTwoLineStack);
533 
534  if ( pTwoLineAttr )
535  {
536  const SfxPoolItem* pTwoLineItem = CharFormat::GetItem( *pTwoLineAttr, RES_CHRATR_TWO_LINES );
537  bTwoLineAct = static_cast<const SvxTwoLinesItem*>(pTwoLineItem)->GetValue();
538  }
539  else
540  bTwoLineAct =
541  static_cast<const SvxTwoLinesItem*>(m_pDefaultArray[ nTwoLineStack ])->GetValue();
542 
543  if ( bTwoLineAct )
544  return;
545 
546  // eventually, an rotate attribute has to be activated
547  const sal_uInt16 nRotateStack = StackPos[ RES_CHRATR_ROTATE ];
548  const SwTextAttr* pRotateAttr = GetTop(nRotateStack);
549 
550  if ( pRotateAttr )
551  {
552  const SfxPoolItem* pRotateItem = CharFormat::GetItem( *pRotateAttr, RES_CHRATR_ROTATE );
553  rFnt.SetVertical( static_cast<const SvxCharRotateItem*>(pRotateItem)->GetValue(),
554  m_bVertLayout );
555  }
556  else
557  rFnt.SetVertical(
558  static_cast<const SvxCharRotateItem*>(m_pDefaultArray[ nRotateStack ])->GetValue(),
560  );
561  }
562  else if ( RES_TXTATR_INPUTFIELD == nAttr )
563  rFnt.GetInputField()--;
564 }
565 
571 void SwAttrHandler::FontChg(const SfxPoolItem& rItem, SwFont& rFnt, bool bPush )
572 {
573  switch ( rItem.Which() )
574  {
575  case RES_CHRATR_CASEMAP :
576  rFnt.SetCaseMap( static_cast<const SvxCaseMapItem&>(rItem).GetCaseMap() );
577  break;
578  case RES_CHRATR_COLOR :
579  rFnt.SetColor( static_cast<const SvxColorItem&>(rItem).GetValue() );
580  break;
581  case RES_CHRATR_CONTOUR :
582  rFnt.SetOutline( static_cast<const SvxContourItem&>(rItem).GetValue() );
583  break;
584  case RES_CHRATR_CROSSEDOUT :
585  rFnt.SetStrikeout( static_cast<const SvxCrossedOutItem&>(rItem).GetStrikeout() );
586  break;
587  case RES_CHRATR_ESCAPEMENT :
588  rFnt.SetEscapement( static_cast<const SvxEscapementItem&>(rItem).GetEsc() );
589  rFnt.SetProportion( static_cast<const SvxEscapementItem&>(rItem).GetProportionalHeight() );
590  break;
591  case RES_CHRATR_FONT :
592  rFnt.SetName( static_cast<const SvxFontItem&>(rItem).GetFamilyName(), SwFontScript::Latin );
593  rFnt.SetStyleName( static_cast<const SvxFontItem&>(rItem).GetStyleName(), SwFontScript::Latin );
594  rFnt.SetFamily( static_cast<const SvxFontItem&>(rItem).GetFamily(), SwFontScript::Latin );
595  rFnt.SetPitch( static_cast<const SvxFontItem&>(rItem).GetPitch(), SwFontScript::Latin );
596  rFnt.SetCharSet( static_cast<const SvxFontItem&>(rItem).GetCharSet(), SwFontScript::Latin );
597  break;
598  case RES_CHRATR_FONTSIZE :
599  rFnt.SetSize(Size(0,static_cast<const SvxFontHeightItem&>(rItem).GetHeight() ), SwFontScript::Latin );
600  break;
601  case RES_CHRATR_KERNING :
602  rFnt.SetFixKerning( static_cast<const SvxKerningItem&>(rItem).GetValue() );
603  break;
604  case RES_CHRATR_LANGUAGE :
605  rFnt.SetLanguage( static_cast<const SvxLanguageItem&>(rItem).GetLanguage(), SwFontScript::Latin );
606  break;
607  case RES_CHRATR_POSTURE :
608  rFnt.SetItalic( static_cast<const SvxPostureItem&>(rItem).GetPosture(), SwFontScript::Latin );
609  break;
610  case RES_CHRATR_SHADOWED :
611  rFnt.SetShadow( static_cast<const SvxShadowedItem&>(rItem).GetValue() );
612  break;
613  case RES_CHRATR_UNDERLINE :
614  {
615  const sal_uInt16 nStackPos = StackPos[ RES_CHRATR_HIDDEN ];
616  const SwTextAttr* pTopAt = GetTop(nStackPos);
617 
618  const SfxPoolItem* pTmpItem = pTopAt ?
620  m_pDefaultArray[ nStackPos ];
621 
622  if ((m_pShell && !m_pShell->GetWin()) ||
623  (pTmpItem && !static_cast<const SvxCharHiddenItem*>(pTmpItem)->GetValue()) )
624  {
625  rFnt.SetUnderline( static_cast<const SvxUnderlineItem&>(rItem).GetLineStyle() );
626  rFnt.SetUnderColor( static_cast<const SvxUnderlineItem&>(rItem).GetColor() );
627  }
628  break;
629  }
630  case RES_CHRATR_BOX:
631  {
632  const SvxBoxItem& aBoxItem = static_cast<const SvxBoxItem&>(rItem);
633  rFnt.SetTopBorder( aBoxItem.GetTop() );
634  rFnt.SetBottomBorder( aBoxItem.GetBottom() );
635  rFnt.SetRightBorder( aBoxItem.GetRight() );
636  rFnt.SetLeftBorder( aBoxItem.GetLeft() );
637  rFnt.SetTopBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::TOP) );
638  rFnt.SetBottomBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::BOTTOM) );
639  rFnt.SetRightBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::RIGHT) );
640  rFnt.SetLeftBorderDist( aBoxItem.GetDistance(SvxBoxItemLine::LEFT) );
641  break;
642  }
643  case RES_CHRATR_SHADOW:
644  {
645  const SvxShadowItem& aShadowItem = static_cast<const SvxShadowItem&>(rItem);
646  rFnt.SetShadowColor( aShadowItem.GetColor() );
647  rFnt.SetShadowWidth( aShadowItem.GetWidth() );
648  rFnt.SetShadowLocation( aShadowItem.GetLocation() );
649  break;
650  }
651  case RES_CHRATR_OVERLINE :
652  rFnt.SetOverline( static_cast<const SvxOverlineItem&>(rItem).GetLineStyle() );
653  rFnt.SetOverColor( static_cast<const SvxOverlineItem&>(rItem).GetColor() );
654  break;
655  case RES_CHRATR_WEIGHT :
656  rFnt.SetWeight( static_cast<const SvxWeightItem&>(rItem).GetWeight(), SwFontScript::Latin );
657  break;
659  rFnt.SetWordLineMode( static_cast<const SvxWordLineModeItem&>(rItem).GetValue() );
660  break;
661  case RES_CHRATR_AUTOKERN :
662  if( static_cast<const SvxAutoKernItem&>(rItem).GetValue() )
663  {
666  FontKerning::FontSpecific :
667  FontKerning::Asian );
668  }
669  else
670  rFnt.SetAutoKern( FontKerning::NONE );
671  break;
672  case RES_CHRATR_BLINK :
673  rFnt.SetBlink( static_cast<const SvxBlinkItem&>(rItem).GetValue() );
674  break;
675  case RES_CHRATR_BACKGROUND :
676  rFnt.SetBackColor(new Color( static_cast<const SvxBrushItem&>(rItem).GetColor() ) );
677  break;
678  case RES_CHRATR_HIGHLIGHT :
679  rFnt.SetHighlightColor( static_cast<const SvxBrushItem&>(rItem).GetColor() );
680  break;
681  case RES_CHRATR_CJK_FONT :
682  rFnt.SetName( static_cast<const SvxFontItem&>(rItem).GetFamilyName(), SwFontScript::CJK );
683  rFnt.SetStyleName( static_cast<const SvxFontItem&>(rItem).GetStyleName(), SwFontScript::CJK );
684  rFnt.SetFamily( static_cast<const SvxFontItem&>(rItem).GetFamily(), SwFontScript::CJK );
685  rFnt.SetPitch( static_cast<const SvxFontItem&>(rItem).GetPitch(), SwFontScript::CJK );
686  rFnt.SetCharSet( static_cast<const SvxFontItem&>(rItem).GetCharSet(), SwFontScript::CJK );
687  break;
689  rFnt.SetSize(Size( 0, static_cast<const SvxFontHeightItem&>(rItem).GetHeight()), SwFontScript::CJK);
690  break;
692  rFnt.SetLanguage( static_cast<const SvxLanguageItem&>(rItem).GetLanguage(), SwFontScript::CJK );
693  break;
695  rFnt.SetItalic( static_cast<const SvxPostureItem&>(rItem).GetPosture(), SwFontScript::CJK );
696  break;
697  case RES_CHRATR_CJK_WEIGHT :
698  rFnt.SetWeight( static_cast<const SvxWeightItem&>(rItem).GetWeight(), SwFontScript::CJK );
699  break;
700  case RES_CHRATR_CTL_FONT :
701  rFnt.SetName( static_cast<const SvxFontItem&>(rItem).GetFamilyName(), SwFontScript::CTL );
702  rFnt.SetStyleName( static_cast<const SvxFontItem&>(rItem).GetStyleName(), SwFontScript::CTL );
703  rFnt.SetFamily( static_cast<const SvxFontItem&>(rItem).GetFamily(), SwFontScript::CTL );
704  rFnt.SetPitch( static_cast<const SvxFontItem&>(rItem).GetPitch(), SwFontScript::CTL );
705  rFnt.SetCharSet( static_cast<const SvxFontItem&>(rItem).GetCharSet(), SwFontScript::CTL );
706  break;
708  rFnt.SetSize(Size(0, static_cast<const SvxFontHeightItem&>(rItem).GetHeight() ), SwFontScript::CTL);
709  break;
711  rFnt.SetLanguage( static_cast<const SvxLanguageItem&>(rItem).GetLanguage(), SwFontScript::CTL );
712  break;
714  rFnt.SetItalic( static_cast<const SvxPostureItem&>(rItem).GetPosture(), SwFontScript::CTL );
715  break;
716  case RES_CHRATR_CTL_WEIGHT :
717  rFnt.SetWeight( static_cast<const SvxWeightItem&>(rItem).GetWeight(), SwFontScript::CTL );
718  break;
720  rFnt.SetEmphasisMark(
721  static_cast<const SvxEmphasisMarkItem&>(rItem).GetEmphasisMark()
722  );
723  break;
724  case RES_CHRATR_SCALEW :
725  rFnt.SetPropWidth( static_cast<const SvxCharScaleWidthItem&>(rItem).GetValue() );
726  break;
727  case RES_CHRATR_RELIEF :
728  rFnt.SetRelief( static_cast<const SvxCharReliefItem&>(rItem).GetValue() );
729  break;
730  case RES_CHRATR_HIDDEN :
731  if (m_pShell && m_pShell->GetWin())
732  {
733  if ( static_cast<const SvxCharHiddenItem&>(rItem).GetValue() )
735  else
737  }
738  break;
739  case RES_CHRATR_ROTATE :
740  {
741  // rotate attribute is applied, when:
742  // 1. ruby stack is empty and
743  // 2. top of two line stack ( or default attribute )is an
744  // deactivated two line attribute
745  const bool bRuby =
746  0 != m_aAttrStack[ StackPos[ RES_TXTATR_CJK_RUBY ] ].size();
747 
748  if ( bRuby )
749  break;
750 
751  const sal_uInt16 nTwoLineStack = StackPos[ RES_CHRATR_TWO_LINES ];
752  bool bTwoLineAct = false;
753  const SwTextAttr* pTwoLineAttr = GetTop(nTwoLineStack);
754 
755  if ( pTwoLineAttr )
756  {
757  const SfxPoolItem* pTwoLineItem = CharFormat::GetItem( *pTwoLineAttr, RES_CHRATR_TWO_LINES );
758  bTwoLineAct = static_cast<const SvxTwoLinesItem*>(pTwoLineItem)->GetValue();
759  }
760  else
761  bTwoLineAct =
762  static_cast<const SvxTwoLinesItem*>(m_pDefaultArray[ nTwoLineStack ])->GetValue();
763 
764  if ( !bTwoLineAct )
765  rFnt.SetVertical( static_cast<const SvxCharRotateItem&>(rItem).GetValue(),
766  m_bVertLayout );
767 
768  break;
769  }
770  case RES_CHRATR_TWO_LINES :
771  {
772  bool bRuby = 0 !=
774 
775  // two line is activated, if
776  // 1. no ruby attribute is set and
777  // 2. attribute is active
778  if ( !bRuby && static_cast<const SvxTwoLinesItem&>(rItem).GetValue() )
779  {
780  rFnt.SetVertical( 0, m_bVertLayout );
781  break;
782  }
783 
784  // a deactivating two line attribute is on top of stack,
785  // check if rotate attribute has to be enabled
786  if ( bRuby )
787  break;
788 
789  const sal_uInt16 nRotateStack = StackPos[ RES_CHRATR_ROTATE ];
790  const SwTextAttr* pRotateAttr = GetTop(nRotateStack);
791 
792  if ( pRotateAttr )
793  {
794  const SfxPoolItem* pRotateItem = CharFormat::GetItem( *pRotateAttr, RES_CHRATR_ROTATE );
795  rFnt.SetVertical( static_cast<const SvxCharRotateItem*>(pRotateItem)->GetValue(),
796  m_bVertLayout );
797  }
798  else
799  rFnt.SetVertical(
800  static_cast<const SvxCharRotateItem*>(m_pDefaultArray[ nRotateStack ])->GetValue(),
802  );
803  break;
804  }
805  case RES_TXTATR_CJK_RUBY :
806  rFnt.SetVertical( 0, m_bVertLayout );
807  break;
808  case RES_TXTATR_REFMARK :
809  if ( bPush )
810  rFnt.GetRef()++;
811  else
812  rFnt.GetRef()--;
813  break;
814  case RES_TXTATR_TOXMARK :
815  if ( bPush )
816  rFnt.GetTox()++;
817  else
818  rFnt.GetTox()--;
819  break;
820  case RES_TXTATR_META:
822  if ( bPush )
823  rFnt.GetMeta()++;
824  else
825  rFnt.GetMeta()--;
826  break;
827  case RES_TXTATR_INPUTFIELD :
828  if ( bPush )
829  rFnt.GetInputField()++;
830  else
831  rFnt.GetInputField()--;
832  break;
833  }
834 }
835 
838  sal_uInt16& nAscent, sal_uInt16& nHeight ) const
839 {
840  OSL_ENSURE(m_pFnt, "No font available for GetDefaultAscentAndHeight");
841 
842  if (m_pFnt)
843  {
844  SwFont aFont( *m_pFnt );
845  nHeight = aFont.GetHeight( pShell, rOut );
846  nAscent = aFont.GetAscent( pShell, rOut );
847  }
848 }
849 
850 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SetLeftBorderDist(const sal_uInt16 nLeftDist)
Definition: swfont.hxx:853
vcl::RenderContext * GetOut() const
Definition: viewsh.hxx:341
OutDevType GetOutDevType() const
#define RES_CHRATR_WEIGHT
Definition: hintids.hxx:83
SwCharFormat * GetCharFormat()
Definition: txtatr2.cxx:113
bool IsPagePreview() const
Definition: viewopt.hxx:589
#define RES_CHRATR_CJK_LANGUAGE
Definition: hintids.hxx:92
void Pop(const SwTextAttr &rAttr)
Only used during redlining.
Definition: atrstck.cxx:468
static bool IsVisitedLinks()
Definition: viewopt.hxx:624
bool IsPriorityAttr() const
Definition: txatbase.hxx:97
void SetWordLineMode(const bool bWordLineMode)
Definition: swfont.hxx:668
#define RES_CHRATR_FONTSIZE
Definition: hintids.hxx:76
bool isCHRATR(const sal_uInt16 nWhich)
Definition: hintids.hxx:342
#define RES_CHRATR_LANGUAGE
Definition: hintids.hxx:78
#define RES_TXTATR_CJK_RUBY
Definition: hintids.hxx:143
#define RES_CHRATR_RELIEF
Definition: hintids.hxx:104
void PopAndChg(const SwTextAttr &rAttr, SwFont &rFnt)
Definition: atrstck.cxx:428
#define RES_TXTATR_METAFIELD
Definition: hintids.hxx:139
std::string GetValue
#define RES_CHRATR_CJK_POSTURE
Definition: hintids.hxx:93
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:571
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:84
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
Definition: langhelper.cxx:402
static Color & GetLinksColor()
Definition: viewopt.cxx:392
void SetBackColor(Color *pNewColor)
Definition: swfont.cxx:68
void SetEmphasisMark(const FontEmphasisMark eValue)
Definition: swfont.hxx:682
#define RES_CHRATR_CJK_WEIGHT
Definition: hintids.hxx:94
sal_uInt16 GetDistance(SvxBoxItemLine nLine) const
#define RES_CHRATR_FONT
Definition: hintids.hxx:75
bool IsAtEnd() const
bool IsVisited() const
Definition: txtinet.hxx:55
#define RES_CHRATR_BLINK
Definition: hintids.hxx:86
const SfxPoolItem * m_pDefaultArray[NUM_DEFAULT_VALUES]
Definition: atrhndl.hxx:44
#define RES_CHRATR_CJK_FONT
Definition: hintids.hxx:90
#define RES_CHRATR_CJK_FONTSIZE
Definition: hintids.hxx:91
#define RES_TXTATR_CHARFMT
Definition: hintids.hxx:142
sal_uInt16 Which() const
Definition: txatbase.hxx:110
void SetOutline(const bool bOutline)
Definition: swfont.hxx:600
const editeng::SvxBorderLine * GetRight() const
void SetPropWidth(const sal_uInt16 nNew)
Definition: swfont.hxx:690
sal_uInt8 & GetRef()
Definition: swfont.hxx:249
void SetBottomBorderDist(const sal_uInt16 nBottomDist)
Definition: swfont.hxx:839
void SetPitch(const FontPitch ePitch, const SwFontScript nWhich)
Definition: swfont.hxx:501
#define RES_CHRATR_TWO_LINES
Definition: hintids.hxx:102
#define NUM_DEFAULT_VALUES
Definition: swfntcch.hxx:22
void SetColor(const Color &rColor)
Definition: swfont.hxx:411
void SetShadow(const bool bShadow)
Definition: swfont.hxx:615
#define RES_TXTATR_META
Definition: hintids.hxx:138
#define RES_CHRATR_END
Definition: hintids.hxx:114
SvxShadowLocation GetLocation() const
bool m_bVertLayout
Definition: atrhndl.hxx:52
#define RES_CHRATR_CTL_FONTSIZE
Definition: hintids.hxx:96
sal_uInt16 GetAscent(SwViewShell const *pSh, const OutputDevice &rOut)
Definition: swfont.hxx:323
static Color & GetVisitedLinksColor()
Definition: viewopt.cxx:397
#define RES_TXTATR_WITHEND_END
Definition: hintids.hxx:146
void SetShadowColor(const Color &rColor)
Definition: swfont.hxx:925
void SetUnderline(const FontLineStyle eUnderline)
Definition: swfont.hxx:542
void SetShadowLocation(const SvxShadowLocation aLocation)
Definition: swfont.hxx:939
std::unique_ptr< SwFont > m_pFnt
Definition: atrhndl.hxx:50
#define RES_CHRATR_CASEMAP
Definition: hintids.hxx:69
void SetStrikeout(const FontStrikeout eStrikeout)
Definition: swfont.hxx:572
void SetLeftBorder(const editeng::SvxBorderLine *pLeftBorder)
Definition: swfont.cxx:114
#define RES_CHRATR_COLOR
Definition: hintids.hxx:71
OUTDEV_PRINTER
const Color & GetColor() const
void SetStyleName(const OUString &rStyleName, const SwFontScript nWhich)
Definition: swfont.hxx:474
const editeng::SvxBorderLine * GetTop() const
#define RES_CHRATR_OVERLINE
Definition: hintids.hxx:106
void SetLanguage(LanguageType eNewLang, const SwFontScript nWhich)
Definition: swfont.hxx:804
void Reset()
Definition: atrstck.cxx:337
void Init(const SwAttrSet &rAttrSet, const IDocumentSettingAccess &rIDocumentSettingAccess)
Definition: atrstck.cxx:277
#define RES_CHRATR_BACKGROUND
Definition: hintids.hxx:89
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:95
void SetVisited(bool bNew)
Definition: txtinet.hxx:56
void SetUnderColor(const Color &rColor)
Definition: swfont.hxx:212
void SetRightBorderDist(const sal_uInt16 nRightDist)
Definition: swfont.hxx:846
#define RES_CHRATR_BOX
Definition: hintids.hxx:108
void SetShadowWidth(const sal_uInt16 nWidth)
Definition: swfont.hxx:932
void SetCaseMap(const SvxCaseMap eNew)
Definition: swfont.hxx:654
int i
sal_uInt16 Count() const
long GetHeight() const
Definition: swfont.hxx:280
const SfxPoolItem * NextItem()
void SetRelief(const FontRelief eNew)
Definition: swfont.hxx:708
const IDocumentSettingAccess * m_pIDocumentSettingAccess
Definition: atrhndl.hxx:45
const SfxItemSet * GetItemSet(const SfxPoolItem &rAttr)
Returns the item set associated with an character/inet/auto style.
Definition: atrstck.cxx:133
#define RES_CHRATR_BEGIN
Definition: hintids.hxx:68
void SetEscapement(const short nNewEsc)
Definition: swfont.hxx:781
Provides access to settings of a document.
#define RES_CHRATR_UNDERLINE
Definition: hintids.hxx:82
void RemoveFromStack(sal_uInt16 nWhich, const SwTextAttr &rAttr)
Definition: atrstck.cxx:420
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
Definition: format.cxx:398
#define RES_TXTATR_TOXMARK
Definition: hintids.hxx:137
#define RES_CHRATR_ESCAPEMENT
Definition: hintids.hxx:74
void SetWeight(const FontWeight eWeight, const SwFontScript nWhich)
Definition: swfont.hxx:529
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:837
bool IsPDFExport() const
Definition: viewopt.hxx:371
Shell * m_pShell
bool Push(const SwTextAttr &rAttr, const SfxPoolItem &rItem)
Definition: atrstck.cxx:392
sal_uInt8 & GetMeta()
Definition: swfont.hxx:251
#define RES_TXTATR_INETFMT
Definition: hintids.hxx:141
void SetOverColor(const Color &rColor)
Definition: swfont.hxx:214
#define RES_CHRATR_CONTOUR
Definition: hintids.hxx:72
const SwTextAttr * GetTop(sal_uInt16 nStack)
Definition: atrstck.cxx:387
void SetFixKerning(const short nNewKern)
Definition: swfont.hxx:647
#define RES_CHRATR_KERNING
Definition: hintids.hxx:77
void SetBottomBorder(const editeng::SvxBorderLine *pBottomBorder)
Definition: swfont.cxx:88
#define RES_CHRATR_EMPHASIS_MARK
Definition: hintids.hxx:101
#define RES_CHRATR_SHADOW
Definition: hintids.hxx:109
#define RES_CHRATR_ROTATE
Definition: hintids.hxx:100
static bool IsLinks()
Definition: viewopt.hxx:623
#define RES_TXTATR_AUTOFMT
Definition: hintids.hxx:140
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:253
sal_uInt8 & GetTox()
Definition: swfont.hxx:247
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void SetSize(const Size &rSize, const SwFontScript nWhich)
Definition: swfont.hxx:734
#define RES_CHRATR_CTL_LANGUAGE
Definition: hintids.hxx:97
unsigned char sal_uInt8
#define RES_CHRATR_POSTURE
Definition: hintids.hxx:79
#define RES_CHRATR_CTL_WEIGHT
Definition: hintids.hxx:99
#define RES_CHRATR_CTL_POSTURE
Definition: hintids.hxx:98
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:815
void SetFamily(const FontFamily eFamily, const SwFontScript nWhich)
Definition: swfont.hxx:448
void SetCharSet(const rtl_TextEncoding eCharSet, const SwFontScript nWhich)
Definition: swfont.hxx:487
#define RES_CHRATR_HIGHLIGHT
Definition: hintids.hxx:110
void ActivateTop(SwFont &rFnt, sal_uInt16 nStackPos)
Definition: atrstck.cxx:479
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:136
void SetName(const OUString &rName, const SwFontScript nWhich)
Definition: swfont.hxx:461
#define RES_CHRATR_SHADOWED
Definition: hintids.hxx:81
void PushAndChg(const SwTextAttr &rAttr, SwFont &rFnt)
Definition: atrstck.cxx:343
const SfxPoolItem & GetAttr() const
Definition: txatbase.hxx:159
#define RES_CHRATR_AUTOKERN
Definition: hintids.hxx:85
#define RES_CHRATR_HIDDEN
Definition: hintids.hxx:105
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:73
void SetAutoKern(FontKerning nAutoKern)
Definition: swfont.hxx:630
void SetItalic(const FontItalic eItalic, const SwFontScript nWhich)
Definition: swfont.hxx:587
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:116
#define RES_CHRATR_SCALEW
Definition: hintids.hxx:103
void SetProportion(const sal_uInt8 nNewPropr)
Definition: swfont.hxx:762
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:946
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:145
void SetOverline(const FontLineStyle eOverline)
Definition: swfont.hxx:557
const editeng::SvxBorderLine * GetBottom() const
sal_uInt16 Which() const
void SetTopBorderDist(const sal_uInt16 nTopDist)
Definition: swfont.hxx:832
sal_Int16 GetCaseMap(sal_Int32 nToken)
const SfxPoolItem * GetCurItem() const
sal_uInt16 GetWidth() const