LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | List of all members
SwFont Class Reference

#include <swfont.hxx>

Collaboration diagram for SwFont:
[legend]

Public Member Functions

 SwFont (const SwAttrSet *pSet, const IDocumentSettingAccess *pIDocumentSettingAccess)
 
 SwFont (const SwFont &rFont)
 
void ChgFnt (SwViewShell const *pSh, OutputDevice &rOut)
 
 ~SwFont ()
 
SwFontoperator= (const SwFont &rFont)
 
SwFontScript GetActual () const
 
void SetActual (SwFontScript nNew)
 
const SvxFontGetActualFont () const
 
void AllocFontCacheId (SwViewShell const *pSh, SwFontScript nWhich)
 
void SetBackColor (Color *pNewColor)
 
const ColorGetBackColor () const
 
void SetHighlightColor (const Color &aNewColor)
 
const ColorGetHighlightColor () const
 
void CheckFontCacheId (SwViewShell const *pSh, SwFontScript nWhich)
 
void GetFontCacheId (const void *&rnFontCacheId, sal_uInt16 &rIdx, SwFontScript nWhich)
 
void SetFontCacheId (const void *nNewFontCacheId, const sal_uInt16 nIdx, SwFontScript nWhich)
 
bool DifferentFontCacheId (const SwFont *pFnt, SwFontScript nWhich)
 
const SizeGetSize (SwFontScript nWhich) const
 
bool IsFntChg () const
 
void SetFntChg (const bool bNew)
 
void SetColor (const Color &rColor)
 
void SetFillColor (const Color &rColor)
 
void SetAlign (const FontAlign eAlign)
 
void SetUnderline (const FontLineStyle eUnderline)
 
void SetUnderColor (const Color &rColor)
 
void SetOverline (const FontLineStyle eOverline)
 
void SetOverColor (const Color &rColor)
 
void SetStrikeout (const FontStrikeout eStrikeout)
 
void SetOutline (const bool bOutline)
 
void SetVertical (sal_uInt16 nDir, const bool bVertLayout=false, const bool bVertLayoutLRBT=false)
 
void SetShadow (const bool bShadow)
 
void SetAutoKern (FontKerning nAutoKern)
 
void SetTransparent (const bool bTrans)
 
void SetWordLineMode (const bool bWordLineMode)
 
void SetFixKerning (const short nNewKern)
 
void SetCaseMap (const SvxCaseMap eNew)
 
void SetEmphasisMark (const FontEmphasisMark eValue)
 
void SetEscapement (const short nNewEsc)
 
void SetProportion (const sal_uInt8 nNewPropr)
 
void SetPropWidth (const sal_uInt16 nNew)
 
void SetFamily (const FontFamily eFamily, const SwFontScript nWhich)
 
void SetName (const OUString &rName, const SwFontScript nWhich)
 
void SetStyleName (const OUString &rStyleName, const SwFontScript nWhich)
 
void SetSize (const Size &rSize, const SwFontScript nWhich)
 
void SetWeight (const FontWeight eWeight, const SwFontScript nWhich)
 
void SetItalic (const FontItalic eItalic, const SwFontScript nWhich)
 
void SetLanguage (LanguageType eNewLang, const SwFontScript nWhich)
 
void SetCharSet (const rtl_TextEncoding eCharSet, const SwFontScript nWhich)
 
void SetPitch (const FontPitch ePitch, const SwFontScript nWhich)
 
void SetRelief (const FontRelief eNew)
 
void SetBlink (const bool bBlink)
 
bool IsBlink () const
 
sal_uInt8GetTox ()
 
bool IsTox () const
 
sal_uInt8GetRef ()
 
bool IsRef () const
 
sal_uInt8GetMeta ()
 
bool IsMeta () const
 
sal_uInt8GetInputField ()
 
bool IsInputField () const
 
void SetGreyWave (const bool bNew)
 
bool IsGreyWave () const
 
bool IsPaintBlank () const
 
void SetDiffFnt (const SfxItemSet *pSet, const IDocumentSettingAccess *pIDocumentSettingAccess)
 
const SvxFontGetFnt (const SwFontScript nWhich) const
 
bool IsSymbol (SwViewShell const *pSh)
 
FontLineStyle GetUnderline () const
 
const ColorGetUnderColor () const
 
FontLineStyle GetOverline () const
 
const ColorGetOverColor () const
 
FontStrikeout GetStrikeout () const
 
const ColorGetColor () const
 
bool IsWordLineMode () const
 
short GetEscapement () const
 
SvxCaseMap GetCaseMap () const
 
sal_uInt8 GetPropr () const
 
FontItalic GetItalic () const
 
LanguageType GetLanguage () const
 
long GetHeight () const
 
FontWeight GetWeight () const
 
FontEmphasisMark GetEmphasisMark () const
 
sal_uInt16 GetOrientation (const bool bVertLayout=false, const bool bVertFormatLRBT=false) const
 
const OUString & GetName (const SwFontScript nWhich) const
 
LanguageType GetLanguage (const SwFontScript nWhich) const
 
rtl_TextEncoding GetCharSet (const SwFontScript nWhich) const
 
long GetHeight (const SwFontScript nWhich) const
 
void ChgPhysFnt (SwViewShell const *pSh, OutputDevice &rOut)
 
