LibreOffice Module sc (master) 1
Public Member Functions | Protected Attributes | Private Attributes | List of all members
ScHTMLParser Class Referenceabstract

Base class for HTML parser classes. More...

#include <htmlpars.hxx>

Inheritance diagram for ScHTMLParser:
[legend]
Collaboration diagram for ScHTMLParser:
[legend]

Public Member Functions

 ScHTMLParser (EditEngine *pEditEngine, ScDocument *pDoc)
 The destination document. More...
 
virtual ~ScHTMLParser () override
 
virtual ErrCode Read (SvStream &rStrm, const OUString &rBaseURL) override=0
 
ScHTMLStylesGetStyles ()
 
ScDocumentGetDoc ()
 
virtual const ScHTMLTableGetGlobalTable () const =0
 Returns the "global table" which contains the entire HTML document. More...
 
- Public Member Functions inherited from ScEEParser
 ScEEParser (EditEngine *)
 
virtual ~ScEEParser ()
 
virtual ErrCode Read (SvStream &, const OUString &rBaseURL)=0
 
const ColWidthsMapGetColWidths () const
 
ColWidthsMapGetColWidths ()
 
void GetDimensions (SCCOL &nCols, SCROW &nRows) const
 
size_t ListSize () const
 
ScEEParseEntryListEntry (size_t index)
 
const ScEEParseEntryListEntry (size_t index) const
 

Protected Attributes

sal_uInt32 maFontHeights [SC_HTML_FONTSIZES]
 
ScDocumentmpDoc
 
- Protected Attributes inherited from ScEEParser
EditEnginepEdit
 
rtl::Reference< SfxItemPoolpPool
 
rtl::Reference< SfxItemPoolpDocPool
 
std::vector< std::shared_ptr< ScEEParseEntry > > maList
 
std::shared_ptr< ScEEParseEntrymxActEntry
 
ColWidthsMap maColWidths
 
int nRtfLastToken
 
SCCOL nColCnt
 
SCROW nRowCnt
 
SCCOL nColMax
 
SCROW nRowMax
 

Private Attributes

ScHTMLStyles maStyles
 

Additional Inherited Members

- Protected Member Functions inherited from ScEEParser
void NewActEntry (const ScEEParseEntry *)
 

Detailed Description

Base class for HTML parser classes.

Definition at line 78 of file htmlpars.hxx.

Constructor & Destructor Documentation

◆ ScHTMLParser()

ScHTMLParser::ScHTMLParser ( EditEngine pEditEngine,
ScDocument pDoc 
)
explicit

The destination document.

Definition at line 188 of file htmlpars.cxx.

References maFontHeights.

◆ ~ScHTMLParser()

ScHTMLParser::~ScHTMLParser ( )
overridevirtual

Definition at line 201 of file htmlpars.cxx.

Member Function Documentation

◆ GetDoc()

ScDocument & ScHTMLParser::GetDoc ( )
inline

Definition at line 92 of file htmlpars.hxx.

References mpDoc.

Referenced by ScHTMLTable::GetFormatTable().

◆ GetGlobalTable()

virtual const ScHTMLTable * ScHTMLParser::GetGlobalTable ( ) const
pure virtual

Returns the "global table" which contains the entire HTML document.

Implemented in ScHTMLLayoutParser, and ScHTMLQueryParser.

Referenced by ScHTMLImport::WriteToDocument().

◆ GetStyles()

ScHTMLStyles & ScHTMLParser::GetStyles ( )
inline

Definition at line 91 of file htmlpars.hxx.

References maStyles.

Referenced by ScHTMLTable::DataOn(), and ScHTMLQueryParser::ParseStyle().

◆ Read()

virtual ErrCode ScHTMLParser::Read ( SvStream rStrm,
const OUString &  rBaseURL 
)
overridepure virtual

Implements ScEEParser.

Implemented in ScHTMLLayoutParser, and ScHTMLQueryParser.

Member Data Documentation

◆ maFontHeights

sal_uInt32 ScHTMLParser::maFontHeights[SC_HTML_FONTSIZES]
protected

◆ maStyles

ScHTMLStyles ScHTMLParser::maStyles
private

Definition at line 80 of file htmlpars.hxx.

Referenced by GetStyles().

◆ mpDoc

ScDocument* ScHTMLParser::mpDoc
protected

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