LibreOffice Module oox (master) 1
|
All entries of a font property. More...
#include <axfontdata.hxx>
Public Member Functions | |
AxFontData () | |
sal_Int16 | getHeightPoints () const |
Converts the internal representation of the font height to points. More... | |
void | setHeightPoints (sal_Int16 nPoints) |
Converts the passed font height from points to the internal representation. More... | |
bool | importBinaryModel (BinaryInputStream &rInStrm) |
Reads the font data settings from the passed input stream. More... | |
void | exportBinaryModel (BinaryOutputStream &rOutStrm) |
bool | importStdFont (BinaryInputStream &rInStrm) |
Reads the font data settings from the passed input stream that contains an OLE StdFont structure. More... | |
bool | importGuidAndFont (BinaryInputStream &rInStrm) |
Reads the font data settings from the passed input stream depending on the GUID preceding the actual font data. More... | |
Public Attributes | |
OUString | maFontName |
Name of the used font. More... | |
AxFontFlags | mnFontEffects |
Font effect flags. More... | |
sal_Int32 | mnFontHeight |
Height of the font (not really twips, see code). More... | |
sal_Int32 | mnFontCharSet |
Windows character set of the font. More... | |
AxHorizontalAlign | mnHorAlign |
Horizontal text alignment. More... | |
bool | mbDblUnderline |
True = double underline style (legacy VML drawing controls only). More... | |
All entries of a font property.
Definition at line 53 of file axfontdata.hxx.
|
explicit |
Definition at line 27 of file axfontdata.cxx.
void oox::ole::AxFontData::exportBinaryModel | ( | BinaryOutputStream & | rOutStrm | ) |
Definition at line 68 of file axfontdata.cxx.
References oox::ole::AxBinaryPropertyWriter::finalizeExport(), maFontName, mnFontCharSet, mnFontEffects, mnFontHeight, mnHorAlign, oox::ole::AxBinaryPropertyWriter::skipProperty(), oox::ole::AxBinaryPropertyWriter::writeIntProperty(), and oox::ole::AxBinaryPropertyWriter::writeStringProperty().
Referenced by oox::ole::AxFontDataModel::exportBinaryModel().
sal_Int16 oox::ole::AxFontData::getHeightPoints | ( | ) | const |
Converts the internal representation of the font height to points.
Definition at line 36 of file axfontdata.cxx.
References mnFontHeight, and SAL_MAX_INT16.
Referenced by oox::ole::AxFontDataModel::convertProperties().
bool oox::ole::AxFontData::importBinaryModel | ( | BinaryInputStream & | rInStrm | ) |
Reads the font data settings from the passed input stream.
Definition at line 49 of file axfontdata.cxx.
References oox::ole::AxBinaryPropertyReader::finalizeImport(), oox::ole::Left, maFontName, mbDblUnderline, mnFontCharSet, mnFontEffects, mnFontHeight, mnHorAlign, oox::ole::AxBinaryPropertyReader::readIntProperty(), oox::ole::AxBinaryPropertyReader::readStringProperty(), and oox::ole::AxBinaryPropertyReader::skipIntProperty().
Referenced by oox::ole::AxFontDataModel::importBinaryModel(), and importGuidAndFont().
bool oox::ole::AxFontData::importGuidAndFont | ( | BinaryInputStream & | rInStrm | ) |
Reads the font data settings from the passed input stream depending on the GUID preceding the actual font data.
Definition at line 105 of file axfontdata.cxx.
References importBinaryModel(), oox::ole::OleHelper::importGuid(), importStdFont(), and OLE_GUID_STDFONT.
bool oox::ole::AxFontData::importStdFont | ( | BinaryInputStream & | rInStrm | ) |
Reads the font data settings from the passed input stream that contains an OLE StdFont structure.
Definition at line 84 of file axfontdata.cxx.
References Bold, oox::getFlag(), oox::ole::OleHelper::importStdFont(), Italic, oox::ole::Left, maFontName, oox::ole::StdFontInfo::maName, mbDblUnderline, oox::ole::StdFontInfo::mnCharSet, oox::ole::StdFontInfo::mnFlags, mnFontCharSet, mnFontEffects, oox::ole::StdFontInfo::mnHeight, mnHorAlign, oox::ole::StdFontInfo::mnWeight, NONE, oox::ole::OLE_STDFONT_BOLD, oox::ole::OLE_STDFONT_ITALIC, oox::ole::OLE_STDFONT_STRIKE, oox::ole::OLE_STDFONT_UNDERLINE, SAL_MAX_INT16, oox::setFlag(), setHeightPoints(), Strikeout, and Underline.
Referenced by importGuidAndFont().
void oox::ole::AxFontData::setHeightPoints | ( | sal_Int16 | nPoints | ) |
Converts the passed font height from points to the internal representation.
Definition at line 44 of file axfontdata.cxx.
References mnFontHeight.
Referenced by oox::ole::AxFontDataModel::convertFromProperties(), and importStdFont().
OUString oox::ole::AxFontData::maFontName |
Name of the used font.
Definition at line 55 of file axfontdata.hxx.
Referenced by oox::ole::AxFontDataModel::convertFromProperties(), oox::ole::AxFontDataModel::convertProperties(), exportBinaryModel(), importBinaryModel(), oox::ole::AxFontDataModel::importProperty(), and importStdFont().
bool oox::ole::AxFontData::mbDblUnderline |
True = double underline style (legacy VML drawing controls only).
Definition at line 60 of file axfontdata.hxx.
Referenced by oox::ole::AxFontDataModel::convertProperties(), importBinaryModel(), and importStdFont().
sal_Int32 oox::ole::AxFontData::mnFontCharSet |
Windows character set of the font.
Definition at line 58 of file axfontdata.hxx.
Referenced by oox::ole::AxFontDataModel::convertProperties(), exportBinaryModel(), importBinaryModel(), oox::ole::AxFontDataModel::importProperty(), and importStdFont().
AxFontFlags oox::ole::AxFontData::mnFontEffects |
Font effect flags.
Definition at line 56 of file axfontdata.hxx.
Referenced by oox::ole::AxFontDataModel::convertFromProperties(), oox::ole::AxFontDataModel::convertProperties(), exportBinaryModel(), importBinaryModel(), oox::ole::AxFontDataModel::importProperty(), and importStdFont().
sal_Int32 oox::ole::AxFontData::mnFontHeight |
Height of the font (not really twips, see code).
Definition at line 57 of file axfontdata.hxx.
Referenced by exportBinaryModel(), getHeightPoints(), importBinaryModel(), oox::ole::AxFontDataModel::importProperty(), and setHeightPoints().
AxHorizontalAlign oox::ole::AxFontData::mnHorAlign |
Horizontal text alignment.
Definition at line 59 of file axfontdata.hxx.
Referenced by oox::ole::AxFontDataModel::convertFromProperties(), oox::ole::AxFontDataModel::convertProperties(), exportBinaryModel(), importBinaryModel(), oox::ole::AxFontDataModel::importProperty(), and importStdFont().