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

#include <swfont.hxx>

Inheritance diagram for SwSubFont:
[legend]
Collaboration diagram for SwSubFont:
[legend]

Public Member Functions

 SwSubFont ()
 
sal_uInt16 GetPropWidth () const
 
- Public Member Functions inherited from SvxFont
 SvxFont ()
 
 SvxFont (const vcl::Font &rFont)
 
 SvxFont (const SvxFont &rFont)
 
short GetEscapement () const
 
void SetEscapement (const short nNewEsc)
 
sal_uInt8 GetPropr () const
 
void SetPropr (const sal_uInt8 nNewPropr)
 
void SetProprRel (const sal_uInt8 nNewPropr)
 
short GetFixKerning () const
 
void SetFixKerning (const short nNewKern)
 
SvxCaseMap GetCaseMap () const
 
void SetCaseMap (const SvxCaseMap eNew)
 
bool IsCaseMap () const
 
bool IsCapital () const
 
bool IsKern () const
 
bool IsEsc () const
 
OUString CalcCaseMap (const OUString &rTxt) const
 
void DoOnCapitals (SvxDoCapitals &rDo) const
 
void SetPhysFont (OutputDevice *pOut) const
 
vcl::Font ChgPhysFont (OutputDevice *pOut) const
 
Size GetCapitalSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen) const
 
void DrawCapital (OutputDevice *pOut, const Point &rPos, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen) const
 
Size GetPhysTxtSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen) const
 
Size GetPhysTxtSize (const OutputDevice *pOut)
 
Size GetTextSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx=0, const sal_Int32 nLen=SAL_MAX_INT32) const
 
void QuickDrawText (OutputDevice *pOut, const Point &rPos, const OUString &rTxt, const sal_Int32 nIdx=0, const sal_Int32 nLen=SAL_MAX_INT32, const long *pDXArray=nullptr) const
 
Size QuickGetTextSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen, long *pDXArray=nullptr) const
 
void DrawPrev (OutputDevice *pOut, Printer *pPrinter, const Point &rPos, const OUString &rTxt, const sal_Int32 nIdx=0, const sal_Int32 nLen=SAL_MAX_INT32) const
 
SvxFontoperator= (const SvxFont &rFont)
 
SvxFontoperator= (const Font &rFont)
 

Private Member Functions

sal_uInt16 CalcEscAscent (const sal_uInt16 nOldAscent) const
 
sal_uInt16 CalcEscHeight (const sal_uInt16 nOldHeight, const sal_uInt16 nOldAscent) const
 
void CalcEsc (SwDrawTextInfo const &rInf, Point &rPos)
 
short CheckKerning_ ()
 
bool ChgFnt (SwViewShell const *pSh, OutputDevice &rOut)
 
bool IsSymbol (SwViewShell const *pSh)
 
sal_uInt16 GetAscent (SwViewShell const *pSh, const OutputDevice &rOut)
 
sal_uInt16 GetHeight (SwViewShell const *pSh, const OutputDevice &rOut)
 
Size GetTextSize_ (SwDrawTextInfo &rInf)
 
Size GetCapitalSize (SwDrawTextInfo &rInf)
 
void DrawText_ (SwDrawTextInfo &rInf, const bool bGrey)
 
void DrawCapital (SwDrawTextInfo &rInf)
 
void DrawStretchCapital (SwDrawTextInfo &rInf)
 
void DoOnCapitals (SwDoCapitals &rDo)
 
void DrawStretchText_ (SwDrawTextInfo &rInf)
 
TextFrameIndex GetCursorOfst_ (SwDrawTextInfo &rInf)
 
TextFrameIndex GetCapitalCursorOfst (SwDrawTextInfo &rInf)
 
void SetColor (const Color &rColor)
 
void SetFillColor (const Color &rColor)
 
void SetCharSet (const rtl_TextEncoding eCharSet)
 
void SetPitch (const FontPitch ePitch)
 
void SetAlign (const FontAlign eAlign)
 
void SetUnderline (const FontLineStyle eUnderline)
 
void SetOverline (const FontLineStyle eOverline)
 
void SetStrikeout (const FontStrikeout eStrikeout)
 
void SetItalic (const FontItalic eItalic)
 
void SetOutline (const bool bOutline)
 
void SetVertical (const sal_uInt16 nDir, const bool bVertFormat)
 
void SetShadow (const bool bShadow)
 
