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 (const OUString &rString, const OUString &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 159 of file XMLStylesExportHelper.hxx.

Member Typedef Documentation

Definition at line 161 of file XMLStylesExportHelper.hxx.

Definition at line 162 of file XMLStylesExportHelper.hxx.

Constructor & Destructor Documentation

ScFormatRangeStyles::ScFormatRangeStyles ( )

Definition at line 671 of file XMLStylesExportHelper.cxx.

ScFormatRangeStyles::~ScFormatRangeStyles ( )

Definition at line 679 of file XMLStylesExportHelper.cxx.

Member Function Documentation

void ScFormatRangeStyles::AddNewTable ( const sal_Int32  nTable)

Definition at line 683 of file XMLStylesExportHelper.cxx.

References aTables, and i.

void ScFormatRangeStyles::AddRangeStyleName ( const css::table::CellRangeAddress &  rCellRangeAddress,
const sal_Int32  nStringIndex,
const bool  bIsAutoStyle,
const sal_Int32  nValidationIndex,
const sal_Int32  nNumberFormat 
)
bool ScFormatRangeStyles::AddStyleName ( const OUString &  rString,
sal_Int32 &  rIndex,
const bool  bIsAutoStyle = true 
)

Definition at line 693 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 
)
sal_Int32 ScFormatRangeStyles::GetIndexOfStyleName ( const OUString &  rString,
const OUString &  rPrefix,
bool &  bIsAutoStyle 
)

Definition at line 727 of file XMLStylesExportHelper.cxx.

References aAutoStyleNames, aStyleNames, i, o3tl::make_unsigned(), and nIndex.

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

Definition at line 910 of file XMLStylesExportHelper.cxx.

References aAutoStyleNames, and aStyleNames.

sal_Int32 ScFormatRangeStyles::GetStyleNameIndex ( const sal_Int32  nTable,
const sal_Int32  nColumn,
const sal_Int32  nRow,
bool &  bIsAutoStyle 
) const
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 794 of file XMLStylesExportHelper.cxx.

References aTables, o3tl::make_unsigned(), and pColDefaults.

void ScFormatRangeStyles::SetColDefaults ( const ScMyDefaultStyleList pDefaults)
inline

Definition at line 173 of file XMLStylesExportHelper.hxx.

void ScFormatRangeStyles::Sort ( )

Definition at line 918 of file XMLStylesExportHelper.cxx.

References aTables.

Member Data Documentation

std::vector<OUString> ScFormatRangeStyles::aAutoStyleNames
private
std::vector<OUString> ScFormatRangeStyles::aStyleNames
private
ScMyFormatRangeListVec ScFormatRangeStyles::aTables
private
const ScMyDefaultStyleList* ScFormatRangeStyles::pColDefaults
private

Definition at line 167 of file XMLStylesExportHelper.hxx.

Referenced by GetStyleNameIndex().


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