LibreOffice Module vcl (master) 1
|
#include <fontcharmap.hxx>
Public Member Functions | |
FontCharMap () | |
A new FontCharMap is created based on a "default" map, which includes all codepoints in the Unicode BMP range, including surrogates. More... | |
FontCharMap (bool bMicrosoftSymbolMap, std::vector< sal_UCS4 > aRangeCodes) | |
A new FontCharMap is created based on passed arguments. More... | |
virtual | ~FontCharMap () override |
bool | IsDefaultMap () const |
Determines if the font character map is the "default". More... | |
bool | HasChar (sal_UCS4) const |
Does the font character map include the UCS4 character? More... | |
int | CountCharsInRange (sal_UCS4 cMin, sal_UCS4 cMax) const |
Returns the number of chars supported by the font, which are inside the unicode range from cMin to cMax (inclusive). More... | |
int | GetCharCount () const |
Get the number of characters in the font character map. More... | |
sal_UCS4 | GetFirstChar () const |
Get the first character in the font character map. More... | |
sal_UCS4 | GetLastChar () const |
Get the last character in the font character map. More... | |
sal_UCS4 | GetNextChar (sal_UCS4 cChar) const |
Get the next character in the font character map. More... | |
sal_UCS4 | GetPrevChar (sal_UCS4 cChar) const |
Get the previous character in the font character map. More... | |
int | GetIndexFromChar (sal_UCS4 cChar) const |
Get the index of a particular character in the font character map. More... | |
sal_UCS4 | GetCharFromIndex (int nCharIndex) const |
Get the character at a particular index in the font character map. More... | |
bool | isMicrosoftSymbolMap () const |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Static Public Member Functions | |
static FontCharMapRef | GetDefaultMap (bool bMicrosoftSymbolMap) |
Get the default font character map. More... | |
Private Member Functions | |
int | findRangeIndex (sal_UCS4) const |
FontCharMap (ImplFontCharMapRef pIFCMap) | |
FontCharMap (const FontCharMap &)=delete | |
void | operator= (const FontCharMap &)=delete |
Private Attributes | |
ImplFontCharMapRef | mpImplFontCharMap |
Friends | |
class | ::OutputDevice |
Additional Inherited Members | |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Definition at line 35 of file fontcharmap.hxx.
FontCharMap::FontCharMap | ( | ) |
A new FontCharMap is created based on a "default" map, which includes all codepoints in the Unicode BMP range, including surrogates.
Definition at line 88 of file fontcharmap.cxx.
Referenced by GetDefaultMap().
FontCharMap::FontCharMap | ( | bool | bMicrosoftSymbolMap, |
std::vector< sal_UCS4 > | aRangeCodes | ||
) |
A new FontCharMap is created based on passed arguments.
Definition at line 98 of file fontcharmap.cxx.
|
overridevirtual |
Definition at line 103 of file fontcharmap.cxx.
References mpImplFontCharMap.
|
private |
Definition at line 93 of file fontcharmap.cxx.
|
privatedelete |
Returns the number of chars supported by the font, which are inside the unicode range from cMin to cMax (inclusive).
cMin | Lowest codepoint in range to be counted |
cMax | Highest codepoint in range to be counted |
Definition at line 126 of file fontcharmap.cxx.
References findRangeIndex(), i, mpImplFontCharMap, and nCount.
Definition at line 233 of file fontcharmap.cxx.
References mpImplFontCharMap.
Referenced by CountCharsInRange(), GetNextChar(), GetPrevChar(), and HasChar().
int FontCharMap::GetCharCount | ( | ) | const |
Get the number of characters in the font character map.
Definition at line 121 of file fontcharmap.cxx.
References mpImplFontCharMap.
Get the character at a particular index in the font character map.
The index is different from the codepoint, because font character maps can
determine the character.
nCharIndex | Index used to find the character |
Definition at line 216 of file fontcharmap.cxx.
References i, mpImplFontCharMap, and nIndex.
|
static |
Get the default font character map.
Definition at line 108 of file fontcharmap.cxx.
References FontCharMap(), and ImplFontCharMap::getDefaultMap().
Referenced by vcl::font::PhysicalFontFace::GetFontCharMap(), and vcl::pdf::BuildinFont::GetFontCharMap().
sal_UCS4 FontCharMap::GetFirstChar | ( | ) | const |
Get the first character in the font character map.
Definition at line 160 of file fontcharmap.cxx.
References mpImplFontCharMap.
Referenced by GetNextChar(), and GetPrevChar().
Get the index of a particular character in the font character map.
The index is different from the codepoint, because font character maps can
determine the index.
cChar | Character used to find index number |
Definition at line 196 of file fontcharmap.cxx.
References i, and mpImplFontCharMap.
sal_UCS4 FontCharMap::GetLastChar | ( | ) | const |
Get the last character in the font character map.
Definition at line 165 of file fontcharmap.cxx.
References mpImplFontCharMap.
Referenced by GetNextChar(), and GetPrevChar().
Get the next character in the font character map.
This is important because character maps (e.g. the default map which holds the characters in the BMP plane) can have discontiguous ranges.
cChar | Character from which to find next character |
Definition at line 170 of file fontcharmap.cxx.
References findRangeIndex(), GetFirstChar(), GetLastChar(), and mpImplFontCharMap.
Get the previous character in the font character map.
This is important because character maps (e.g. the default map which holds the characters in the BMP plane) can have discontiguous ranges.
cChar | Character from which to find previous character |
Definition at line 183 of file fontcharmap.cxx.
References findRangeIndex(), GetFirstChar(), GetLastChar(), and mpImplFontCharMap.
bool FontCharMap::HasChar | ( | sal_UCS4 | cChar | ) | const |
Does the font character map include the UCS4 character?
Definition at line 152 of file fontcharmap.cxx.
References findRangeIndex().
bool FontCharMap::IsDefaultMap | ( | ) | const |
Determines if the font character map is the "default".
The default map includes all codepoints in the Unicode BMP range, including surrogates.
Definition at line 114 of file fontcharmap.cxx.
References mpImplFontCharMap.
bool FontCharMap::isMicrosoftSymbolMap | ( | ) | const |
Definition at line 119 of file fontcharmap.cxx.
References mpImplFontCharMap.
|
privatedelete |
|
friend |
Definition at line 144 of file fontcharmap.hxx.
|
private |
Definition at line 142 of file fontcharmap.hxx.
Referenced by CountCharsInRange(), findRangeIndex(), GetCharCount(), GetCharFromIndex(), GetFirstChar(), GetIndexFromChar(), GetLastChar(), GetNextChar(), GetPrevChar(), IsDefaultMap(), isMicrosoftSymbolMap(), and ~FontCharMap().