void SetAutoKern (FontKerning nAutoKern)
 
void SetWordLineMode (const bool bWordLineMode)
 
void SetEmphasisMark (const FontEmphasisMark eValue)
 
void SetRelief (const FontRelief eNew)
 
void SetEscapement (const short nNewEsc)
 
void SetProportion (const sal_uInt8 nNewPropr)
 
void SetFamily (const FontFamily eFamily)
 
void SetName (const OUString &rName)
 
void SetStyleName (const OUString &rStyleName)
 
void SetSize (const Size &rSize)
 
void SetWeight (const FontWeight eWeight)
 
void SetLanguage (LanguageType eNewLang)
 
short CheckKerning ()
 
void SetPropWidth (const sal_uInt16 nNew)
 

Private Attributes

const voidm_nFontCacheId
 
Size m_aSize
 
sal_uInt16 m_nFontIndex
 
sal_uInt16 m_nOrgHeight
 
sal_uInt16 m_nOrgAscent
 
sal_uInt16 m_nProportionalWidth
 
bool m_bSmallCapsPercentage66
 

Friends

class SwFont
 

Additional Inherited Members

- Static Public Member Functions inherited from SvxFont
static void DrawArrow (OutputDevice &rOut, const tools::Rectangle &rRect, const Size &rSize, const Color &rCol, bool bLeft)
 

Detailed Description

Definition at line 53 of file swfont.hxx.

Constructor & Destructor Documentation

SwSubFont::SwSubFont ( )
inline

Definition at line 117 of file swfont.hxx.

Member Function Documentation

void SwSubFont::CalcEsc ( SwDrawTextInfo const &  rInf,
Point rPos 
)
private
sal_uInt16 SwSubFont::CalcEscAscent ( const sal_uInt16  nOldAscent) const
private
sal_uInt16 SwSubFont::CalcEscHeight ( const sal_uInt16  nOldHeight,
const sal_uInt16  nOldAscent 
) const
private
short SwSubFont::CheckKerning ( )
inlineprivate
short SwSubFont::CheckKerning_ ( )
private

Definition at line 1018 of file swfont.cxx.

References SvxFont::GetFixKerning(), and Height.

Referenced by CheckKerning().

bool SwSubFont::ChgFnt ( SwViewShell const *  pSh,
OutputDevice rOut 
)
private
void SwSubFont::DoOnCapitals ( SwDoCapitals rDo)
private
void SwSubFont::DrawCapital ( SwDrawTextInfo rInf)
private

Definition at line 305 of file fntcap.cxx.

References DoOnCapitals(), LINESTYLE_NONE, SwDrawTextInfo::SetDrawSpace(), and STRIKEOUT_NONE.

Referenced by DrawText_().

void SwSubFont::DrawStretchCapital ( SwDrawTextInfo rInf)
private
void SwSubFont::DrawStretchText_ ( SwDrawTextInfo rInf)
private
void SwSubFont::DrawText_ ( SwDrawTextInfo rInf,
const bool  bGrey 
)
private
sal_uInt16 SwSubFont::GetAscent ( SwViewShell const *  pSh,
const OutputDevice rOut 
)
private
TextFrameIndex SwSubFont::GetCapitalCursorOfst ( SwDrawTextInfo rInf)
private
Size SwSubFont::GetCapitalSize ( SwDrawTextInfo rInf)
private
TextFrameIndex SwSubFont::GetCursorOfst_ ( SwDrawTextInfo rInf)
private
sal_uInt16 SwSubFont::GetHeight ( SwViewShell const *  pSh,
const OutputDevice rOut 
)
private
sal_uInt16 SwSubFont::GetPropWidth ( ) const
inline

Definition at line 119 of file swfont.hxx.

References m_nProportionalWidth.

Size SwSubFont::GetTextSize_ ( SwDrawTextInfo rInf)
private
bool SwSubFont::IsSymbol ( SwViewShell const *  pSh)
private

Definition at line 949 of file swfont.cxx.

References SwFntAccess::Get(), SwFntObj::IsSymbol(), m_nFontCacheId, and m_nFontIndex.

void SwSubFont::SetAlign ( const FontAlign  eAlign)
inlineprivate

Definition at line 511 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetAutoKern ( FontKerning  nAutoKern)
inlineprivate

Definition at line 627 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetCharSet ( const rtl_TextEncoding  eCharSet)
inlineprivate

