LibreOffice Module sw (master) 1
Macros | Typedefs | Functions | Variables
fntcache.cxx File Reference
#include <sal/config.h>
#include <i18nlangtag/mslangid.hxx>
#include <officecfg/Office/Common.hxx>
#include <vcl/outdev.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/metric.hxx>
#include <vcl/svapp.hxx>
#include <vcl/lazydelete.hxx>
#include <vcl/glyphitemcache.hxx>
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <breakit.hxx>
#include <paintfrm.hxx>
#include <viewsh.hxx>
#include <viewopt.hxx>
#include <fntcache.hxx>
#include <IDocumentSettingAccess.hxx>
#include <swfont.hxx>
#include <wrong.hxx>
#include <txtfrm.hxx>
#include <pagefrm.hxx>
#include <tgrditem.hxx>
#include <scriptinfo.hxx>
#include <editeng/brushitem.hxx>
#include <accessibilityoptions.hxx>
#include <svx/sdr/attribute/sdrallfillattributeshelper.hxx>
#include <doc.hxx>
#include <editeng/fhgtitem.hxx>
#include <vcl/glyphitem.hxx>
#include <vcl/vcllayout.hxx>
#include <docsh.hxx>
#include <strings.hrc>
#include <fntcap.hxx>
#include <vcl/outdev/ScopedStates.hxx>
#include <o3tl/hash_combine.hxx>
#include <cstdint>
#include <memory>
#include "justify.hxx"
Include dependency graph for fntcache.cxx:

Go to the source code of this file.

Macros

#define WRONG_SHOW_MIN   5
 

Typedefs

typedef std::vector< std::pair< TextFrameIndex, TextFrameIndex > > SwForbidden
 

Functions

constexpr Color gWaveCol (COL_GRAY)
 
static bool lcl_IsFontAdjustNecessary (const vcl::RenderContext &rOutDev, const vcl::RenderContext &rRefDev)
 
static void lcl_calcLinePos (const CalcLinePosData &rData, Point &rStart, Point &rEnd, TextFrameIndex const nStart, TextFrameIndex const nWrLen)
 
static bool lcl_IsMonoSpaceFont (const vcl::RenderContext &rOut)
 
static bool lcl_IsFullstopCentered (const vcl::RenderContext &rOut)
 
static void lcl_DrawLineForWrongListData (SwForbidden &rForbidden, const SwDrawTextInfo &rInf, sw::WrongListIterator *pWList, const CalcLinePosData &rCalcLinePosData, const Size &rPrtFontSize)
 
static void GetTextArray (const OutputDevice &rDevice, const OUString &rStr, std::vector< sal_Int32 > &rDXAry, sal_Int32 nIndex, sal_Int32 nLen, const vcl::text::TextLayoutCache *layoutCache=nullptr)
 
static void GetTextArray (const OutputDevice &rOutputDevice, const SwDrawTextInfo &rInf, std::vector< sal_Int32 > &rDXAry)
 
static void GetTextArray (const OutputDevice &rOutputDevice, const SwDrawTextInfo &rInf, std::vector< sal_Int32 > &rDXAry, sal_Int32 nLen)
 

Variables

SwFntCachepFntCache = nullptr
 
SwFntObjpLastFont = nullptr
 
static vcl::DeleteOnDeinit< VclPtr< OutputDevice > > s_pFntObjPixOut {}
 

Macro Definition Documentation

◆ WRONG_SHOW_MIN

#define WRONG_SHOW_MIN   5

Definition at line 581 of file fntcache.cxx.

Typedef Documentation

◆ SwForbidden

typedef std::vector<std::pair<TextFrameIndex, TextFrameIndex> > SwForbidden

Definition at line 605 of file fntcache.cxx.

Function Documentation

◆ GetTextArray() [1/3]

static void GetTextArray ( const OutputDevice rDevice,
const OUString &  rStr,
std::vector< sal_Int32 > &  rDXAry,
sal_Int32  nIndex,
sal_Int32  nLen,
const vcl::text::TextLayoutCache layoutCache = nullptr 
)
static

◆ GetTextArray() [2/3]

static void GetTextArray ( const OutputDevice rOutputDevice,
const SwDrawTextInfo rInf,
std::vector< sal_Int32 > &  rDXAry 
)
static

◆ GetTextArray() [3/3]

static void GetTextArray ( const OutputDevice rOutputDevice,
const SwDrawTextInfo rInf,
std::vector< sal_Int32 > &  rDXAry,
sal_Int32  nLen 
)
static

◆ gWaveCol()

constexpr Color gWaveCol ( COL_GRAY  )
constexpr

Referenced by SwFntObj::DrawText().

◆ lcl_calcLinePos()

static void lcl_calcLinePos ( const CalcLinePosData &  rData,
Point &  rStart,
Point &  rEnd,
TextFrameIndex const  nStart,
TextFrameIndex const  nWrLen 
)
static

◆ lcl_DrawLineForWrongListData()

static void lcl_DrawLineForWrongListData ( SwForbidden rForbidden,
const SwDrawTextInfo rInf,
sw::WrongListIterator pWList,
const CalcLinePosData &  rCalcLinePosData,
const Size rPrtFontSize 
)
static

◆ lcl_IsFontAdjustNecessary()

static bool lcl_IsFontAdjustNecessary ( const vcl::RenderContext rOutDev,
const vcl::RenderContext rRefDev 
)
static

◆ lcl_IsFullstopCentered()

static bool lcl_IsFullstopCentered ( const vcl::RenderContext rOut)
static

◆ lcl_IsMonoSpaceFont()

static bool lcl_IsMonoSpaceFont ( const vcl::RenderContext rOut)
static

Variable Documentation

◆ pFntCache

SwFntCache* pFntCache = nullptr

◆ pLastFont

SwFntObj* pLastFont = nullptr

◆ s_pFntObjPixOut

vcl::DeleteOnDeinit< VclPtr<OutputDevice> > s_pFntObjPixOut {}
static

Definition at line 73 of file fntcache.cxx.

Referenced by SwFntObj::DrawText().