TextFrameIndex GetCapitalBreak (SwViewShell const *pSh, const OutputDevice *pOut, const SwScriptInfo *pScript, const OUString &rText, long nTextWidth, TextFrameIndex nIdx, TextFrameIndex nLen)
 
void DoOnCapitals (SwDoCapitals &rDo)
 
Size GetTextSize_ (SwDrawTextInfo &rInf)
 
TextFrameIndex GetTextBreak (SwDrawTextInfo const &rInf, long nTextWidth)
 
TextFrameIndex GetCursorOfst_ (SwDrawTextInfo &rInf)
 
void DrawText_ (SwDrawTextInfo &rInf)
 
void DrawStretchText_ (SwDrawTextInfo &rInf)
 
short CheckKerning ()
 
sal_uInt16 GetAscent (SwViewShell const *pSh, const OutputDevice &rOut)
 
sal_uInt16 GetHeight (SwViewShell const *pSh, const OutputDevice &rOut)
 
void Invalidate ()
 
void SetTopBorder (const editeng::SvxBorderLine *pTopBorder)
 
void SetBottomBorder (const editeng::SvxBorderLine *pBottomBorder)
 
void SetRightBorder (const editeng::SvxBorderLine *pRightBorder)
 
void SetLeftBorder (const editeng::SvxBorderLine *pLeftBorder)
 
const boost::optional< editeng::SvxBorderLine > & GetTopBorder () const
 
const boost::optional< editeng::SvxBorderLine > & GetBottomBorder () const
 
const boost::optional< editeng::SvxBorderLine > & GetRightBorder () const
 
const boost::optional< editeng::SvxBorderLine > & GetLeftBorder () const
 
const boost::optional< editeng::SvxBorderLine > & GetAbsTopBorder (const bool bVertLayout, const bool bVertLayoutLRBT) const
 
const boost::optional< editeng::SvxBorderLine > & GetAbsBottomBorder (const bool bVertLayout, const bool bVertLayoutLRBT) const
 
const boost::optional< editeng::SvxBorderLine > & GetAbsRightBorder (const bool bVertLayout, const bool bVertLayoutLRBT) const
 
const boost::optional< editeng::SvxBorderLine > & GetAbsLeftBorder (const bool bVertLayout, const bool bVertLayoutLRBT) const
 
void SetTopBorderDist (const sal_uInt16 nTopDist)
 
void SetBottomBorderDist (const sal_uInt16 nBottomDist)
 
void SetRightBorderDist (const sal_uInt16 nRightDist)
 
void SetLeftBorderDist (const sal_uInt16 nLeftDist)
 
sal_uInt16 GetTopBorderDist () const
 
sal_uInt16 GetBottomBorderDist () const
 
sal_uInt16 GetRightBorderDist () const
 
sal_uInt16 GetLeftBorderDist () const
 
sal_uInt16 GetTopBorderSpace () const
 
sal_uInt16 GetBottomBorderSpace () const
 
sal_uInt16 GetRightBorderSpace () const
 
sal_uInt16 GetLeftBorderSpace () const
 
bool HasBorder () const
 Check whether font has any border on any side. More...
 
void SetShadowColor (const Color &rColor)
 
void SetShadowWidth (const sal_uInt16 nWidth)
 
void SetShadowLocation (const SvxShadowLocation aLocation)
 
const ColorGetShadowColor () const
 
sal_uInt16 GetShadowWidth () const
 
SvxShadowLocation GetShadowLocation () const
 
SvxShadowLocation GetAbsShadowLocation (const bool bVertLayout, const bool bVertLayoutLRBT) const
 Get the absolute shadow location dependent from orientation. More...
 
sal_uInt16 CalcShadowSpace (const SvxShadowItemSide nShadow, const bool bVertLayout, const bool bVertLayoutLRBT, const bool bSkipLeft, const bool bSkipRight) const
 Calculate the shadow space on the specified side dependent from the orientation and connection with neighbours. More...
 
void dumpAsXml (xmlTextWriterPtr writer) const
 

Private Attributes

o3tl::enumarray< SwFontScript, SwSubFontm_aSub
 
std::unique_ptr< Colorm_pBackColor
 
Color m_aHighlightColor
 
Color m_aUnderColor
 
Color m_aOverColor
 
boost::optional< editeng::SvxBorderLinem_aTopBorder
 
boost::optional< editeng::SvxBorderLinem_aBottomBorder
 
boost::optional< editeng::SvxBorderLinem_aRightBorder
 
boost::optional< editeng::SvxBorderLinem_aLeftBorder
 
sal_uInt16 m_nTopBorderDist
 
sal_uInt16 m_nBottomBorderDist
 
sal_uInt16 m_nRightBorderDist
 
sal_uInt16 m_nLeftBorderDist
 
Color m_aShadowColor
 
sal_uInt16 m_nShadowWidth
 
SvxShadowLocation m_aShadowLocation
 
sal_uInt8 m_nToxCount
 
sal_uInt8 m_nRefCount
 
sal_uInt8 m_nMetaCount
 
sal_uInt8 m_nInputFieldCount
 
SwFontScript m_nActual
 
bool m_bBlink:1
 
bool m_bPaintBlank:1
 
bool m_bFontChg:1
 
bool m_bOrgChg:1
 
bool m_bGreyWave:1
 

