LibreOffice Module sc (master)  1
Public Member Functions | Private Attributes | List of all members
ScHTMLEntry Struct Reference

A single entry containing a line of text or representing a table. More...

#include <htmlpars.hxx>

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

Public Member Functions

 ScHTMLEntry (const SfxItemSet &rItemSet, ScHTMLTableId nTableId=SC_HTML_NO_TABLE)
 
bool IsEmpty () const
 Returns true, if the selection of the entry is empty. More...
 
bool HasContents () const
 Returns true, if the entry has any content to be imported. More...
 
bool IsTable () const
 Returns true, if the entry represents a table. More...
 
ScHTMLTableId GetTableId () const
 Returns true, if the entry represents a table. More...
 
void SetImportAlways ()
 Sets or clears the import always state. More...
 
void AdjustStart (const HtmlImportInfo &rInfo)
 Sets start point of the entry selection to the start of the import info object. More...
 
void AdjustEnd (const HtmlImportInfo &rInfo)
 Sets end point of the entry selection to the end of the import info object. More...
 
void Strip (const EditEngine &rEditEngine)
 Deletes leading and trailing empty paragraphs from the entry. More...
 
SfxItemSetGetItemSet ()
 Returns read/write access to the item set of this entry. More...
 
const SfxItemSetGetItemSet () const
 Returns read-only access to the item set of this entry. More...
 
- Public Member Functions inherited from ScEEParseEntry
 ScEEParseEntry (SfxItemPool *pPool)
 
 ScEEParseEntry (const SfxItemSet &rItemSet)
 
 ~ScEEParseEntry ()
 

Private Attributes

bool mbImportAlways
 

Additional Inherited Members

- Public Attributes inherited from ScEEParseEntry
SfxItemSet aItemSet
 
ESelection aSel
 
std::optional< OUString > pValStr
 
std::optional< OUString > pNumStr
 
std::optional< OUString > pName
 
OUString aAltText
 
std::vector< std::unique_ptr< ScHTMLImage > > maImageList
 
SCCOL nCol
 
SCROW nRow
 
sal_uInt16 nTab
 
sal_uInt16 nTwips
 
SCCOL nColOverlap
 
SCROW nRowOverlap
 
sal_uInt16 nOffset
 
sal_uInt16 nWidth
 
bool bHasGraphic:1
 
bool bEntirePara:1
 

Detailed Description

A single entry containing a line of text or representing a table.

Definition at line 271 of file htmlpars.hxx.

Constructor & Destructor Documentation

ScHTMLEntry::ScHTMLEntry ( const SfxItemSet rItemSet,
ScHTMLTableId  nTableId = SC_HTML_NO_TABLE 
)
explicit

Definition at line 1643 of file htmlpars.cxx.

References ScEEParseEntry::bEntirePara, and ScEEParseEntry::nTab.

Member Function Documentation

void ScHTMLEntry::AdjustEnd ( const HtmlImportInfo rInfo)

Sets end point of the entry selection to the end of the import info object.

Definition at line 1669 of file htmlpars.cxx.

References ScEEParseEntry::aSel, HtmlImportInfo::aSelection, ESelection::nEndPara, and ESelection::nEndPos.

void ScHTMLEntry::AdjustStart ( const HtmlImportInfo rInfo)

Sets start point of the entry selection to the start of the import info object.

Definition at line 1656 of file htmlpars.cxx.

References ScEEParseEntry::aSel, HtmlImportInfo::aSelection, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, and ESelection::nStartPos.

SfxItemSet& ScHTMLEntry::GetItemSet ( )
inline

Returns read/write access to the item set of this entry.

Definition at line 297 of file htmlpars.hxx.

References ScEEParseEntry::aItemSet.

Referenced by ScHTMLTable::RecalcDocPos().

const SfxItemSet& ScHTMLEntry::GetItemSet ( ) const
inline

Returns read-only access to the item set of this entry.

Definition at line 299 of file htmlpars.hxx.

References ScEEParseEntry::aItemSet.

ScHTMLTableId ScHTMLEntry::GetTableId ( ) const
inline

Returns true, if the entry represents a table.

Definition at line 285 of file htmlpars.hxx.

References ScEEParseEntry::nTab.

Referenced by ScHTMLTable::RecalcDocPos().

bool ScHTMLEntry::HasContents ( ) const

Returns true, if the entry has any content to be imported.

Definition at line 1651 of file htmlpars.cxx.

References ScEEParseEntry::aAltText, ScEEParseEntry::aSel, ESelection::HasRange(), IsTable(), and mbImportAlways.

bool ScHTMLEntry::IsEmpty ( ) const
inline

Returns true, if the selection of the entry is empty.

Definition at line 279 of file htmlpars.hxx.

References ScEEParseEntry::aSel, and ESelection::HasRange().

bool ScHTMLEntry::IsTable ( ) const
inline

Returns true, if the entry represents a table.

Definition at line 283 of file htmlpars.hxx.

References ScEEParseEntry::nTab, and SC_HTML_NO_TABLE.

Referenced by HasContents().

void ScHTMLEntry::SetImportAlways ( )
inline

Sets or clears the import always state.

Definition at line 288 of file htmlpars.hxx.

References mbImportAlways.

void ScHTMLEntry::Strip ( const EditEngine rEditEngine)

Deletes leading and trailing empty paragraphs from the entry.

Definition at line 1679 of file htmlpars.cxx.

References ScEEParseEntry::aSel, EditEngine::GetTextLen(), ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, and ESelection::nStartPos.

Member Data Documentation

bool ScHTMLEntry::mbImportAlways
private

Definition at line 302 of file htmlpars.hxx.

Referenced by HasContents(), and SetImportAlways().


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