LibreOffice Module writerfilter (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
writerfilter::dmapper::FontTable Class Reference

#include <FontTable.hxx>

Inheritance diagram for writerfilter::dmapper::FontTable:
[legend]
Collaboration diagram for writerfilter::dmapper::FontTable:
[legend]

Public Member Functions

 FontTable ()
 
virtual ~FontTable () override
 
sal_uInt32 size ()
 
FontEntry::Pointer_t getFontEntry (sal_uInt32 nIndex)
 
void addEmbeddedFont (const css::uno::Reference< css::io::XInputStream > &stream, const OUString &fontName, std::u16string_view extra, std::vector< unsigned char > const &key)
 
- Public Member Functions inherited from writerfilter::LoggedProperties
 LoggedProperties (const std::string &sPrefix)
 
virtual ~LoggedProperties () override
 
void attribute (Id name, Value &val) override
 Receives an attribute. More...
 
void sprm (Sprm &sprm) override
 Receives a SPRM. More...
 
virtual void attribute (Id name, Value &val)=0
 Receives an attribute. More...
 
virtual void sprm (Sprm &sprm)=0
 Receives a SPRM. More...
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 
- Public Member Functions inherited from writerfilter::LoggedTable
 LoggedTable (const std::string &sPrefix)
 
virtual ~LoggedTable () override
 
void entry (int pos, writerfilter::Reference< Properties >::Pointer_t ref) override
 Receives an entry of the table. More...
 
virtual void entry (int pos, writerfilter::Reference< Properties >::Pointer_t ref)=0
 Receives an entry of the table. More...
 
- Public Member Functions inherited from writerfilter::LoggedStream
 LoggedStream (const std::string &sPrefix)
 
virtual ~LoggedStream () override
 
void startSectionGroup () override
 Receives start mark for group with the same section properties. More...
 
void endSectionGroup () override
 Receives end mark for group with the same section properties. More...
 
void startParagraphGroup () override
 Receives start mark for group with the same paragraph properties. More...
 
void endParagraphGroup () override
 Receives end mark for group with the same paragraph properties. More...
 
void startCharacterGroup () override
 Receives start mark for group with the same character properties. More...
 
void endCharacterGroup () override
 Receives end mark for group with the same character properties. More...
 
void startShape (css::uno::Reference< css::drawing::XShape > const &xShape) override
 Receives a shape. More...
 
void endShape () override
 
void startTextBoxContent () override
 Receives a text-box-content. More...
 
void endTextBoxContent () override
 
void text (const sal_uInt8 *data, size_t len) override
 Receives 8-bit per character text. More...
 
void utext (const sal_uInt8 *data, size_t len) override
 Receives 16-bit per character text. More...
 
void positionOffset (const OUString &rText, bool bVertical) override
 Offset in EMUs for a shape. More...
 
void align (const OUString &rText, bool bVertical) override
 Horizontal and vertical alignment for a shape. More...
 
void positivePercentage (const OUString &rText) override
 
void props (writerfilter::Reference< Properties >::Pointer_t ref) override
 Receives properties of the current run of text. More...
 
void table (Id name, writerfilter::Reference< Table >::Pointer_t ref) override
 Receives table. More...
 
void substream (Id name, writerfilter::Reference< Stream >::Pointer_t ref) override
 Receives a substream. More...
 
void info (const std::string &info) override
 Debugging: Receives information about current point in stream. More...
 
void startGlossaryEntry () override
 Receives start mark for glossary document entry. More...
 
void endGlossaryEntry () override
 Receives end mark for glossary document entry. More...
 
void checkId (const sal_Int32 nId) override
 Receives identifier for node entry. More...
 
virtual void setDocumentReference (writerfilter::ooxml::OOXMLDocument *) override
 
- Public Member Functions inherited from writerfilter::Stream
virtual void startSectionGroup ()=0
 Receives start mark for group with the same section properties. More...
 
virtual void endSectionGroup ()=0
 Receives end mark for group with the same section properties. More...
 
virtual void markLastSectionGroup ()
 The current section is the last one in this body text. More...
 
virtual void setDocumentReference (writerfilter::ooxml::OOXMLDocument *pDocument)=0
 
virtual void startParagraphGroup ()=0
 Receives start mark for group with the same paragraph properties. More...
 
virtual void endParagraphGroup ()=0
 Receives end mark for group with the same paragraph properties. More...
 
virtual void markLastParagraphInSection ()
 
virtual void startCharacterGroup ()=0
 Receives start mark for group with the same character properties. More...
 
virtual void endCharacterGroup ()=0
 Receives end mark for group with the same character properties. More...
 
virtual void startShape (css::uno::Reference< css::drawing::XShape > const &xShape)=0
 Receives a shape. More...
 
virtual void endShape ()=0
 
virtual void startTextBoxContent ()=0
 Receives a text-box-content. More...
 
virtual void endTextBoxContent ()=0
 
virtual void text (const sal_uInt8 *data, size_t len)=0
 Receives 8-bit per character text. More...
 
virtual void utext (const sal_uInt8 *data, size_t len)=0
 Receives 16-bit per character text. More...
 
virtual void positionOffset (const OUString &rText, bool bVertical)=0
 Offset in EMUs for a shape. More...
 
virtual css::awt::Point getPositionOffset ()=0
 Returns the last set offsets of a shape in HMM. More...
 
virtual void align (const OUString &rText, bool bVertical)=0
 Horizontal and vertical alignment for a shape. More...
 
virtual void positivePercentage (const OUString &rText)=0
 
virtual void props (writerfilter::Reference< Properties >::Pointer_t ref)=0
 Receives properties of the current run of text. More...
 
virtual void table (Id name, writerfilter::Reference< Table >::Pointer_t ref)=0
 Receives table. More...
 
virtual void substream (Id name, writerfilter::Reference< Stream >::Pointer_t ref)=0
 Receives a substream. More...
 
virtual void info (const std::string &info)=0
 Debugging: Receives information about current point in stream. More...
 
virtual void startGlossaryEntry ()=0
 Receives start mark for glossary document entry. More...
 
virtual void endGlossaryEntry ()=0
 Receives end mark for glossary document entry. More...
 
virtual void checkId (const sal_Int32 nId)=0
 Receives identifier for node entry. More...
 
virtual void commentProps (const OUString &, const CommentProperties &)
 

Private Member Functions

virtual void lcl_attribute (Id Name, Value &val) override
 
virtual void lcl_sprm (Sprm &sprm) override
 
void resolveSprm (Sprm &r_sprm)
 
virtual void lcl_entry (writerfilter::Reference< Properties >::Pointer_t ref) override
 
virtual void lcl_startSectionGroup () override
 
virtual void lcl_endSectionGroup () override
 
virtual void lcl_startParagraphGroup () override
 
virtual void lcl_endParagraphGroup () override
 
virtual void lcl_startCharacterGroup () override
 
virtual void lcl_endCharacterGroup () override
 
virtual void lcl_text (const sal_uInt8 *data, size_t len) override
 
virtual void lcl_utext (const sal_uInt8 *data, size_t len) override
 
virtual void lcl_props (writerfilter::Reference< Properties >::Pointer_t ref) override
 
virtual void lcl_table (Id name, writerfilter::Reference< Table >::Pointer_t ref) override
 
virtual void lcl_substream (Id name, ::writerfilter::Reference< Stream >::Pointer_t ref) override
 
virtual void lcl_startShape (css::uno::Reference< css::drawing::XShape > const &xShape) override
 
virtual void lcl_endShape () override
 
virtual void lcl_startTextBoxContent () override
 
virtual void lcl_endTextBoxContent () override
 

Private Attributes

std::unique_ptr< FontTable_Implm_pImpl
 

Additional Inherited Members

- Public Types inherited from writerfilter::Table
typedef tools::SvRef< TablePointer_t
 
- Public Types inherited from writerfilter::Stream
typedef tools::SvRef< StreamPointer_t
 Pointer to this stream. More...
 
virtual void lcl_attribute (Id name, Value &val)=0
 
virtual void lcl_sprm (Sprm &sprm)=0
 
- Protected Member Functions inherited from writerfilter::Properties
 ~Properties () override
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 
virtual void lcl_entry (writerfilter::Reference< Properties >::Pointer_t ref)=0
 
- Protected Member Functions inherited from writerfilter::Table
 ~Table () override
 
- Protected Member Functions inherited from writerfilter::LoggedStream
virtual void lcl_startSectionGroup ()=0
 
virtual void lcl_endSectionGroup ()=0
 
virtual void lcl_startParagraphGroup ()=0
 
virtual void lcl_endParagraphGroup ()=0
 
virtual void lcl_startCharacterGroup ()=0
 
virtual void lcl_endCharacterGroup ()=0
 
virtual void lcl_startShape (css::uno::Reference< css::drawing::XShape > const &xShape)=0
 
virtual void lcl_endShape ()=0
 
virtual void lcl_startTextBoxContent ()=0
 
virtual void lcl_endTextBoxContent ()=0
 
virtual void lcl_text (const sal_uInt8 *data, size_t len)=0
 
virtual void lcl_utext (const sal_uInt8 *data, size_t len)=0
 
virtual void lcl_positionOffset (const OUString &, bool)
 
virtual css::awt::Point getPositionOffset () override
 Returns the last set offsets of a shape in HMM. More...
 
virtual void lcl_align (const OUString &, bool)
 
virtual void lcl_positivePercentage (const OUString &)
 
virtual void lcl_props (writerfilter::Reference< Properties >::Pointer_t ref)=0
 
virtual void lcl_table (Id name, writerfilter::Reference< Table >::Pointer_t ref)=0
 
virtual void lcl_substream (Id name, writerfilter::Reference< Stream >::Pointer_t ref)=0
 
virtual void lcl_startGlossaryEntry ()
 
virtual void lcl_endGlossaryEntry ()
 
virtual void lcl_checkId (const sal_Int32)
 
- Protected Member Functions inherited from writerfilter::Stream
 ~Stream () override
 

Detailed Description

Definition at line 42 of file FontTable.hxx.

Constructor & Destructor Documentation

◆ FontTable()

writerfilter::dmapper::FontTable::FontTable ( )

Definition at line 43 of file FontTable.cxx.

References m_pImpl.

◆ ~FontTable()

writerfilter::dmapper::FontTable::~FontTable ( )
overridevirtual

Definition at line 51 of file FontTable.cxx.

Member Function Documentation

◆ addEmbeddedFont()

void writerfilter::dmapper::FontTable::addEmbeddedFont ( const css::uno::Reference< css::io::XInputStream > &  stream,
const OUString &  fontName,
std::u16string_view  extra,
std::vector< unsigned char > const &  key 
)

Definition at line 228 of file FontTable.cxx.

References m_pImpl, and stream.

Referenced by writerfilter::dmapper::EmbeddedFontHandler::~EmbeddedFontHandler().

◆ getFontEntry()

FontEntry::Pointer_t writerfilter::dmapper::FontTable::getFontEntry ( sal_uInt32  nIndex)

Definition at line 216 of file FontTable.cxx.

References m_pImpl, and nIndex.

◆ lcl_attribute()

void writerfilter::dmapper::FontTable::lcl_attribute ( Id  Name,
Value val 
)
overrideprivatevirtual

◆ lcl_endCharacterGroup()

void writerfilter::dmapper::FontTable::lcl_endCharacterGroup ( )
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 184 of file FontTable.cxx.

◆ lcl_endParagraphGroup()

void writerfilter::dmapper::FontTable::lcl_endParagraphGroup ( )
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 176 of file FontTable.cxx.

◆ lcl_endSectionGroup()

void writerfilter::dmapper::FontTable::lcl_endSectionGroup ( )
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 168 of file FontTable.cxx.

◆ lcl_endShape()

void writerfilter::dmapper::FontTable::lcl_endShape ( )
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 212 of file FontTable.cxx.

◆ lcl_endTextBoxContent()

virtual void writerfilter::dmapper::FontTable::lcl_endTextBoxContent ( )
inlineoverrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 84 of file FontTable.hxx.

◆ lcl_entry()

void writerfilter::dmapper::FontTable::lcl_entry ( writerfilter::Reference< Properties >::Pointer_t  ref)
overrideprivatevirtual

Implements writerfilter::LoggedTable.

Definition at line 153 of file FontTable.cxx.

References m_pImpl, and SAL_WARN_IF.

◆ lcl_props()

void writerfilter::dmapper::FontTable::lcl_props ( writerfilter::Reference< Properties >::Pointer_t  ref)
overrideprivatevirtual

Definition at line 196 of file FontTable.cxx.

◆ lcl_sprm()

void writerfilter::dmapper::FontTable::lcl_sprm ( Sprm sprm)
overrideprivatevirtual

◆ lcl_startCharacterGroup()

void writerfilter::dmapper::FontTable::lcl_startCharacterGroup ( )
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 180 of file FontTable.cxx.

◆ lcl_startParagraphGroup()

void writerfilter::dmapper::FontTable::lcl_startParagraphGroup ( )
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 172 of file FontTable.cxx.

◆ lcl_startSectionGroup()

void writerfilter::dmapper::FontTable::lcl_startSectionGroup ( )
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 164 of file FontTable.cxx.

◆ lcl_startShape()

void writerfilter::dmapper::FontTable::lcl_startShape ( css::uno::Reference< css::drawing::XShape > const &  xShape)
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 208 of file FontTable.cxx.

◆ lcl_startTextBoxContent()

virtual void writerfilter::dmapper::FontTable::lcl_startTextBoxContent ( )
inlineoverrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 83 of file FontTable.hxx.

◆ lcl_substream()

void writerfilter::dmapper::FontTable::lcl_substream ( Id  name,
::writerfilter::Reference< Stream >::Pointer_t  ref 
)
overrideprivatevirtual

Definition at line 204 of file FontTable.cxx.

◆ lcl_table()

void writerfilter::dmapper::FontTable::lcl_table ( Id  name,
writerfilter::Reference< Table >::Pointer_t  ref 
)
overrideprivatevirtual

Definition at line 200 of file FontTable.cxx.

◆ lcl_text()

void writerfilter::dmapper::FontTable::lcl_text ( const sal_uInt8 data,
size_t  len 
)
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 188 of file FontTable.cxx.

◆ lcl_utext()

void writerfilter::dmapper::FontTable::lcl_utext ( const sal_uInt8 data,
size_t  len 
)
overrideprivatevirtual

Implements writerfilter::LoggedStream.

Definition at line 192 of file FontTable.cxx.

◆ resolveSprm()

void writerfilter::dmapper::FontTable::resolveSprm ( Sprm r_sprm)
private

Definition at line 146 of file FontTable.cxx.

References writerfilter::Sprm::getProps().

Referenced by lcl_sprm().

◆ size()

sal_uInt32 writerfilter::dmapper::FontTable::size ( )

Definition at line 223 of file FontTable.cxx.

References m_pImpl.

Member Data Documentation

◆ m_pImpl

std::unique_ptr<FontTable_Impl> writerfilter::dmapper::FontTable::m_pImpl
private

Definition at line 45 of file FontTable.hxx.

Referenced by addEmbeddedFont(), getFontEntry(), lcl_attribute(), lcl_entry(), lcl_sprm(), and size().


The documentation for this class was generated from the following files: