LibreOffice Module sc (master) 1
|
#include <htmlimp.hxx>
Public Member Functions | |
ScHTMLImport (ScDocument *pDoc, const OUString &rBaseURL, const ScRange &rRange, bool bCalcWidthHeight) | |
virtual void | WriteToDocument (bool bSizeColsRows=false, double nOutputFactor=1.0, SvNumberFormatter *pFormatter=nullptr, bool bConvertDate=true, bool bConvertScientific=true) override |
Public Member Functions inherited from ScEEImport | |
ScEEImport (ScDocument *pDoc, const ScRange &rRange) | |
virtual | ~ScEEImport () override |
virtual ErrCode | Read (SvStream &rStream, const OUString &rBaseURL) override |
virtual ScRange | GetRange () override |
virtual void | WriteToDocument (bool bSizeColsRows=false, double nOutputFactor=1.0, SvNumberFormatter *pFormatter=nullptr, bool bConvertDate=true, bool bConvertScientific=true) override |
Public Member Functions inherited from ScEEAbsImport | |
virtual | ~ScEEAbsImport () |
virtual ErrCode | Read (SvStream &rStream, const OUString &rBaseURL)=0 |
virtual ScRange | GetRange ()=0 |
virtual void | WriteToDocument (bool bSizeColsRows=false, double nOutputFactor=1.0, SvNumberFormatter *pFormatter=nullptr, bool bConvertDate=true, bool bConvertScientific=true)=0 |
Static Public Member Functions | |
static OUString | GetHTMLRangeNameList (const ScDocument &rDoc, std::u16string_view rOrigName) |
Static Private Member Functions | |
static void | InsertRangeName (ScDocument &rDoc, const OUString &rName, const ScRange &rRange) |
Additional Inherited Members | |
Protected Member Functions inherited from ScEEImport | |
bool | GraphicSize (SCCOL nCol, SCROW nRow, ScEEParseEntry *) |
void | InsertGraphic (SCCOL nCol, SCROW nRow, SCTAB nTab, ScEEParseEntry *) |
Protected Attributes inherited from ScEEImport | |
ScRange | maRange |
ScDocument * | mpDoc |
std::unique_ptr< ScTabEditEngine > | mpEngine |
std::unique_ptr< ScEEParser > | mpParser |
RowHeightMap | maRowHeights |
Definition at line 24 of file htmlimp.hxx.
ScHTMLImport::ScHTMLImport | ( | ScDocument * | pDoc, |
const OUString & | rBaseURL, | ||
const ScRange & | rRange, | ||
bool | bCalcWidthHeight | ||
) |
Definition at line 63 of file htmlimp.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), ScRange::aStart, ATTR_LRSPACE(), ATTR_PAGE_SIZE(), ATTR_ULSPACE(), SfxItemSet::Get(), Application::GetDefaultDevice(), ScStyleSheet::GetItemSet(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), ScDocument::GetPageStyle(), SvxPaperInfo::GetPaperSize(), SvxLRSpaceItem::GetRight(), SvxULSpaceItem::GetUpper(), Size::Height(), OutputDevice::LogicToPixel(), ScEEImport::mpDoc, ScEEImport::mpEngine, ScEEImport::mpParser, nBottomMargin, nLeftMargin, nRightMargin, nTopMargin, PAPER_A4, rSet, ScAddress::Tab(), and Size::Width().
|
static |
Definition at line 204 of file htmlimp.cxx.
References ScGlobal::addToken(), ScRangeList::Contains(), ScRangeName::findByUpperName(), ScGlobal::getCharClass(), ScfTools::GetNameFromHTMLIndex(), ScDocument::GetRangeName(), o3tl::getToken(), ScfTools::IsHTMLTablesName(), ScRangeData::IsReference(), nIndex, and ScRangeList::push_back().
Referenced by ScFormatFilterPluginImpl::GetHTMLRangeNameList().
|
staticprivate |
Definition at line 102 of file htmlimp.cxx.
References ScTokenArray::AddDoubleReference(), ScDocument::GetRangeName(), ScComplexRefData::InitRange(), ScRangeName::insert(), ScComplexRefData::Ref1, ScComplexRefData::Ref2, ScSingleRefData::SetFlag3D(), and ScSingleRefData::Tab().
Referenced by WriteToDocument().
|
overridevirtual |
Reimplemented from ScEEImport.
Definition at line 114 of file htmlimp.cxx.
References ScRange::aEnd, aName, ScDocument::ApplyAttr(), ScHTMLTable::ApplyCellBorders(), ScRange::aStart, ATTR_BORDER(), ATTR_MERGE(), ScAddress::Col(), ScRangeName::findByUpperName(), ScHTMLTable::FindNestedTable(), ScDocument::GetAttr(), ScGlobal::getCharClass(), ScMergeAttr::GetColMerge(), ScHTMLTable::GetDocRange(), ScHTMLTable::GetDocSize(), ScHTMLParser::GetGlobalTable(), ScfTools::GetHTMLDocName(), ScfTools::GetHTMLTablesName(), SvxBoxItem::GetLine(), ScfTools::GetNameFromHTMLIndex(), ScDocument::GetRangeName(), ScMergeAttr::GetRowMerge(), ScHTMLTable::GetTableCaption(), ScHTMLTable::GetTableName(), i, ScAddress::IncCol(), ScAddress::IncRow(), InsertRangeName(), ScMergeAttr::IsMerged(), ScEEParser::ListEntry(), ScEEParser::ListSize(), ScEEImport::maRange, ScRange::Move(), ScEEImport::mpDoc, ScEEImport::mpParser, n, ScEEParseEntry::nCol, ScEEParseEntry::nColOverlap, ScEEParseEntry::nRow, ScEEParseEntry::nRowOverlap, ScAddress::Row(), SC_HTML_GLOBAL_TABLE, SvxBoxItem::SetLine(), sName, ScAddress::Tab(), tdCol, tdRow, ScAddress::UNINITIALIZED, CharClass::uppercase(), and ScEEImport::WriteToDocument().
Referenced by ScFormatFilterPluginImpl::ScImportHTML().