LibreOffice Module sw (master) 1
|
#include <swfont.hxx>
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, KernArray *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 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) |
Definition at line 53 of file swfont.hxx.
|
inline |
Definition at line 118 of file swfont.hxx.
References m_bSmallCapsPercentage66, m_nFontCacheId, m_nFontIndex, m_nOrgAscent, m_nOrgHeight, and m_nProportionalWidth.
|
private |
Definition at line 1333 of file swfont.cxx.
References Point::AdjustX(), Point::AdjustY(), DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, o3tl::strong_int< typename UNDERLYING_TYPE, typename 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 460 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 923 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 113 of file swfont.hxx.
References CheckKerning_().
Referenced by DrawStretchText_(), DrawText_(), GetCapitalCursorOfst(), GetCapitalSize(), GetModelPositionForViewPoint_(), and GetTextSize_().
|
private |
|
private |
Definition at line 876 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 495 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, min(), nPos, pLastFont, SwDoCapitals::SetCapInf(), SwFntObj::SetDevFont(), SwDrawTextInfo::SetIdx(), SwDrawTextInfo::SetIdxLen(), SwDrawTextInfo::SetKanaDiff(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetOut(), SetOverline(), SetProportion(), SwDrawTextInfo::SetSize(), SetStrikeout(), SwDrawTextInfo::SetText(), SwDrawTextInfo::SetTextIdxLen(), 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 322 of file fntcap.cxx.
References DoOnCapitals(), LINESTYLE_NONE, SwDrawTextInfo::SetDrawSpace(), and STRIKEOUT_NONE.
Referenced by DrawText_().
|
private |
Definition at line 477 of file fntcap.cxx.
References COMPLETE_STRING, DoOnCapitals(), GetCapitalSize(), SwDrawTextInfo::GetLen(), SwDrawTextInfo::GetPos(), SwDrawTextInfo::GetText(), LINESTYLE_NONE, SwDrawTextInfo::SetDrawSpace(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetPos(), STRIKEOUT_NONE, and Width.
Referenced by DrawStretchText_().
|
private |
Definition at line 1222 of file swfont.cxx.
References SwDrawTextInfo::ApplyAutoColor(), SvxFont::CalcCaseMap(), CalcEsc(), CheckKerning(), ChgFnt(), DrawStretchCapital(), OutputDevice::DrawStretchText(), SwFont::DrawStretchText_(), SwDrawTextInfo::GetCharacterSpacing(), SvxFont::GetEscapement(), SwUnderlineFont::GetFont(), SwDrawTextInfo::GetFont(), SwDrawTextInfo::GetFrame(), SwDrawTextInfo::GetIdx(), SwFont::GetLanguage(), SwDrawTextInfo::GetLen(), SwDrawTextInfo::GetOut(), SwCacheObj::GetOwner(), SwDrawTextInfo::GetPos(), SwUnderlineFont::GetPos(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetText(), SwDrawTextInfo::GetUnderFnt(), SwDrawTextInfo::GetWidth(), SvxFont::IsCapital(), SvxFont::IsCaseMap(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), LINESTYLE_NONE, m_nFontCacheId, pLastFont, SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetTextIdxLen(), SwDrawTextInfo::SetUnderFnt(), SetUnderline(), SPACING_PRECISION_FACTOR, SV_STAT, SwTextFrame::SwitchHorizontalToVertical(), and SwTextFrame::SwitchLTRtoRTL().
|
private |
Definition at line 1093 of file swfont.cxx.
References SvxFont::CalcCaseMap(), CalcEsc(), CH_BLANK, CheckKerning(), ChgFnt(), CJK, COMPLETE_STRING, DrawCapital(), SwFont::DrawStretchText_(), SwFntObj::DrawText(), SwFont::GetActual(), SwDrawTextInfo::GetCharacterSpacing(), SvxFont::GetEscapement(), SwUnderlineFont::GetFont(), SwDrawTextInfo::GetFont(), SwDrawTextInfo::GetIdx(), SwFont::GetLanguage(), SwDrawTextInfo::GetLen(), SwDrawTextInfo::GetOut(), SwCacheObj::GetOwner(), SwDrawTextInfo::GetPos(), SwUnderlineFont::GetPos(), SwDrawTextInfo::GetScriptInfo(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetSpace(), SwDrawTextInfo::GetText(), GetTextSize_(), SwDrawTextInfo::GetUnderFnt(), SvxFont::IsCapital(), SvxFont::IsCaseMap(), SwDrawTextInfo::IsSpaceStop(), LINESTYLE_NONE, m_nFontCacheId, pLastFont, SwScriptInfo::ScriptType(), SwDrawTextInfo::SetGreyWave(), SwDrawTextInfo::SetIdx(), SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetText(), SwDrawTextInfo::SetTextIdxLen(), SwDrawTextInfo::SetUnderFnt(), SetUnderline(), SwDrawTextInfo::SetWidth(), SPACING_PRECISION_FACTOR, SV_STAT, and Size::Width().
|
private |
Definition at line 948 of file swfont.cxx.
References CalcEscAscent(), SwFntAccess::Get(), SvxFont::GetEscapement(), SwFntObj::GetFontAscent(), m_nFontCacheId, and m_nFontIndex.
|
private |
Definition at line 403 of file fntcap.cxx.
References CheckKerning(), DoOnCapitals(), SwDrawTextInfo::GetKern(), SwDrawTextInfo::GetOffset(), SwDrawTextInfo::SetDrawSpace(), SwDrawTextInfo::SetKern(), and SwDrawTextInfo::SetPos().
Referenced by GetModelPositionForViewPoint_().
|
private |
Definition at line 139 of file fntcap.cxx.
References CheckKerning(), DoOnCapitals(), SwDrawTextInfo::GetKern(), SwDrawTextInfo::GetpOut(), OutputDevice::GetTextHeight(), Size::Height(), SwDrawTextInfo::SetDrawSpace(), Size::setHeight(), SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetSpace(), and SV_STAT.
Referenced by DrawStretchCapital(), and GetTextSize_().
|
private |
Definition at line 968 of file swfont.cxx.
References SwFntAccess::Get(), SwFntObj::GetFontHangingBaseline(), m_nFontCacheId, and m_nFontIndex.
|
private |
Definition at line 955 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 1300 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 120 of file swfont.hxx.
References m_nProportionalWidth.
Referenced by SwFntAccess::SwFntAccess().
|
private |
Definition at line 974 of file swfont.cxx.
References 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::GetMeasureLen(), SwDrawTextInfo::GetOut(), SwCacheObj::GetOwner(), SwDrawTextInfo::GetpOut(), SwDrawTextInfo::GetShell(), SwDrawTextInfo::GetText(), SwFntObj::GetTextSize(), Size::Height(), SvxFont::IsCapital(), SvxFont::IsCaseMap(), m_nFontCacheId, pLastFont, Size::setHeight(), SwDrawTextInfo::SetIdx(), SwDrawTextInfo::SetKern(), SwDrawTextInfo::SetLen(), SwDrawTextInfo::SetMeasureLen(), SwDrawTextInfo::SetText(), and SV_STAT.
Referenced by DrawText_().
|
private |
Definition at line 870 of file swfont.cxx.
References SwFntAccess::Get(), SwFntObj::IsSymbol(), m_nFontCacheId, and m_nFontIndex.
|
inlineprivate |
Definition at line 518 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 634 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 491 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 430 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 686 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 785 of file swfont.hxx.
References m_nFontCacheId, and SvxFont::SetEscapement().
|
inlineprivate |
Definition at line 452 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 437 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 591 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 806 of file swfont.hxx.
References GetAppLanguage(), LANGUAGE_SYSTEM, m_nFontCacheId, and SwLangHelper::SetLanguage().
|
inlineprivate |
Definition at line 465 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 604 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
|
inlineprivate |
Definition at line 504 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 764 of file swfont.hxx.
References Size::Height(), m_aSize, m_nFontCacheId, SvxFont::SetPropr(), and Size::Width().
Referenced by DoOnCapitals().
|
inlineprivate |
Definition at line 115 of file swfont.hxx.
References m_nFontCacheId, and m_nProportionalWidth.
|
inlineprivate |
Definition at line 712 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 619 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 730 of file swfont.hxx.
References SvxFont::GetPropr(), Size::Height(), m_aSize, m_nFontCacheId, and Size::Width().
|
inlineprivate |
|
inlineprivate |
Definition at line 478 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 546 of file swfont.hxx.
References m_nFontCacheId.
Referenced by DoOnCapitals(), DrawStretchText_(), and DrawText_().
|
inlineprivate |
Definition at line 830 of file swfont.hxx.
References m_nFontCacheId.
|
inlineprivate |
Definition at line 533 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(), and SwSubFont().
|
private |
Definition at line 56 of file swfont.hxx.
Referenced by ChgFnt(), DrawStretchText_(), DrawText_(), GetAscent(), GetHangingBaseline(), GetHeight(), GetModelPositionForViewPoint_(), GetTextSize_(), IsSymbol(), SetAlign(), SetAutoKern(), SetCharSet(), SetColor(), SetEmphasisMark(), SetEscapement(), SetFamily(), SetFillColor(), SetItalic(), SetLanguage(), SetName(), SetOutline(), SetOverline(), SetPitch(), SetProportion(), SetPropWidth(), SetRelief(), SetShadow(), SetSize(), SetStrikeout(), SetStyleName(), SetUnderline(), SetVertical(), SetWeight(), SetWordLineMode(), and SwSubFont().
|
private |
Definition at line 58 of file swfont.hxx.
Referenced by ChgFnt(), GetAscent(), GetHangingBaseline(), GetHeight(), IsSymbol(), and SwSubFont().
|
private |
Definition at line 60 of file swfont.hxx.
Referenced by CalcEsc(), CalcEscAscent(), CalcEscHeight(), and SwSubFont().
|
private |
Definition at line 59 of file swfont.hxx.
Referenced by CalcEsc(), CalcEscAscent(), CalcEscHeight(), and SwSubFont().
|
private |
Definition at line 61 of file swfont.hxx.
Referenced by GetPropWidth(), SetPropWidth(), and SwSubFont().