Detailed Description

Definition at line 127 of file swfont.hxx.

Constructor & Destructor Documentation

SwFont::SwFont ( const SwAttrSet pSet,
const IDocumentSettingAccess pIDocumentSettingAccess 
)

Definition at line 745 of file swfont.cxx.

References ALIGN_BASELINE, CJK, COL_TRANSPARENT(), CTL, IDocumentSettingAccess::get(), SwAttrSet::Get2Lines(), SwAttrSet::GetAutoKern(), SwAttrSet::GetBlink(), SvxBoxItem::GetBottom(), SvxCaseMapItem::GetCaseMap(), SwAttrSet::GetCaseMap(), SwAttrSet::GetCharHidden(), SwAttrSet::GetCharRelief(), SwAttrSet::GetCharRotate(), SwAttrSet::GetCharScaleW(), SvxFontItem::GetCharSet(), SwAttrSet::GetCJKFont(), SwAttrSet::GetCJKLanguage(), SwAttrSet::GetCJKPosture(), SwAttrSet::GetCJKSize(), SwAttrSet::GetCJKWeight(), SvxTextLineItem::GetColor(), SvxShadowItem::GetColor(), SwAttrSet::GetColor(), GetColor(), SwAttrSet::GetContour(), SwAttrSet::GetCrossedOut(), SwAttrSet::GetCTLFont(), SwAttrSet::GetCTLLanguage(), SwAttrSet::GetCTLPosture(), SwAttrSet::GetCTLSize(), SwAttrSet::GetCTLWeight(), SvxBoxItem::GetDistance(), SvxEmphasisMarkItem::GetEmphasisMark(), SwAttrSet::GetEmphasisMark(), SwAttrSet::GetEscapement(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), SwAttrSet::GetFont(), SvxFontHeightItem::GetHeight(), SfxItemSet::GetItemState(), SwAttrSet::GetKerning(), SvxLanguageItem::GetLanguage(), SwAttrSet::GetLanguage(), SvxBoxItem::GetLeft(), SvxTextLineItem::GetLineStyle(), SvxShadowItem::GetLocation(), SwAttrSet::GetOverline(), SvxFontItem::GetPitch(), SvxPostureItem::GetPosture(), SwAttrSet::GetPosture(), SvxBoxItem::GetRight(), SwAttrSet::GetShadowed(), SwAttrSet::GetSize(), SvxCrossedOutItem::GetStrikeout(), SvxFontItem::GetStyleName(), SvxBoxItem::GetTop(), SwAttrSet::GetUnderline(), SvxTwoLinesItem::GetValue(), SvxColorItem::GetValue(), SvxWeightItem::GetWeight(), SwAttrSet::GetWeight(), SvxShadowItem::GetWidth(), SwAttrSet::GetWordLineMode(), KERN_ASIAN_PUNCTUATION, Latin, LINESTYLE_DOTTED, m_aSub, m_bBlink, m_bGreyWave, m_bOrgChg, m_bPaintBlank, m_nActual, m_nInputFieldCount, m_nMetaCount, m_nRefCount, m_nToxCount, m_pBackColor, RES_CHRATR_BACKGROUND, RES_CHRATR_BOX, RES_CHRATR_HIGHLIGHT, RES_CHRATR_SHADOW, SetAlign(), SetAutoKern(), SetBottomBorder(), SetBottomBorderDist(), SetCaseMap(), SetColor(), SetEmphasisMark(), SetEscapement(), SetFixKerning(), Size::setHeight(), SetHighlightColor(), SetLeftBorder(), SetLeftBorderDist(), SetOutline(), SetOverColor(), SetOverline(), SetProportion(), SetPropWidth(), SetRelief(), SetRightBorder(), SetRightBorderDist(), SetShadow(), SetShadowColor(), SetShadowLocation(), SetShadowWidth(), SetStrikeout(), SetTopBorder(), SetTopBorderDist(), SetTransparent(), SetUnderColor(), SetUnderline(), SetVertical(), SetWordLineMode(), and SMALL_CAPS_PERCENTAGE_66.

SwFont::SwFont ( const SwFont rFont)
SwFont::~SwFont ( )

Definition at line 903 of file swfont.cxx.

Member Function Documentation

void SwFont::AllocFontCacheId ( SwViewShell const *  pSh,
SwFontScript  nWhich 
)

Definition at line 943 of file swfont.cxx.

References m_aSub.

Referenced by SwFontObj::SwFontObj().

sal_uInt16 SwFont::CalcShadowSpace ( const SvxShadowItemSide  nShadow,
const bool  bVertLayout,
const bool  bVertLayoutLRBT,
const bool  bSkipLeft,
const bool  bSkipRight 
) const

Calculate the shadow space on the specified side dependent from the orientation and connection with neighbours.

See also
shaditem.hxx for integer constants of sides
Parameters
[in]nShadowspecify the side
[in]bVertLayouttrue, if the container layout is vertical false, otherwise
[in]bVertLayoutLRBTtrue if the container layout is vertical (bottom to top, left to right), false otherwise
[in]bSkipLeftrelative left shadow space is skipped
[in]bSkipRightrelative right shadow space is skipped
Returns
the shadow space

Definition at line 306 of file swfont.cxx.

References GetAbsShadowLocation(), GetOrientation(), and m_nShadowWidth.

