|
LibreOffice Module sc (master) 1
|
A single entry containing a line of text or representing a table. More...
#include <htmlpars.hxx>
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... | |
| SfxItemSet & | GetItemSet () |
| Returns read/write access to the item set of this entry. More... | |
| const SfxItemSet & | GetItemSet () 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 |
A single entry containing a line of text or representing a table.
Definition at line 273 of file htmlpars.hxx.
|
explicit |
Definition at line 1636 of file htmlpars.cxx.
References ScEEParseEntry::bEntirePara, and ScEEParseEntry::nTab.
| 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.
| 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.
|
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().
|
inline |
Returns read-only access to the item set of this entry.
Definition at line 301 of file htmlpars.hxx.
References ScEEParseEntry::aItemSet.
|
inline |
Returns true, if the entry represents a table.
Definition at line 287 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 1644 of file htmlpars.cxx.
References ScEEParseEntry::aAltText, ScEEParseEntry::aSel, ESelection::HasRange(), IsTable(), and mbImportAlways.
|
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().
|
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().
|
inline |
Sets or clears the import always state.
Definition at line 290 of file htmlpars.hxx.
References mbImportAlways.
| 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.
|
private |
Definition at line 304 of file htmlpars.hxx.
Referenced by HasContents(), and SetImportAlways().