LibreOffice Module sc (master) 1
|
#include <XMLStylesImportHelper.hxx>
Public Member Functions | |
ScMyStylesImportHelper (ScXMLImport &rImport) | |
~ScMyStylesImportHelper () | |
void | AddColumnStyle (const OUString &rStyleName, const sal_Int32 nColumn, const sal_Int32 nRepeat) |
void | SetRowStyle (const OUString &rStyleName) |
void | SetAttributes (std::optional< OUString > pStyleName, std::optional< OUString > pCurrency, const sal_Int16 nCellType) |
void | AddRange (const ScRange &rRange) |
void | AddCell (const ScAddress &rAddress) |
void | InsertCol (const sal_Int32 nCol, const sal_Int32 nTab) |
void | EndTable () |
void | SetStylesToRanges () |
Private Member Functions | |
void | ResetAttributes () |
ScMyStylesMap::iterator | GetIterator (const OUString &rStyleName) |
void | AddDefaultRange (const ScRange &rRange) |
void | AddSingleRange (const ScRange &rRange) |
void | AddRange () |
Private Attributes | |
ScMyStylesMap | aCellStyles |
std::vector< ScMyStylesMap::iterator > | aColDefaultStyles |
ScMyStylesMap::iterator | aRowDefaultStyle |
ScXMLImport & | rImport |
std::optional< OUString > | pStyleName |
std::optional< OUString > | pPrevStyleName |
std::optional< OUString > | pCurrency |
std::optional< OUString > | pPrevCurrency |
ScRange | aPrevRange |
sal_Int16 | nCellType |
sal_Int16 | nPrevCellType |
bool | bPrevRangeAdded |
Definition at line 110 of file XMLStylesImportHelper.hxx.
|
explicit |
Definition at line 201 of file XMLStylesImportHelper.cxx.
References end.
ScMyStylesImportHelper::~ScMyStylesImportHelper | ( | ) |
Definition at line 211 of file XMLStylesImportHelper.cxx.
void ScMyStylesImportHelper::AddCell | ( | const ScAddress & | rAddress | ) |
Definition at line 367 of file XMLStylesImportHelper.cxx.
References AddRange().
Referenced by ScXMLTableRowCellContext::AddFormulaCell(), and ScXMLTableRowCellContext::AddNonFormulaCell().
void ScMyStylesImportHelper::AddColumnStyle | ( | const OUString & | rStyleName, |
const sal_Int32 | nColumn, | ||
const sal_Int32 | nRepeat | ||
) |
Definition at line 298 of file XMLStylesImportHelper.cxx.
References aColDefaultStyles, GetIterator(), and i.
Referenced by ScMyTables::AddColStyle().
|
private |
Definition at line 232 of file XMLStylesImportHelper.cxx.
References aCellStyles, aColDefaultStyles, AddSingleRange(), ScRange::aEnd, aRowDefaultStyle, ScRange::aStart, ScAddress::Col(), i, pPrevStyleName, and ScAddress::SetCol().
Referenced by AddRange().
|
private |
Definition at line 289 of file XMLStylesImportHelper.cxx.
References AddDefaultRange(), AddSingleRange(), aPrevRange, pPrevStyleName, and ResetAttributes().
Referenced by AddCell(), ScXMLTableRowCellContext::AddNonFormulaCell(), AddRange(), and EndTable().
void ScMyStylesImportHelper::AddRange | ( | const ScRange & | rRange | ) |
Definition at line 320 of file XMLStylesImportHelper.cxx.
References AddRange(), ScRange::aEnd, aPrevRange, ScRange::aStart, bPrevRangeAdded, ScAddress::Col(), nCellType, nPrevCellType, pCurrency, pPrevCurrency, pPrevStyleName, pStyleName, ResetAttributes(), ScAddress::Row(), ScAddress::SetCol(), and ScAddress::SetRow().
|
private |
Definition at line 280 of file XMLStylesImportHelper.cxx.
References GetIterator(), nPrevCellType, pPrevCurrency, and pPrevStyleName.
Referenced by AddDefaultRange(), and AddRange().
void ScMyStylesImportHelper::EndTable | ( | ) |
Definition at line 382 of file XMLStylesImportHelper.cxx.
References AddRange(), and bPrevRangeAdded.
Referenced by ScXMLTableContext::endFastElement().
|
private |
Definition at line 223 of file XMLStylesImportHelper.cxx.
References aCellStyles.
Referenced by AddColumnStyle(), AddSingleRange(), and SetRowStyle().
void ScMyStylesImportHelper::InsertCol | ( | const sal_Int32 | nCol, |
const sal_Int32 | nTab | ||
) |
Definition at line 373 of file XMLStylesImportHelper.cxx.
References aCellStyles, and rImport.
Referenced by ScMyTables::AddColumn().
|
private |
Definition at line 215 of file XMLStylesImportHelper.cxx.
References nCellType, nPrevCellType, pCurrency, pPrevCurrency, pPrevStyleName, and pStyleName.
Referenced by AddRange().
void ScMyStylesImportHelper::SetAttributes | ( | std::optional< OUString > | pStyleName, |
std::optional< OUString > | pCurrency, | ||
const sal_Int16 | nCellType | ||
) |
Definition at line 312 of file XMLStylesImportHelper.cxx.
References nCellType, pCurrency, and pStyleName.
Referenced by ScXMLTableRowCellContext::ScXMLTableRowCellContext().
void ScMyStylesImportHelper::SetRowStyle | ( | const OUString & | rStyleName | ) |
Definition at line 307 of file XMLStylesImportHelper.cxx.
References aRowDefaultStyle, and GetIterator().
Referenced by ScMyTables::SetRowStyle().
void ScMyStylesImportHelper::SetStylesToRanges | ( | ) |
Definition at line 391 of file XMLStylesImportHelper.cxx.
References aCellStyles, aColDefaultStyles, and rImport.
Referenced by ScMyTables::DeleteTable().
|
private |
Definition at line 112 of file XMLStylesImportHelper.hxx.
Referenced by AddDefaultRange(), GetIterator(), InsertCol(), and SetStylesToRanges().
|
private |
Definition at line 113 of file XMLStylesImportHelper.hxx.
Referenced by AddColumnStyle(), AddDefaultRange(), and SetStylesToRanges().
|
private |
Definition at line 124 of file XMLStylesImportHelper.hxx.
Referenced by AddRange().
|
private |
Definition at line 114 of file XMLStylesImportHelper.hxx.
Referenced by AddDefaultRange(), and SetRowStyle().
|
private |
Definition at line 127 of file XMLStylesImportHelper.hxx.
Referenced by AddRange(), and EndTable().
|
private |
Definition at line 125 of file XMLStylesImportHelper.hxx.
Referenced by AddRange(), ResetAttributes(), and SetAttributes().
|
private |
Definition at line 126 of file XMLStylesImportHelper.hxx.
Referenced by AddRange(), AddSingleRange(), and ResetAttributes().
|
private |
Definition at line 121 of file XMLStylesImportHelper.hxx.
Referenced by AddRange(), ResetAttributes(), and SetAttributes().
|
private |
Definition at line 123 of file XMLStylesImportHelper.hxx.
Referenced by AddRange(), AddSingleRange(), and ResetAttributes().
|
private |
Definition at line 119 of file XMLStylesImportHelper.hxx.
Referenced by AddDefaultRange(), AddRange(), AddSingleRange(), and ResetAttributes().
|
private |
Definition at line 117 of file XMLStylesImportHelper.hxx.
Referenced by AddRange(), ResetAttributes(), and SetAttributes().
|
private |
Definition at line 115 of file XMLStylesImportHelper.hxx.
Referenced by InsertCol(), and SetStylesToRanges().