Referenced by SwTextPaintInfo::CalcRect().

void SwFont::CheckFontCacheId ( SwViewShell const *  pSh,
SwFontScript  nWhich 
)
inline

Definition at line 192 of file swfont.hxx.

Referenced by SwDropCapCache::CalcFontSize().

short SwFont::CheckKerning ( )
inline
void SwFont::ChgFnt ( SwViewShell const *  pSh,
OutputDevice rOut 
)
inline

Definition at line 173 of file swfont.hxx.

Referenced by ChgPhysFnt(), and GetTextBreak().

void SwFont::ChgPhysFnt ( SwViewShell const *  pSh,
OutputDevice rOut 
)
bool SwFont::DifferentFontCacheId ( const SwFont pFnt,
SwFontScript  nWhich 
)
inline

Definition at line 198 of file swfont.hxx.

References m_aSub.

Referenced by SwFontSave::SwFontSave().

void SwFont::DoOnCapitals ( SwDoCapitals rDo)
inline

Definition at line 303 of file swfont.hxx.

Referenced by GetCapitalBreak().

void SwFont::DrawStretchText_ ( SwDrawTextInfo rInf)
inline
void SwFont::DrawText_ ( SwDrawTextInfo rInf)
inline
void SwFont::dumpAsXml ( xmlTextWriterPtr  writer) const

Definition at line 530 of file xmldump.cxx.

References GetColor().

Referenced by XmlPortionDumper::Special().

const boost::optional< editeng::SvxBorderLine > & SwFont::GetAbsBottomBorder ( const bool  bVertLayout,
const bool  bVertLayoutLRBT 
) const

Definition at line 152 of file swfont.cxx.

References GetOrientation(), m_aBottomBorder, m_aLeftBorder, m_aRightBorder, and m_aTopBorder.

Referenced by PaintCharacterBorder().

const boost::optional< editeng::SvxBorderLine > & SwFont::GetAbsLeftBorder ( const bool  bVertLayout,
const bool  bVertLayoutLRBT 
) const

Definition at line 176 of file swfont.cxx.

References GetOrientation(), m_aBottomBorder, m_aLeftBorder, m_aRightBorder, and m_aTopBorder.

Referenced by PaintCharacterBorder().

const boost::optional< editeng::SvxBorderLine > & SwFont::GetAbsRightBorder ( const bool  bVertLayout,
const bool  bVertLayoutLRBT 
) const

Definition at line 200 of file swfont.cxx.

References GetOrientation(), m_aBottomBorder, m_aLeftBorder, m_aRightBorder, and m_aTopBorder.

Referenced by PaintCharacterBorder().

SvxShadowLocation SwFont::GetAbsShadowLocation ( const bool  bVertLayout,
const bool  bVertLayoutLRBT 
) const

Get the absolute shadow location dependent from orientation.

Parameters
[in]bVertLayouttrue, if the container layout is vertical false, otherwise
[in]bVertLayoutLRBTtrue if the container layout is vertical (bottom to top, left to right), false otherwise
Returns
absolute location

Definition at line 223 of file swfont.cxx.

References GetOrientation(), and m_aShadowLocation.

Referenced by CalcShadowSpace(), and PaintCharacterBorder().

const boost::optional< editeng::SvxBorderLine > & SwFont::GetAbsTopBorder ( const bool  bVertLayout,
const bool  bVertLayoutLRBT 
) const

Definition at line 128 of file swfont.cxx.

References GetOrientation(), m_aBottomBorder, m_aLeftBorder, m_aRightBorder, and m_aTopBorder.

Referenced by PaintCharacterBorder().

SwFontScript SwFont::GetActual ( ) const
inline
const SvxFont& SwFont::GetActualFont ( ) const
inline

Definition at line 182 of file swfont.hxx.

Referenced by AttrSetToLineHeight(), SwDropCapCache::CalcFontSize(), and sw_CalcCaseMap().

sal_uInt16 SwFont::GetAscent ( SwViewShell const *  pSh,
const OutputDevice rOut 
)
inline
const Color* SwFont::GetBackColor ( ) const
inline
const boost::optional<editeng::SvxBorderLine>& SwFont::GetBottomBorder ( ) const
inline

Definition at line 337 of file swfont.hxx.

Referenced by SwDropCapCache::CalcFontSize().

sal_uInt16 SwFont::GetBottomBorderDist ( ) const
inline

Definition at line 357 of file swfont.hxx.

sal_uInt16 SwFont::GetBottomBorderSpace ( ) const
inline
TextFrameIndex SwFont::GetCapitalBreak ( SwViewShell const *  pSh,
const OutputDevice pOut,
const SwScriptInfo pScript,
const OUString &  rText,
long  nTextWidth,
TextFrameIndex  nIdx,
TextFrameIndex  nLen 
)
SvxCaseMap SwFont::GetCaseMap ( ) const
inline
rtl_TextEncoding SwFont::GetCharSet ( const SwFontScript  nWhich) const
inline

Definition at line 291 of file swfont.hxx.

Referenced by SwTextSizeInfo::IsNoSymbol().

const Color& SwFont::GetColor ( ) const
inline

Definition at line 273 of file swfont.hxx.

Referenced by dumpAsXml(), GetUnderColor(), SetDiffFnt(), and SwFont().

