LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
ScFormatRangeStyles Class Reference

#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< ScMyFormatRangeScMyFormatRangeAddresses
 
typedef std::vector< ScMyFormatRangeAddressesScMyFormatRangeListVec
 

Private Attributes

ScMyFormatRangeListVec aTables
 
std::vector< OUString > aStyleNames
 
std::vector< OUString > aAutoStyleNames
 
const ScMyDefaultStyleListpColDefaults
 

Detailed Description

Definition at line 158 of file XMLStylesExportHelper.hxx.

Member Typedef Documentation

◆ ScMyFormatRangeAddresses

Definition at line 160 of file XMLStylesExportHelper.hxx.

◆ ScMyFormatRangeListVec

Definition at line 161 of file XMLStylesExportHelper.hxx.

Constructor & Destructor Documentation

◆ ScFormatRangeStyles()

ScFormatRangeStyles::ScFormatRangeStyles ( )

Definition at line 652 of file XMLStylesExportHelper.cxx.

◆ ~ScFormatRangeStyles()

ScFormatRangeStyles::~ScFormatRangeStyles ( )

Definition at line 657 of file XMLStylesExportHelper.cxx.

Member Function Documentation

◆ AddNewTable()

void ScFormatRangeStyles::AddNewTable ( const sal_Int32  nTable)

Definition at line 661 of file XMLStylesExportHelper.cxx.

References aTables, and i.

◆ AddRangeStyleName()

void ScFormatRangeStyles::AddRangeStyleName ( const css::table::CellRangeAddress &  rCellRangeAddress,
const sal_Int32  nStringIndex,
const bool  bIsAutoStyle,
const sal_Int32  nValidationIndex,
const sal_Int32  nNumberFormat 
)

◆ AddStyleName()

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.

◆ GetFormatRanges()

void ScFormatRangeStyles::GetFormatRanges ( const sal_Int32  nStartColumn,
const sal_Int32  nEndColumn,
const sal_Int32  nRow,
const sal_Int32  nTable,
ScRowFormatRanges pFormatRanges 
)

◆ GetIndexOfStyleName()

sal_Int32 ScFormatRangeStyles::GetIndexOfStyleName ( std::u16string_view  rString,
std::u16string_view  rPrefix,
bool &  bIsAutoStyle 
)

◆ GetStyleNameByIndex()

OUString & ScFormatRangeStyles::GetStyleNameByIndex ( const sal_Int32  nIndex,
const bool  bIsAutoStyle 
)

Definition at line 889 of file XMLStylesExportHelper.cxx.

References aAutoStyleNames, aStyleNames, and nIndex.

◆ GetStyleNameIndex() [1/2]

sal_Int32 ScFormatRangeStyles::GetStyleNameIndex ( const sal_Int32  nTable,
const sal_Int32  nColumn,
const sal_Int32  nRow,
bool &  bIsAutoStyle 
) const

◆ GetStyleNameIndex() [2/2]

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.

◆ SetColDefaults()

void ScFormatRangeStyles::SetColDefaults ( const ScMyDefaultStyleList pDefaults)
inline

Definition at line 172 of file XMLStylesExportHelper.hxx.

References pColDefaults.

◆ Sort()

void ScFormatRangeStyles::Sort ( )

Definition at line 897 of file XMLStylesExportHelper.cxx.

References aTables.

Member Data Documentation

◆ aAutoStyleNames

std::vector<OUString> ScFormatRangeStyles::aAutoStyleNames
private

◆ aStyleNames

std::vector<OUString> ScFormatRangeStyles::aStyleNames
private

◆ aTables

ScMyFormatRangeListVec ScFormatRangeStyles::aTables
private

◆ pColDefaults

const ScMyDefaultStyleList* ScFormatRangeStyles::pColDefaults
private

Definition at line 166 of file XMLStylesExportHelper.hxx.

Referenced by GetStyleNameIndex(), and SetColDefaults().


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