Definition at line 484 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetColor ( const Color rColor)
inlineprivate

Definition at line 423 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetEmphasisMark ( const FontEmphasisMark  eValue)
inlineprivate

Definition at line 679 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetEscapement ( const short  nNewEsc)
inlineprivate

Definition at line 778 of file swfont.hxx.

References m_nFontCacheId, and SvxFont::SetEscapement().

void SwSubFont::SetFamily ( const FontFamily  eFamily)
inlineprivate

Definition at line 445 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetFillColor ( const Color rColor)
inlineprivate

Definition at line 430 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetItalic ( const FontItalic  eItalic)
inlineprivate

Definition at line 584 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetLanguage ( LanguageType  eNewLang)
inlineprivate
void SwSubFont::SetName ( const OUString &  rName)
inlineprivate

Definition at line 458 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetOutline ( const bool  bOutline)
inlineprivate

Definition at line 597 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetOverline ( const FontLineStyle  eOverline)
inlineprivate

Definition at line 554 of file swfont.hxx.

References m_nFontCacheId.

Referenced by DoOnCapitals().

void SwSubFont::SetPitch ( const FontPitch  ePitch)
inlineprivate

Definition at line 497 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetProportion ( const sal_uInt8  nNewPropr)
inlineprivate

Definition at line 757 of file swfont.hxx.

References Size::Height(), m_aSize, m_nFontCacheId, SvxFont::SetPropr(), and Size::Width().

Referenced by DoOnCapitals().

void SwSubFont::SetPropWidth ( const sal_uInt16  nNew)
inlineprivate

Definition at line 114 of file swfont.hxx.

void SwSubFont::SetRelief ( const FontRelief  eNew)
inlineprivate

Definition at line 705 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetShadow ( const bool  bShadow)
inlineprivate

Definition at line 612 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetSize ( const Size rSize)
inlineprivate

Definition at line 723 of file swfont.hxx.

References SvxFont::GetPropr(), Size::Height(), m_aSize, m_nFontCacheId, and Size::Width().

void SwSubFont::SetStrikeout ( const FontStrikeout  eStrikeout)
inlineprivate

Definition at line 569 of file swfont.hxx.

References m_nFontCacheId.

Referenced by DoOnCapitals().

void SwSubFont::SetStyleName ( const OUString &  rStyleName)
inlineprivate

Definition at line 471 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetUnderline ( const FontLineStyle  eUnderline)
inlineprivate

Definition at line 539 of file swfont.hxx.

References m_nFontCacheId.

Referenced by DoOnCapitals(), DrawStretchText_(), and DrawText_().

void SwSubFont::SetVertical ( const sal_uInt16  nDir,
const bool  bVertFormat 
)
inlineprivate

Definition at line 828 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetWeight ( const FontWeight  eWeight)
inlineprivate

Definition at line 526 of file swfont.hxx.

References m_nFontCacheId.

void SwSubFont::SetWordLineMode ( const bool  bWordLineMode)
inlineprivate

Definition at line 665 of file swfont.hxx.

References m_nFontCacheId.

Referenced by DoOnCapitals().

Friends And Related Function Documentation

friend class SwFont
friend

Definition at line 55 of file swfont.hxx.

Member Data Documentation

Size SwSubFont::m_aSize
private

Definition at line 57 of file swfont.hxx.

Referenced by SetProportion(), and SetSize().

bool SwSubFont::m_bSmallCapsPercentage66
private

Definition at line 62 of file swfont.hxx.

Referenced by DoOnCapitals().

const void* SwSubFont::m_nFontCacheId
private
sal_uInt16 SwSubFont::m_nFontIndex
private

Definition at line 58 of file swfont.hxx.

Referenced by ChgFnt(), GetAscent(), GetHeight(), and IsSymbol().

sal_uInt16 SwSubFont::m_nOrgAscent
private

Definition at line 60 of file swfont.hxx.

Referenced by CalcEsc(), CalcEscAscent(), and CalcEscHeight().

sal_uInt16 SwSubFont::m_nOrgHeight
private

Definition at line 59 of file swfont.hxx.

Referenced by CalcEsc(), CalcEscAscent(), and CalcEscHeight().

sal_uInt16 SwSubFont::m_nProportionalWidth
private

Definition at line 61 of file swfont.hxx.

Referenced by GetPropWidth().


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