TextFrameIndex SwFont::GetCursorOfst_ ( SwDrawTextInfo rInf)
inline

Definition at line 311 of file swfont.hxx.

Referenced by SwTextCursor::GetCursorOfst().

FontEmphasisMark SwFont::GetEmphasisMark ( ) const
inline
short SwFont::GetEscapement ( ) const
inline
const SvxFont& SwFont::GetFnt ( const SwFontScript  nWhich) const
inline

Definition at line 263 of file swfont.hxx.

Referenced by SwCombinedPortion::Format().

void SwFont::GetFontCacheId ( const void *&  rnFontCacheId,
sal_uInt16 &  rIdx,
SwFontScript  nWhich 
)
inline

Definition at line 194 of file swfont.hxx.

Referenced by SwDropCapCache::CalcFontSize(), and SwTextPortion::CreateHyphen().

long SwFont::GetHeight ( ) const
inline
long SwFont::GetHeight ( const SwFontScript  nWhich) const
inline

Definition at line 293 of file swfont.hxx.

sal_uInt16 SwFont::GetHeight ( SwViewShell const *  pSh,
const OutputDevice rOut 
)
inline

Definition at line 325 of file swfont.hxx.

const Color& SwFont::GetHighlightColor ( ) const
inline
sal_uInt8& SwFont::GetInputField ( )
inline

Definition at line 253 of file swfont.hxx.

Referenced by SwAttrHandler::ActivateTop(), and SwAttrHandler::FontChg().

FontItalic SwFont::GetItalic ( ) const
inline

Definition at line 278 of file swfont.hxx.

Referenced by SwTextPortion::BreakCut(), and SwTextGuess::Guess().

LanguageType SwFont::GetLanguage ( ) const
inline
LanguageType SwFont::GetLanguage ( const SwFontScript  nWhich) const
inline

Definition at line 289 of file swfont.hxx.

const boost::optional<editeng::SvxBorderLine>& SwFont::GetLeftBorder ( ) const
inline

Definition at line 339 of file swfont.hxx.

Referenced by SwTextPaintInfo::DrawText_(), and SwTextCursor::GetCursorOfst().

sal_uInt16 SwFont::GetLeftBorderDist ( ) const
inline

Definition at line 359 of file swfont.hxx.

sal_uInt16 SwFont::GetLeftBorderSpace ( ) const
inline
sal_uInt8& SwFont::GetMeta ( )
inline

Definition at line 251 of file swfont.hxx.

Referenced by SwAttrHandler::ActivateTop(), and SwAttrHandler::FontChg().

const OUString& SwFont::GetName ( const SwFontScript  nWhich) const
inline

Definition at line 287 of file swfont.hxx.

sal_uInt16 SwFont::GetOrientation ( const bool  bVertLayout = false,
const bool  bVertFormatLRBT = false 
) const
const Color& SwFont::GetOverColor ( ) const
inline

Definition at line 271 of file swfont.hxx.

Referenced by operator=(), and SwFont().

FontLineStyle SwFont::GetOverline ( ) const
inline
sal_uInt8 SwFont::GetPropr ( ) const
inline
sal_uInt8& SwFont::GetRef ( )
inline

Definition at line 249 of file swfont.hxx.

Referenced by SwAttrHandler::ActivateTop(), and SwAttrHandler::FontChg().

const boost::optional<editeng::SvxBorderLine>& SwFont::GetRightBorder ( ) const
inline

Definition at line 338 of file swfont.hxx.

Referenced by SwTextCursor::GetCharRect_(), and SwTextCursor::GetCursorOfst().

sal_uInt16 SwFont::GetRightBorderDist ( ) const
inline

Definition at line 358 of file swfont.hxx.

sal_uInt16 SwFont::GetRightBorderSpace ( ) const
inline
const Color& SwFont::GetShadowColor ( ) const
inline

Definition at line 374 of file swfont.hxx.

Referenced by PaintCharacterBorder().

SvxShadowLocation SwFont::GetShadowLocation ( ) const
inline

Definition at line 376 of file swfont.hxx.

sal_uInt16 SwFont::GetShadowWidth ( ) const
inline

Definition at line 375 of file swfont.hxx.

Referenced by PaintCharacterBorder().

const Size& SwFont::GetSize ( SwFontScript  nWhich) const
inline
FontStrikeout SwFont::GetStrikeout ( ) const
inline
TextFrameIndex SwFont::GetTextBreak ( SwDrawTextInfo const &  rInf,
long  nTextWidth 
)
Size SwFont::GetTextSize_ ( SwDrawTextInfo rInf)
inline
const boost::optional<editeng::SvxBorderLine>& SwFont::GetTopBorder ( ) const
inline

Definition at line 336 of file swfont.hxx.

Referenced by SwDropCapCache::CalcFontSize().

sal_uInt16 SwFont::GetTopBorderDist ( ) const
inline

Definition at line 356 of file swfont.hxx.

sal_uInt16 SwFont::GetTopBorderSpace ( ) const
inline
sal_uInt8& SwFont::GetTox ( )
inline
const Color& SwFont::GetUnderColor ( ) const
inline

Definition at line 269 of file swfont.hxx.

Referenced by GetUnderColor(), operator=(), and SwFont().

FontLineStyle SwFont::GetUnderline ( ) const
inline
FontWeight SwFont::GetWeight ( ) const
inline

