LibreOffice Module sw (master)
1
|
#include <swfont.hxx>
Public Member Functions | |
SwSubFont () | |
sal_uInt16 | GetPropWidth () const |
![]() | |
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) |
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 tools::Long *pDXArray=nullptr) const |
Size | QuickGetTextSize (const OutputDevice *pOut, const OUString &rTxt, const sal_Int32 nIdx, const sal_Int32 nLen, tools::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 |
SvxFont & | operator= (const SvxFont &rFont) |
SvxFont & | operator= (const Font &rFont) |
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 void | DrawArrow (OutputDevice &rOut, const tools::Rectangle &rRect, const Size &rSize, const Color &rCol, bool bLeft) |
Definition at line 53 of file swfont.hxx.
|
inline |
Definition at line 117 of file swfont.hxx.
|
private |
Definition at line 1388 of file swfont.cxx.
References DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get(), SvxFont::GetEscapement(), SwFntObj::GetFontAscent(), SwFntObj::GetFontHeight(), SwDrawTextInfo::GetFrame(), SwDrawTextInfo::GetOut(), SwDrawTextInfo::GetShell(), SwFrame::IsVertical(), SwFrame::IsVertLRBT(), m_nOrgAscent, m_nOrgHeight, pLastFont, and UnMapDirection().
Referenced by DrawStretchText_(), and DrawText_().
|
private |
Definition at line 480 of file swfont.cxx.
References DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, SvxFont::GetEscapement(), m_nOrgAscent, and m_nOrgHeight.
Referenced by CalcEscHeight(), and GetAscent().
|
private |
Definition at line 992 of file swfont.cxx.
References CalcEscAscent(), DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, SvxFont::GetEscapement(), m_nOrgAscent, and m_nOrgHeight.
Referenced by GetHeight(), and GetTextSize_().
|
inlineprivate |
Definition at line 112 of file swfont.hxx.
References CheckKerning_(), and SvxFont::GetFixKerning().
Referenced by DrawStretchText_(), DrawText_(), GetCapitalCursorOfst(), GetCapitalSize(), GetModelPositionForViewPoint_(), and GetTextSize_().
|
private |
Definition at line 1008 of file swfont.cxx.
References SvxFont::GetFixKerning(), and Height.
Referenced by CheckKerning().
|
private |
Definition at line 945 of file swfont.cxx.
References SwFntAccess::Get(), LINESTYLE_NONE, SwCacheObj::Lock(), m_nFontCacheId, m_nFontIndex, pLastFont, SwFntObj::SetDevFont(), STRIKEOUT_NONE, SV_STAT, and SwCacheObj::Unlock().
Referenced by DrawStretchText_(), DrawText_(), GetModelPositionForViewPoint_(), and GetTextSize_().
|
private |
Definition at line 485 of file fntcap.cxx.
References Size::AdjustWidth(), SvxFont::CalcCaseMap(), CH_BLANK, SwDoCapitals::Do(), g_pBreakIt, SwBreakIt::GetBreakIter(), SwDrawTextInfo::GetDrawSpace(), SwDrawTextInfo::GetIdx(), SwDoCapitals::GetInf(), SwDrawTextInfo::GetKanaDiff(), SwDrawTextInfo::GetKern(), SwLangHelper::GetLanguage(), SwDrawTextInfo::GetLen(), SwBreakIt::GetLocale(), SwDoCapitals::GetOut(), SwDrawTextInfo::GetPos(), SvxFont::GetPropr(), SwFntObj::GetPrt(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetSpace(), SwDrawTextInfo::GetText(), SwFntObj::GetTextSize(), SwDoCapitals::Init(), LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, LINESTYLE_NONE, m_bSmallCapsPercentage66, nPos, pLastFont, Point, SwDoCapitals::SetCapInf(), SwFntObj::SetDevFont(), SwDrawTextInfo::SetIdx(), SwDrawTextInfo::SetKanaDiff(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetOut(), SetOverline(), SetProportion(), SwDrawTextInfo::SetSize(), SetStrikeout(), SwDrawTextInfo::SetText(), SetUnderline(), SwDrawTextInfo::SetUpper(), SetWordLineMode(), SMALL_CAPS_PERCENTAGE, SPACING_PRECISION_FACTOR, STRIKEOUT_NONE, and SV_STAT.
Referenced by DrawCapital(), DrawStretchCapital(), GetCapitalCursorOfst(), and GetCapitalSize().
|
private |
Definition at line 318 of file fntcap.cxx.
References DoOnCapitals(), LINESTYLE_NONE, SwDrawTextInfo::SetDrawSpace(), and STRIKEOUT_NONE.
Referenced by DrawText_().
|
private |
Definition at line 467 of file fntcap.cxx.
References COMPLETE_STRING, DoOnCapitals(), GetCapitalSize(), SwDrawTextInfo::GetLen(), SwDrawTextInfo::GetPos(), SwDrawTextInfo::GetText(), LINESTYLE_NONE, Point, SwDrawTextInfo::SetDrawSpace(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetPos(), STRIKEOUT_NONE, and Size::Width().
Referenced by DrawStretchText_().
|
private |
Definition at line 1273 of file swfont.cxx.
References SwDrawTextInfo::ApplyAutoColor(), SvxFont::CalcCaseMap(), CalcEsc(), CheckKerning(), ChgFnt(), DrawStretchCapital(), OutputDevice::DrawStretchText(), SwFont::DrawStretchText_(), SvxFont::GetEscapement(), SwDrawTextInfo::GetFont(), SwUnderlineFont::GetFont(), SwDrawTextInfo::GetFrame(), SwDrawTextInfo::GetIdx(), SwFont::GetLanguage(), SwDrawTextInfo::GetLen(), SwDrawTextInfo::GetOut(), SwCacheObj::GetOwner(), SwDrawTextInfo::GetPos(), SwUnderlineFont::GetPos(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetSperren(), SwDrawTextInfo::GetText(), SwDrawTextInfo::GetUnderFnt(), SwDrawTextInfo::GetWidth(), SvxFont::IsCapital(), SvxFont::IsCaseMap(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), LINESTYLE_NONE, m_nFontCacheId, pLastFont, Point, SwDrawTextInfo::SetIdx(), SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetText(), SwDrawTextInfo::SetUnderFnt(), SetUnderline(), SPACING_PRECISION_FACTOR, SV_STAT, SwTextFrame::SwitchHorizontalToVertical(), and SwTextFrame::SwitchLTRtoRTL().
|
private |
Definition at line 1140 of file swfont.cxx.
References SvxFont::CalcCaseMap(), CalcEsc(), CH_BLANK, CheckKerning(), ChgFnt(), CJK, COMPLETE_STRING, DrawCapital(), SwFont::DrawStretchText_(), SwFntObj::DrawText(), SwFont::GetActual(), SvxFont::GetEscapement(), SwDrawTextInfo::GetFont(), SwUnderlineFont::GetFont(), SwDrawTextInfo::GetIdx(), SwFont::GetLanguage(), SwDrawTextInfo::GetLen(), SwDrawTextInfo::GetOut(), SwCacheObj::GetOwner(), SwDrawTextInfo::GetPos(), SwUnderlineFont::GetPos(), SwDrawTextInfo::GetScriptInfo(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetSpace(), SwDrawTextInfo::GetSperren(), SwDrawTextInfo::GetText(), GetTextSize_(), SwDrawTextInfo::GetUnderFnt(), SvxFont::IsCapital(), SvxFont::IsCaseMap(), SwDrawTextInfo::IsSpaceStop(), LINESTYLE_NONE, m_nFontCacheId, pLastFont, Point, SwDrawTextInfo::SetGreyWave(), SwDrawTextInfo::SetIdx(), SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetText(), SwDrawTextInfo::SetUnderFnt(), SetUnderline(), SwDrawTextInfo::SetWidth(), SPACING_PRECISION_FACTOR, SV_STAT, and Size::Width().
|
private |
Definition at line 1017 of file swfont.cxx.
References CalcEscAscent(), SwFntAccess::Get(), SvxFont::GetEscapement(), SwFntObj::GetFontAscent(), m_nFontCacheId, and m_nFontIndex.
|
private |
Definition at line 394 of file fntcap.cxx.
References CheckKerning(), DoOnCapitals(), SwDrawTextInfo::GetKern(), SwDrawTextInfo::GetOffset(), Point, SwDrawTextInfo::SetDrawSpace(), SwDrawTextInfo::SetKern(), and SwDrawTextInfo::SetPos().
Referenced by GetModelPositionForViewPoint_().
|
private |
Definition at line 138 of file fntcap.cxx.
References CheckKerning(), DoOnCapitals(), SwDrawTextInfo::GetKern(), SwDrawTextInfo::GetpOut(), OutputDevice::GetTextHeight(), Point, SwDrawTextInfo::SetDrawSpace(), SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetSpace(), and SV_STAT.
Referenced by DrawStretchCapital(), and GetTextSize_().
|
private |
Definition at line 1024 of file swfont.cxx.
References CalcEscHeight(), SwFntAccess::Get(), SvxFont::GetEscapement(), SwFntObj::GetFontAscent(), SwFntObj::GetFontHeight(), m_nFontCacheId, m_nFontIndex, and SV_STAT.
|
private |
Definition at line 1355 of file swfont.cxx.
References SvxFont::CalcCaseMap(), CheckKerning(), ChgFnt(), COMPLETE_STRING, GetCapitalCursorOfst(), SwDrawTextInfo::GetFont(), SwDrawTextInfo::GetKern(), SwFont::GetLanguage(), SwDrawTextInfo::GetLen(), SwFntObj::GetModelPositionForViewPoint(), SwDrawTextInfo::GetOut(), SwCacheObj::GetOwner(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetText(), SvxFont::IsCapital(), SvxFont::IsCaseMap(), m_nFontCacheId, pLastFont, SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetText(), and SV_STAT.
|
inline |
Definition at line 119 of file swfont.hxx.
References m_nProportionalWidth.
|
private |
Definition at line 1037 of file swfont.cxx.
References assert(), SvxFont::CalcCaseMap(), CalcEscHeight(), CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_SUBST_FIELDEND, CH_TXT_ATR_SUBST_FIELDSTART, CheckKerning(), ChgFnt(), COMPLETE_STRING, GetCapitalSize(), SvxFont::GetEscapement(), OutputDevice::GetFont(), SwDrawTextInfo::GetFont(), SwFntObj::GetFontAscent(), SwDrawTextInfo::GetIdx(), SwDrawTextInfo::GetKern(), SwFont::GetLanguage(), SwDrawTextInfo::GetLen(), SwDrawTextInfo::GetOut(), SwCacheObj::GetOwner(), SwDrawTextInfo::GetpOut(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetText(), SwFntObj::GetTextSize(), SvxFont::IsCapital(), SvxFont::IsCaseMap(), m_nFontCacheId, pLastFont, SwDrawTextInfo::SetIdx(), SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetText(), and SV_STAT.
Referenced by DrawText_().
|
private |
Definition at line 939 of file swfont.cxx.
References SwFntAccess::Get(), SwFntObj::IsSymbol(), m_nFontCacheId, and m_nFontIndex.
Definition at line 508 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 624 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 481 of file swfont.hxx.
References m_nFontCacheId.
Definition at line 420 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 676 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 775 of file swfont.hxx.
References m_nFontCacheId, and SvxFont::SetEscapement().
|
inlineprivate |
Definition at line 442 of file swfont.hxx.
References m_nFontCacheId.
Definition at line 427 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 581 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 796 of file swfont.hxx.
References GetAppLanguage(), LANGUAGE_SYSTEM, m_nFontCacheId, and SwLangHelper::SetLanguage().
|
inlineprivate |
Definition at line 455 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 594 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 494 of file swfont.hxx.
References m_nFontCacheId.
Definition at line 754 of file swfont.hxx.
References Size::Height(), m_aSize, m_nFontCacheId, SvxFont::SetPropr(), and Size::Width().
Referenced by DoOnCapitals().
|
inlineprivate |
Definition at line 114 of file swfont.hxx.
|
inlineprivate |
Definition at line 702 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 609 of file swfont.hxx.
References m_nFontCacheId.
Definition at line 720 of file swfont.hxx.
References SvxFont::GetPropr(), Size::Height(), m_aSize, m_nFontCacheId, and Size::Width().
|
inlineprivate |
|
inlineprivate |
Definition at line 468 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 536 of file swfont.hxx.
References m_nFontCacheId.
Referenced by DoOnCapitals(), DrawStretchText_(), and DrawText_().
Definition at line 820 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 523 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
|
friend |
Definition at line 55 of file swfont.hxx.
|
private |
Definition at line 57 of file swfont.hxx.
Referenced by SetProportion(), and SetSize().
|
private |
Definition at line 62 of file swfont.hxx.
Referenced by DoOnCapitals().
|
private |
Definition at line 56 of file swfont.hxx.
Referenced by ChgFnt(), DrawStretchText_(), DrawText_(), GetAscent(), GetHeight(), GetModelPositionForViewPoint_(), GetTextSize_(), IsSymbol(), SetAlign(), SetAutoKern(), SetCharSet(), SetColor(), SetEmphasisMark(), SetEscapement(), SetFamily(), SetFillColor(), SetItalic(), SetLanguage(), SetName(), SetOutline(), SetOverline(), SetPitch(), SetProportion(), SetRelief(), SetShadow(), SetSize(), SetStrikeout(), SetStyleName(), SetUnderline(), SetVertical(), SetWeight(), and SetWordLineMode().
|
private |
Definition at line 58 of file swfont.hxx.
Referenced by ChgFnt(), GetAscent(), GetHeight(), and IsSymbol().
|
private |
Definition at line 60 of file swfont.hxx.
Referenced by CalcEsc(), CalcEscAscent(), and CalcEscHeight().
|
private |
Definition at line 59 of file swfont.hxx.
Referenced by CalcEsc(), CalcEscAscent(), and CalcEscHeight().
|
private |
Definition at line 61 of file swfont.hxx.
Referenced by GetPropWidth().