LibreOffice Module sc (master) 1
|
#include <XMLStylesExportHelper.hxx>
Public Member Functions | |
ScFormatRangeStyles () | |
~ScFormatRangeStyles () | |
void | SetColDefaults (const ScMyDefaultStyleList *pDefaults) |
void | AddNewTable (const sal_Int32 nTable) |
bool | AddStyleName (const OUString &rString, sal_Int32 &rIndex, const bool bIsAutoStyle=true) |
sal_Int32 | GetIndexOfStyleName (std::u16string_view rString, std::u16string_view rPrefix, bool &bIsAutoStyle) |
sal_Int32 | GetStyleNameIndex (const sal_Int32 nTable, const sal_Int32 nColumn, const sal_Int32 nRow, bool &bIsAutoStyle) const |
sal_Int32 | GetStyleNameIndex (const sal_Int32 nTable, const sal_Int32 nColumn, const sal_Int32 nRow, bool &bIsAutoStyle, sal_Int32 &nValidationIndex, sal_Int32 &nNumberFormat, const sal_Int32 nRemoveBeforeRow) |
void | GetFormatRanges (const sal_Int32 nStartColumn, const sal_Int32 nEndColumn, const sal_Int32 nRow, const sal_Int32 nTable, ScRowFormatRanges *pFormatRanges) |
void | AddRangeStyleName (const css::table::CellRangeAddress &rCellRangeAddress, const sal_Int32 nStringIndex, const bool bIsAutoStyle, const sal_Int32 nValidationIndex, const sal_Int32 nNumberFormat) |
OUString & | GetStyleNameByIndex (const sal_Int32 nIndex, const bool bIsAutoStyle) |
void | Sort () |
Private Types | |
typedef std::list< ScMyFormatRange > | ScMyFormatRangeAddresses |
typedef std::vector< ScMyFormatRangeAddresses > | ScMyFormatRangeListVec |
Private Attributes | |
ScMyFormatRangeListVec | aTables |
std::vector< OUString > | aStyleNames |
std::vector< OUString > | aAutoStyleNames |
const ScMyDefaultStyleList * | pColDefaults |
Definition at line 158 of file XMLStylesExportHelper.hxx.
|
private |
Definition at line 160 of file XMLStylesExportHelper.hxx.
|
private |
Definition at line 161 of file XMLStylesExportHelper.hxx.
ScFormatRangeStyles::ScFormatRangeStyles | ( | ) |
Definition at line 652 of file XMLStylesExportHelper.cxx.
ScFormatRangeStyles::~ScFormatRangeStyles | ( | ) |
Definition at line 657 of file XMLStylesExportHelper.cxx.
void ScFormatRangeStyles::AddNewTable | ( | const sal_Int32 | nTable | ) |
Definition at line 661 of file XMLStylesExportHelper.cxx.
void ScFormatRangeStyles::AddRangeStyleName | ( | const css::table::CellRangeAddress & | rCellRangeAddress, |
const sal_Int32 | nStringIndex, | ||
const bool | bIsAutoStyle, | ||
const sal_Int32 | nValidationIndex, | ||
const sal_Int32 | nNumberFormat | ||
) |
Definition at line 874 of file XMLStylesExportHelper.cxx.
References ScMyFormatRange::aRangeAddress, aTables, ScMyFormatRange::bIsAutoStyle, o3tl::make_unsigned(), ScMyFormatRange::nNumberFormat, ScMyFormatRange::nStyleNameIndex, and ScMyFormatRange::nValidationIndex.
bool ScFormatRangeStyles::AddStyleName | ( | const OUString & | rString, |
sal_Int32 & | rIndex, | ||
const bool | bIsAutoStyle = true |
||
) |
Definition at line 671 of file XMLStylesExportHelper.cxx.
References aAutoStyleNames, aStyleNames, i, and nCount.
void ScFormatRangeStyles::GetFormatRanges | ( | const sal_Int32 | nStartColumn, |
const sal_Int32 | nEndColumn, | ||
const sal_Int32 | nRow, | ||
const sal_Int32 | nTable, | ||
ScRowFormatRanges * | pFormatRanges | ||
) |
Definition at line 812 of file XMLStylesExportHelper.cxx.
References ScRowFormatRanges::AddRange(), aTables, ScMyRowFormatRange::bIsAutoStyle, o3tl::make_unsigned(), ScMyRowFormatRange::nIndex, ScMyRowFormatRange::nRepeatColumns, ScMyRowFormatRange::nRepeatRows, ScMyRowFormatRange::nStartColumn, ScMyRowFormatRange::nValidationIndex, and ScRowFormatRanges::Sort().
sal_Int32 ScFormatRangeStyles::GetIndexOfStyleName | ( | std::u16string_view | rString, |
std::u16string_view | rPrefix, | ||
bool & | bIsAutoStyle | ||
) |
Definition at line 705 of file XMLStylesExportHelper.cxx.
References aAutoStyleNames, aStyleNames, i, o3tl::make_unsigned(), nIndex, and o3tl::toInt32().
OUString & ScFormatRangeStyles::GetStyleNameByIndex | ( | const sal_Int32 | nIndex, |
const bool | bIsAutoStyle | ||
) |
Definition at line 889 of file XMLStylesExportHelper.cxx.
References aAutoStyleNames, aStyleNames, and nIndex.
sal_Int32 ScFormatRangeStyles::GetStyleNameIndex | ( | const sal_Int32 | nTable, |
const sal_Int32 | nColumn, | ||
const sal_Int32 | nRow, | ||
bool & | bIsAutoStyle | ||
) | const |
Definition at line 752 of file XMLStylesExportHelper.cxx.
References aTables, and o3tl::make_unsigned().
Referenced by ScMyNotEmptyCellsIterator::GetNext(), and ScMyDefaultStyles::GetStyleNameIndex().
sal_Int32 ScFormatRangeStyles::GetStyleNameIndex | ( | const sal_Int32 | nTable, |
const sal_Int32 | nColumn, | ||
const sal_Int32 | nRow, | ||
bool & | bIsAutoStyle, | ||
sal_Int32 & | nValidationIndex, | ||
sal_Int32 & | nNumberFormat, | ||
const sal_Int32 | nRemoveBeforeRow | ||
) |
Definition at line 773 of file XMLStylesExportHelper.cxx.
References aTables, o3tl::make_unsigned(), and pColDefaults.
|
inline |
Definition at line 172 of file XMLStylesExportHelper.hxx.
References pColDefaults.
void ScFormatRangeStyles::Sort | ( | ) |
Definition at line 897 of file XMLStylesExportHelper.cxx.
References aTables.
|
private |
Definition at line 165 of file XMLStylesExportHelper.hxx.
Referenced by AddStyleName(), GetIndexOfStyleName(), and GetStyleNameByIndex().
|
private |
Definition at line 164 of file XMLStylesExportHelper.hxx.
Referenced by AddStyleName(), GetIndexOfStyleName(), and GetStyleNameByIndex().
|
private |
Definition at line 163 of file XMLStylesExportHelper.hxx.
Referenced by AddNewTable(), AddRangeStyleName(), GetFormatRanges(), GetStyleNameIndex(), and Sort().
|
private |
Definition at line 166 of file XMLStylesExportHelper.hxx.
Referenced by GetStyleNameIndex(), and SetColDefaults().