Definition at line 281 of file swfont.hxx.

Referenced by SwTextPainter::CheckSpecialUnderline().

bool SwFont::HasBorder ( ) const
inline

Check whether font has any border on any side.

Definition at line 920 of file swfont.hxx.

References m_aBottomBorder, m_aLeftBorder, m_aRightBorder, and m_aTopBorder.

Referenced by SwDropCapCache::CalcFontSize(), and SwTextFormatter::MergeCharacterBorder().

void SwFont::Invalidate ( )
inline
bool SwFont::IsBlink ( ) const
inline

Definition at line 246 of file swfont.hxx.

bool SwFont::IsFntChg ( ) const
inline
bool SwFont::IsGreyWave ( ) const
inline

Definition at line 256 of file swfont.hxx.

bool SwFont::IsInputField ( ) const
inline

Definition at line 254 of file swfont.hxx.

bool SwFont::IsMeta ( ) const
inline

Definition at line 252 of file swfont.hxx.

bool SwFont::IsPaintBlank ( ) const
inline

Definition at line 257 of file swfont.hxx.

Referenced by SwTabPortion::Paint(), SwGluePortion::Paint(), and SwKernPortion::Paint().

bool SwFont::IsRef ( ) const
inline

Definition at line 250 of file swfont.hxx.

bool SwFont::IsSymbol ( SwViewShell const *  pSh)
inline
bool SwFont::IsTox ( ) const
inline

Definition at line 248 of file swfont.hxx.

bool SwFont::IsWordLineMode ( ) const
inline
SwFont & SwFont::operator= ( const SwFont rFont)
void SwFont::SetActual ( SwFontScript  nNew)
inline
void SwFont::SetAlign ( const FontAlign  eAlign)
inline

Definition at line 514 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SetDiffFnt(), SwFont(), and SwFontSave::SwFontSave().

void SwFont::SetAutoKern ( FontKerning  nAutoKern)
inline

Definition at line 630 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetBackColor ( Color pNewColor)
void SwFont::SetBlink ( const bool  bBlink)
inline

Definition at line 815 of file swfont.hxx.

References m_bBlink.

Referenced by SwAttrHandler::FontChg(), and SetDiffFnt().

void SwFont::SetBottomBorder ( const editeng::SvxBorderLine pBottomBorder)

Definition at line 88 of file swfont.cxx.

References CJK, CTL, Latin, m_aBottomBorder, m_aSub, m_bFontChg, and m_nBottomBorderDist.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetBottomBorderDist ( const sal_uInt16  nBottomDist)
inline
void SwFont::SetCaseMap ( const SvxCaseMap  eNew)
inline

Definition at line 654 of file swfont.hxx.

References CJK, CTL, Latin, and m_aSub.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetCharSet ( const rtl_TextEncoding  eCharSet,
const SwFontScript  nWhich 
)
inline

Definition at line 487 of file swfont.hxx.

References m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), and lcl_DrawSpecial().

void SwFont::SetColor ( const Color rColor)
inline
void SwFont::SetDiffFnt ( const SfxItemSet pSet,
const IDocumentSettingAccess pIDocumentSettingAccess 
)

Definition at line 496 of file swfont.cxx.

References ALIGN_BASELINE, CJK, CTL, IDocumentSettingAccess::get(), SvxBoxItem::GetBottom(), SvxFontItem::GetCharSet(), SvxShadowItem::GetColor(), GetColor(), SvxBoxItem::GetDistance(), SvxEscapementItem::GetEsc(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), SvxFontHeightItem::GetHeight(), SfxItemSet::GetItemState(), GetLanguage(), SvxBoxItem::GetLeft(), SvxShadowItem::GetLocation(), SvxFontItem::GetPitch(), SvxEscapementItem::GetProportionalHeight(), SvxBoxItem::GetRight(), SvxFontItem::GetStyleName(), SvxBoxItem::GetTop(), SvxShadowItem::GetWidth(), Invalidate(), KERN_ASIAN_PUNCTUATION, Latin, m_aSub, m_bBlink, m_bPaintBlank, m_pBackColor, RES_CHRATR_AUTOKERN, RES_CHRATR_BACKGROUND, RES_CHRATR_BLINK, RES_CHRATR_BOX, RES_CHRATR_CASEMAP, RES_CHRATR_CJK_FONT, RES_CHRATR_CJK_FONTSIZE, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CJK_POSTURE, RES_CHRATR_CJK_WEIGHT, RES_CHRATR_COLOR, RES_CHRATR_CONTOUR, RES_CHRATR_CROSSEDOUT, RES_CHRATR_CTL_FONT, RES_CHRATR_CTL_FONTSIZE, RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_CTL_POSTURE, RES_CHRATR_CTL_WEIGHT, RES_CHRATR_EMPHASIS_MARK, RES_CHRATR_ESCAPEMENT, RES_CHRATR_FONT, RES_CHRATR_FONTSIZE, RES_CHRATR_HIGHLIGHT, RES_CHRATR_KERNING, RES_CHRATR_LANGUAGE, RES_CHRATR_OVERLINE, RES_CHRATR_POSTURE, RES_CHRATR_RELIEF, RES_CHRATR_ROTATE, RES_CHRATR_SHADOW, RES_CHRATR_SHADOWED, RES_CHRATR_TWO_LINES, RES_CHRATR_UNDERLINE, RES_CHRATR_WEIGHT, RES_CHRATR_WORDLINEMODE, SetAlign(), SetAutoKern(), SetBlink(), SetBottomBorder(), SetBottomBorderDist(), SetCaseMap(), SetColor(), SetEmphasisMark(), SetEscapement(), SetFixKerning(), Size::setHeight(), SetHighlightColor(), SetLanguage(), SetLeftBorder(), SetLeftBorderDist(), SetOutline(), SetOverColor(), SetOverline(), SetProportion(), SetPropWidth(), SetRelief(), SetRightBorder(), SetRightBorderDist(), SetShadow(), SetShadowColor(), SetShadowLocation(), SetShadowWidth(), SetStrikeout(), SetTopBorder(), SetTopBorderDist(), SetTransparent(), SetUnderColor(), SetUnderline(), SetVertical(), and SetWordLineMode().

