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

#include <XMLStylesExportHelper.hxx>

Inheritance diagram for ScRowStyles:
[legend]
Collaboration diagram for ScRowStyles:
[legend]

Classes

struct  Cache
 

Public Member Functions

 ScRowStyles ()
 
virtual ~ScRowStyles () override
 
virtual void AddNewTable (const sal_Int32 nTable, const sal_Int32 nFields) override
 
sal_Int32 GetStyleNameIndex (const sal_Int32 nTable, const sal_Int32 nField)
 
void AddFieldStyleName (const sal_Int32 nTable, const sal_Int32 nField, const sal_Int32 nStringIndex)
 
void AddFieldStyleName (const sal_Int32 nTable, const sal_Int32 nStartField, const sal_Int32 nStringIndex, const sal_Int32 nEndField)
 
- Public Member Functions inherited from ScColumnRowStylesBase
 ScColumnRowStylesBase ()
 
virtual ~ScColumnRowStylesBase ()
 
virtual void AddNewTable (const sal_Int32 nTable, const sal_Int32 nFields)=0
 
sal_Int32 AddStyleName (const OUString &rString)
 
sal_Int32 GetIndexOfStyleName (std::u16string_view rString, std::u16string_view rPrefix)
 
OUString & GetStyleNameByIndex (const sal_Int32 nIndex)
 

Private Types

typedef ::mdds::flat_segment_tree< sal_Int32, sal_Int32 > StylesType
 

Private Attributes

std::vector< std::unique_ptr< StylesType > > aTables
 
Cache maCache
 

Detailed Description

Definition at line 228 of file XMLStylesExportHelper.hxx.

Member Typedef Documentation

◆ StylesType

typedef ::mdds::flat_segment_tree<sal_Int32, sal_Int32> ScRowStyles::StylesType
private

Definition at line 230 of file XMLStylesExportHelper.hxx.

Constructor & Destructor Documentation

◆ ScRowStyles()

ScRowStyles::ScRowStyles ( )

Definition at line 1003 of file XMLStylesExportHelper.cxx.

◆ ~ScRowStyles()

ScRowStyles::~ScRowStyles ( )
overridevirtual

Definition at line 1007 of file XMLStylesExportHelper.cxx.

Member Function Documentation

◆ AddFieldStyleName() [1/2]

void ScRowStyles::AddFieldStyleName ( const sal_Int32  nTable,
const sal_Int32  nField,
const sal_Int32  nStringIndex 
)

Definition at line 1049 of file XMLStylesExportHelper.cxx.

References aTables, and o3tl::make_unsigned().

◆ AddFieldStyleName() [2/2]

void ScRowStyles::AddFieldStyleName ( const sal_Int32  nTable,
const sal_Int32  nStartField,
const sal_Int32  nStringIndex,
const sal_Int32  nEndField 
)

Definition at line 1057 of file XMLStylesExportHelper.cxx.

References aTables, and o3tl::make_unsigned().

◆ AddNewTable()

void ScRowStyles::AddNewTable ( const sal_Int32  nTable,
const sal_Int32  nFields 
)
overridevirtual

Implements ScColumnRowStylesBase.

Definition at line 1011 of file XMLStylesExportHelper.cxx.

References aTables, and i.

◆ GetStyleNameIndex()

sal_Int32 ScRowStyles::GetStyleNameIndex ( const sal_Int32  nTable,
const sal_Int32  nField 
)

Member Data Documentation

◆ aTables

std::vector<std::unique_ptr<StylesType> > ScRowStyles::aTables
private

Definition at line 231 of file XMLStylesExportHelper.hxx.

Referenced by AddFieldStyleName(), AddNewTable(), and GetStyleNameIndex().

◆ maCache

Cache ScRowStyles::maCache
private

Definition at line 242 of file XMLStylesExportHelper.hxx.

Referenced by GetStyleNameIndex().


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