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

#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)
 
void SetNonAutoEscapement (short nNewEsc, const OutputDevice *pOutDev=nullptr)
 
sal_uInt8 GetPropr () const
 
void SetPropr (const sal_uInt8 nNewPropr)
 
void SetProprRel (const sal_uInt8 nNewPropr)
 
SvxCaseMap GetCaseMap () const
 
void SetCaseMap (const SvxCaseMap eNew)
 
bool IsCaseMap () const
 
bool IsCapital () const
 
bool IsEsc () const
 
OUString CalcCaseMap (const OUString &rTxt) const
 
void DoOnCapitals (SvxDoCapitals &rDo) const
 
void SetPhysFont (OutputDevice &rOut) const
 
vcl::Font ChgPhysFont (OutputDevice &rOut) 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 &rOut, 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, o3tl::span< const sal_Int32 > pDXArray={}, o3tl::span< const sal_Bool > pKashidaArray={}) const
 
Size QuickGetTextSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen, std::vector< sal_Int32 > *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)
 
sal_uInt16 GetHangingBaseline (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 GetModelPositionForViewPoint_ (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 TextAlign 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 Degree10 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 void * m_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 tools::Polygon DrawArrow (OutputDevice &rOut, const tools::Rectangle &rRect, const Size &rSize, const Color &rCol, bool bLeftOrTop, bool bVertical)
 

Detailed Description

Definition at line 53 of file swfont.hxx.

Constructor & Destructor Documentation

◆ SwSubFont()

SwSubFont::SwSubFont ( )
inline

Member Function Documentation

◆ CalcEsc()

void SwSubFont::CalcEsc ( SwDrawTextInfo const &  rInf,
Point rPos 
)
private

◆ CalcEscAscent()

sal_uInt16 SwSubFont::CalcEscAscent ( const sal_uInt16  nOldAscent) const
private

◆ CalcEscHeight()

sal_uInt16 SwSubFont::CalcEscHeight ( const sal_uInt16  nOldHeight,
const sal_uInt16  nOldAscent 
) const
private

◆ CheckKerning()

short SwSubFont::CheckKerning ( )
inlineprivate

◆ CheckKerning_()

short SwSubFont::CheckKerning_ ( )
private

Definition at line 939 of file swfont.cxx.

References Height.

Referenced by CheckKerning().

◆ ChgFnt()

bool SwSubFont::ChgFnt ( SwViewShell const *  pSh,
OutputDevice rOut 
)
private

◆ DoOnCapitals()

void SwSubFont::DoOnCapitals ( SwDoCapitals rDo)
private

◆ DrawCapital()

void SwSubFont::DrawCapital ( SwDrawTextInfo rInf)
private

Definition at line 322 of file fntcap.cxx.

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

Referenced by DrawText_().

◆ DrawStretchCapital()

void SwSubFont::DrawStretchCapital ( SwDrawTextInfo rInf)
private

◆ DrawStretchText_()

void SwSubFont::DrawStretchText_ ( SwDrawTextInfo rInf)
private

◆ DrawText_()

void SwSubFont::DrawText_ ( SwDrawTextInfo rInf,
const bool  bGrey 
)
private

◆ GetAscent()

sal_uInt16 SwSubFont::GetAscent ( SwViewShell const *  pSh,
const OutputDevice rOut 
)
private

◆ GetCapitalCursorOfst()

TextFrameIndex SwSubFont::GetCapitalCursorOfst ( SwDrawTextInfo rInf)
private

◆ GetCapitalSize()

Size SwSubFont::GetCapitalSize ( SwDrawTextInfo rInf)
private

◆ GetHangingBaseline()

sal_uInt16 SwSubFont::GetHangingBaseline ( SwViewShell const *  pSh,
const OutputDevice rOut 
)
private

◆ GetHeight()

sal_uInt16 SwSubFont::GetHeight ( SwViewShell const *  pSh,
const OutputDevice rOut 
)
private

◆ GetModelPositionForViewPoint_()

TextFrameIndex SwSubFont::GetModelPositionForViewPoint_ ( SwDrawTextInfo rInf)
private

◆ GetPropWidth()

sal_uInt16 SwSubFont::GetPropWidth ( ) const
inline

Definition at line 120 of file swfont.hxx.

References m_nProportionalWidth.

Referenced by SwFntAccess::SwFntAccess().

◆ GetTextSize_()

Size SwSubFont::GetTextSize_ ( SwDrawTextInfo rInf)
private

◆ IsSymbol()

bool SwSubFont::IsSymbol ( SwViewShell const *  pSh)
private

Definition at line 870 of file swfont.cxx.

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

◆ SetAlign()

void SwSubFont::SetAlign ( const TextAlign  eAlign)
inlineprivate

Definition at line 515 of file swfont.hxx.

References m_nFontCacheId.

◆ SetAutoKern()

void SwSubFont::SetAutoKern ( FontKerning  nAutoKern)
inlineprivate

Definition at line 631 of file swfont.hxx.

References m_nFontCacheId.

◆ SetCharSet()

void SwSubFont::SetCharSet ( const rtl_TextEncoding  eCharSet)
inlineprivate

Definition at line 488 of file swfont.hxx.

References m_nFontCacheId.

◆ SetColor()

void SwSubFont::SetColor ( const Color rColor)
inlineprivate

Definition at line 427 of file swfont.hxx.

References m_nFontCacheId.

◆ SetEmphasisMark()

void SwSubFont::SetEmphasisMark ( const FontEmphasisMark  eValue)
inlineprivate

Definition at line 683 of file swfont.hxx.

References m_nFontCacheId.

◆ SetEscapement()

void SwSubFont::SetEscapement ( const short  nNewEsc)
inlineprivate

Definition at line 782 of file swfont.hxx.

References m_nFontCacheId, and SvxFont::SetEscapement().

◆ SetFamily()

void SwSubFont::SetFamily ( const FontFamily  eFamily)
inlineprivate

Definition at line 449 of file swfont.hxx.

References m_nFontCacheId.

◆ SetFillColor()

void SwSubFont::SetFillColor ( const Color rColor)
inlineprivate

Definition at line 434 of file swfont.hxx.

References m_nFontCacheId.

◆ SetItalic()

void SwSubFont::SetItalic ( const FontItalic  eItalic)
inlineprivate

Definition at line 588 of file swfont.hxx.

References m_nFontCacheId.

◆ SetLanguage()

void SwSubFont::SetLanguage ( LanguageType  eNewLang)
inlineprivate

◆ SetName()

void SwSubFont::SetName ( const OUString &  rName)
inlineprivate

Definition at line 462 of file swfont.hxx.

References m_nFontCacheId.

◆ SetOutline()

void SwSubFont::SetOutline ( const bool  bOutline)
inlineprivate

Definition at line 601 of file swfont.hxx.

References m_nFontCacheId.

◆ SetOverline()

void SwSubFont::SetOverline ( const FontLineStyle  eOverline)
inlineprivate

Definition at line 558 of file swfont.hxx.

References m_nFontCacheId.

Referenced by DoOnCapitals().

◆ SetPitch()

void SwSubFont::SetPitch ( const FontPitch  ePitch)
inlineprivate

Definition at line 501 of file swfont.hxx.

References m_nFontCacheId.

◆ SetProportion()

void SwSubFont::SetProportion ( const sal_uInt8  nNewPropr)
inlineprivate

Definition at line 761 of file swfont.hxx.

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

Referenced by DoOnCapitals().

◆ SetPropWidth()

void SwSubFont::SetPropWidth ( const sal_uInt16  nNew)
inlineprivate

Definition at line 115 of file swfont.hxx.

References m_nFontCacheId, and m_nProportionalWidth.

◆ SetRelief()

void SwSubFont::SetRelief ( const FontRelief  eNew)
inlineprivate

Definition at line 709 of file swfont.hxx.

References m_nFontCacheId.

◆ SetShadow()

void SwSubFont::SetShadow ( const bool  bShadow)
inlineprivate

Definition at line 616 of file swfont.hxx.

References m_nFontCacheId.

◆ SetSize()

void SwSubFont::SetSize ( const Size rSize)
inlineprivate

Definition at line 727 of file swfont.hxx.

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

◆ SetStrikeout()

void SwSubFont::SetStrikeout ( const FontStrikeout  eStrikeout)
inlineprivate

Definition at line 573 of file swfont.hxx.

References m_nFontCacheId.

Referenced by DoOnCapitals().

◆ SetStyleName()

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

Definition at line 475 of file swfont.hxx.

References m_nFontCacheId.

◆ SetUnderline()

void SwSubFont::SetUnderline ( const FontLineStyle  eUnderline)
inlineprivate

Definition at line 543 of file swfont.hxx.

References m_nFontCacheId.

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

◆ SetVertical()

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

Definition at line 827 of file swfont.hxx.

References m_nFontCacheId.

◆ SetWeight()

void SwSubFont::SetWeight ( const FontWeight  eWeight)
inlineprivate

Definition at line 530 of file swfont.hxx.

References m_nFontCacheId.

◆ SetWordLineMode()

void SwSubFont::SetWordLineMode ( const bool  bWordLineMode)
inlineprivate

Definition at line 669 of file swfont.hxx.

References m_nFontCacheId.

Referenced by DoOnCapitals().

Friends And Related Function Documentation

◆ SwFont

friend class SwFont
friend

Definition at line 55 of file swfont.hxx.

Member Data Documentation

◆ m_aSize

Size SwSubFont::m_aSize
private

Definition at line 57 of file swfont.hxx.

Referenced by SetProportion(), and SetSize().

◆ m_bSmallCapsPercentage66

bool SwSubFont::m_bSmallCapsPercentage66
private

Definition at line 62 of file swfont.hxx.

Referenced by DoOnCapitals(), and SwSubFont().

◆ m_nFontCacheId

const void* SwSubFont::m_nFontCacheId
private

◆ m_nFontIndex

sal_uInt16 SwSubFont::m_nFontIndex
private

Definition at line 58 of file swfont.hxx.

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

◆ m_nOrgAscent

sal_uInt16 SwSubFont::m_nOrgAscent
private

Definition at line 60 of file swfont.hxx.

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

◆ m_nOrgHeight

sal_uInt16 SwSubFont::m_nOrgHeight
private

Definition at line 59 of file swfont.hxx.

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

◆ m_nProportionalWidth

sal_uInt16 SwSubFont::m_nProportionalWidth
private

Definition at line 61 of file swfont.hxx.

Referenced by GetPropWidth(), SetPropWidth(), and SwSubFont().


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