Referenced by checkApplyParagraphMarkFormatToNumbering(), SwTextFormatter::NewDropPortion(), and SwFootnoteSave::SwFootnoteSave().

void SwFont::SetEmphasisMark ( const FontEmphasisMark  eValue)
inline

Definition at line 682 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetEscapement ( const short  nNewEsc)
inline
void SwFont::SetFamily ( const FontFamily  eFamily,
const SwFontScript  nWhich 
)
inline

Definition at line 448 of file swfont.hxx.

References m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), and lcl_DrawSpecial().

void SwFont::SetFillColor ( const Color rColor)
inline

Definition at line 433 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwTextPainter::CheckSpecialUnderline().

void SwFont::SetFixKerning ( const short  nNewKern)
inline

Definition at line 647 of file swfont.hxx.

References CJK, CTL, Latin, and m_aSub.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetFntChg ( const bool  bNew)
inline
void SwFont::SetFontCacheId ( const void nNewFontCacheId,
const sal_uInt16  nIdx,
SwFontScript  nWhich 
)
inline
void SwFont::SetGreyWave ( const bool  bNew)
inline

Definition at line 820 of file swfont.hxx.

References m_bGreyWave.

Referenced by SwExtend::ActualizeFont().

void SwFont::SetHighlightColor ( const Color aNewColor)
inline
void SwFont::SetItalic ( const FontItalic  eItalic,
const SwFontScript  nWhich 
)
inline

Definition at line 587 of file swfont.hxx.

References m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg().

void SwFont::SetLanguage ( LanguageType  eNewLang,
const SwFontScript  nWhich 
)
inline

Definition at line 804 of file swfont.hxx.

References CJK, CTL, Latin, and m_aSub.

Referenced by SwAttrHandler::FontChg(), and SetDiffFnt().

void SwFont::SetLeftBorder ( const editeng::SvxBorderLine pLeftBorder)

Definition at line 114 of file swfont.cxx.

References CJK, CTL, Latin, m_aLeftBorder, m_aSub, m_bFontChg, and m_nLeftBorderDist.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetLeftBorderDist ( const sal_uInt16  nLeftDist)
inline
void SwFont::SetName ( const OUString &  rName,
const SwFontScript  nWhich 
)
inline

Definition at line 461 of file swfont.hxx.

References m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), and lcl_DrawSpecial().

void SwFont::SetOutline ( const bool  bOutline)
inline

Definition at line 600 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetOverColor ( const Color rColor)
inline

Definition at line 214 of file swfont.hxx.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetOverline ( const FontLineStyle  eOverline)
inline

Definition at line 557 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwTextPainter::CheckSpecialUnderline(), SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetPitch ( const FontPitch  ePitch,
const SwFontScript  nWhich 
)
inline

Definition at line 501 of file swfont.hxx.

References m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg().

void SwFont::SetProportion ( const sal_uInt8  nNewPropr)
inline
void SwFont::SetPropWidth ( const sal_uInt16  nNew)
inline

Definition at line 690 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetRelief ( const FontRelief  eNew)
inline

Definition at line 708 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetRightBorder ( const editeng::SvxBorderLine pRightBorder)

Definition at line 101 of file swfont.cxx.

References CJK, CTL, Latin, m_aRightBorder, m_aSub, m_bFontChg, and m_nRightBorderDist.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetRightBorderDist ( const sal_uInt16  nRightDist)
inline
void SwFont::SetShadow ( const bool  bShadow)
inline

Definition at line 615 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetShadowColor ( const Color rColor)
inline

Definition at line 925 of file swfont.hxx.

References CJK, CTL, Latin, m_aShadowColor, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetShadowLocation ( const SvxShadowLocation  aLocation)
inline

Definition at line 939 of file swfont.hxx.

References CJK, CTL, Latin, m_aShadowLocation, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetShadowWidth ( const sal_uInt16  nWidth)
inline

Definition at line 932 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, m_bFontChg, and m_nShadowWidth.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetSize ( const Size rSize,
const SwFontScript  nWhich 
)
inline
void SwFont::SetStrikeout ( const FontStrikeout  eStrikeout)
inline

Definition at line 572 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwTextPainter::CheckSpecialUnderline(), SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetStyleName ( const OUString &  rStyleName,
const SwFontScript  nWhich 
)
inline

Definition at line 474 of file swfont.hxx.

