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 (SfxItemSet _aItemSet)
 
 ~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 273 of file htmlpars.hxx.

Constructor & Destructor Documentation

◆ ScHTMLEntry()

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

Definition at line 1636 of file htmlpars.cxx.

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

Member Function Documentation

◆ AdjustEnd()

void ScHTMLEntry::AdjustEnd ( const HtmlImportInfo rInfo)

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

Definition at line 1662 of file htmlpars.cxx.

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

◆ AdjustStart()

void ScHTMLEntry::AdjustStart ( const HtmlImportInfo rInfo)

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

Definition at line 1649 of file htmlpars.cxx.

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

◆ GetItemSet() [1/2]

SfxItemSet & ScHTMLEntry::GetItemSet ( )
inline

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

Definition at line 299 of file htmlpars.hxx.

References ScEEParseEntry::aItemSet.

Referenced by ScHTMLTable::RecalcDocPos().

◆ GetItemSet() [2/2]

const SfxItemSet & ScHTMLEntry::GetItemSet ( ) const
inline

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

Definition at line 301 of file htmlpars.hxx.

References ScEEParseEntry::aItemSet.

◆ GetTableId()

ScHTMLTableId ScHTMLEntry::GetTableId ( ) const
inline

Returns true, if the entry represents a table.

Definition at line 287 of file htmlpars.hxx.

References ScEEParseEntry::nTab.

Referenced by ScHTMLTable::RecalcDocPos().

◆ HasContents()

bool ScHTMLEntry::HasContents ( ) const

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

Definition at line 1644 of file htmlpars.cxx.

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

◆ IsEmpty()

bool ScHTMLEntry::IsEmpty ( ) const
inline

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

Definition at line 281 of file htmlpars.hxx.

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

◆ IsTable()

bool ScHTMLEntry::IsTable ( ) const
inline

Returns true, if the entry represents a table.

Definition at line 285 of file htmlpars.hxx.

References ScEEParseEntry::nTab, and SC_HTML_NO_TABLE.

Referenced by HasContents().

◆ SetImportAlways()

void ScHTMLEntry::SetImportAlways ( )
inline

Sets or clears the import always state.

Definition at line 290 of file htmlpars.hxx.

References mbImportAlways.

◆ Strip()

void ScHTMLEntry::Strip ( const EditEngine rEditEngine)

Deletes leading and trailing empty paragraphs from the entry.

Definition at line 1672 of file htmlpars.cxx.

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

Member Data Documentation

◆ mbImportAlways

bool ScHTMLEntry::mbImportAlways
private

Definition at line 304 of file htmlpars.hxx.

Referenced by HasContents(), and SetImportAlways().


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