References m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), and lcl_DrawSpecial().

void SwFont::SetTopBorder ( const editeng::SvxBorderLine pTopBorder)

Definition at line 75 of file swfont.cxx.

References CJK, CTL, Latin, m_aSub, m_aTopBorder, m_bFontChg, and m_nTopBorderDist.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetTopBorderDist ( const sal_uInt16  nTopDist)
inline
void SwFont::SetTransparent ( const bool  bTrans)
inline

Definition at line 640 of file swfont.hxx.

References CJK, CTL, Latin, and m_aSub.

Referenced by SetDiffFnt(), SwFont(), and SwFontSave::SwFontSave().

void SwFont::SetUnderColor ( const Color rColor)
inline

Definition at line 212 of file swfont.hxx.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

void SwFont::SetUnderline ( const FontLineStyle  eUnderline)
inline
void SwFont::SetVertical ( sal_uInt16  nDir,
const bool  bVertLayout = false,
const bool  bVertLayoutLRBT = false 
)
void SwFont::SetWeight ( const FontWeight  eWeight,
const SwFontScript  nWhich 
)
inline

Definition at line 529 of file swfont.hxx.

References m_aSub, and m_bFontChg.

Referenced by SwTextPainter::CheckSpecialUnderline(), and SwAttrHandler::FontChg().

void SwFont::SetWordLineMode ( const bool  bWordLineMode)
inline

Definition at line 668 of file swfont.hxx.

References CJK, CTL, Latin, m_aSub, and m_bFontChg.

Referenced by SwAttrHandler::FontChg(), SetDiffFnt(), and SwFont().

Member Data Documentation

boost::optional<editeng::SvxBorderLine> SwFont::m_aBottomBorder
private
Color SwFont::m_aHighlightColor
private

Definition at line 135 of file swfont.hxx.

Referenced by operator=(), SetHighlightColor(), and SwFont().

boost::optional<editeng::SvxBorderLine> SwFont::m_aLeftBorder
private
Color SwFont::m_aOverColor
private

Definition at line 137 of file swfont.hxx.

Referenced by ChgPhysFnt(), operator=(), and SwFont().

boost::optional<editeng::SvxBorderLine> SwFont::m_aRightBorder
private
Color SwFont::m_aShadowColor
private

Definition at line 151 of file swfont.hxx.

Referenced by operator=(), SetShadowColor(), and SwFont().

SvxShadowLocation SwFont::m_aShadowLocation
private
o3tl::enumarray<SwFontScript, SwSubFont> SwFont::m_aSub
private
boost::optional<editeng::SvxBorderLine> SwFont::m_aTopBorder
private
Color SwFont::m_aUnderColor
private

Definition at line 136 of file swfont.hxx.

Referenced by ChgPhysFnt(), operator=(), and SwFont().

bool SwFont::m_bBlink
private

Definition at line 163 of file swfont.hxx.

Referenced by operator=(), SetBlink(), SetDiffFnt(), and SwFont().

bool SwFont::m_bFontChg
private
bool SwFont::m_bGreyWave
private

Definition at line 167 of file swfont.hxx.

Referenced by operator=(), SetGreyWave(), and SwFont().

bool SwFont::m_bOrgChg
private

Definition at line 166 of file swfont.hxx.

Referenced by ChgPhysFnt(), operator=(), SetActual(), SetEscapement(), SetProportion(), SetSize(), and SwFont().

bool SwFont::m_bPaintBlank
private

Definition at line 164 of file swfont.hxx.

Referenced by operator=(), SetDiffFnt(), and SwFont().

SwFontScript SwFont::m_nActual
private

Definition at line 160 of file swfont.hxx.

Referenced by ChgPhysFnt(), GetOrientation(), GetTextBreak(), operator=(), SetActual(), and SwFont().

sal_uInt16 SwFont::m_nBottomBorderDist
private
sal_uInt8 SwFont::m_nInputFieldCount
private

Definition at line 158 of file swfont.hxx.

Referenced by operator=(), and SwFont().

sal_uInt16 SwFont::m_nLeftBorderDist
private

Definition at line 149 of file swfont.hxx.

Referenced by GetLeftBorderSpace(), operator=(), SetLeftBorder(), SetLeftBorderDist(), and SwFont().

sal_uInt8 SwFont::m_nMetaCount
private

Definition at line 157 of file swfont.hxx.

Referenced by operator=(), and SwFont().

sal_uInt8 SwFont::m_nRefCount
private

Definition at line 156 of file swfont.hxx.

Referenced by operator=(), and SwFont().

sal_uInt16 SwFont::m_nRightBorderDist
private
sal_uInt16 SwFont::m_nShadowWidth
private
sal_uInt16 SwFont::m_nTopBorderDist
private

Definition at line 146 of file swfont.hxx.

Referenced by GetTopBorderSpace(), operator=(), SetTopBorder(), SetTopBorderDist(), and SwFont().

sal_uInt8 SwFont::m_nToxCount
private

Definition at line 155 of file swfont.hxx.

Referenced by operator=(), and SwFont().

std::unique_ptr<Color> SwFont::m_pBackColor
private

Definition at line 134 of file swfont.hxx.

Referenced by operator=(), SetBackColor(), SetDiffFnt(), and SwFont().


The documentation for this class was generated from the following files: