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

#include <XMLStylesImportHelper.hxx>

Collaboration diagram for ScMyStylesImportHelper:
[legend]

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
 
ScXMLImportrImport
 
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
 

Detailed Description

Definition at line 110 of file XMLStylesImportHelper.hxx.

Constructor & Destructor Documentation

◆ ScMyStylesImportHelper()

ScMyStylesImportHelper::ScMyStylesImportHelper ( ScXMLImport rImport)
explicit

Definition at line 201 of file XMLStylesImportHelper.cxx.

References end.

◆ ~ScMyStylesImportHelper()

ScMyStylesImportHelper::~ScMyStylesImportHelper ( )

Definition at line 211 of file XMLStylesImportHelper.cxx.

Member Function Documentation

◆ AddCell()

void ScMyStylesImportHelper::AddCell ( const ScAddress rAddress)

◆ AddColumnStyle()

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().

◆ AddDefaultRange()

void ScMyStylesImportHelper::AddDefaultRange ( const ScRange rRange)
private

◆ AddRange() [1/2]

void ScMyStylesImportHelper::AddRange ( )
private

◆ AddRange() [2/2]

void ScMyStylesImportHelper::AddRange ( const ScRange rRange)

◆ AddSingleRange()

void ScMyStylesImportHelper::AddSingleRange ( const ScRange rRange)
private

Definition at line 280 of file XMLStylesImportHelper.cxx.

References GetIterator(), nPrevCellType, pPrevCurrency, and pPrevStyleName.

Referenced by AddDefaultRange(), and AddRange().

◆ EndTable()

void ScMyStylesImportHelper::EndTable ( )

Definition at line 382 of file XMLStylesImportHelper.cxx.

References AddRange(), and bPrevRangeAdded.

Referenced by ScXMLTableContext::endFastElement().

◆ GetIterator()

ScMyStylesMap::iterator ScMyStylesImportHelper::GetIterator ( const OUString &  rStyleName)
private

Definition at line 223 of file XMLStylesImportHelper.cxx.

References aCellStyles.

Referenced by AddColumnStyle(), AddSingleRange(), and SetRowStyle().

◆ InsertCol()

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().

◆ ResetAttributes()

void ScMyStylesImportHelper::ResetAttributes ( )
private

Definition at line 215 of file XMLStylesImportHelper.cxx.

References nCellType, nPrevCellType, pCurrency, pPrevCurrency, pPrevStyleName, and pStyleName.

Referenced by AddRange().

◆ SetAttributes()

void ScMyStylesImportHelper::SetAttributes ( std::optional< OUString >  pStyleName,
std::optional< OUString >  pCurrency,
const sal_Int16  nCellType 
)

◆ SetRowStyle()

void ScMyStylesImportHelper::SetRowStyle ( const OUString &  rStyleName)

Definition at line 307 of file XMLStylesImportHelper.cxx.

References aRowDefaultStyle, and GetIterator().

Referenced by ScMyTables::SetRowStyle().

◆ SetStylesToRanges()

void ScMyStylesImportHelper::SetStylesToRanges ( )

Definition at line 391 of file XMLStylesImportHelper.cxx.

References aCellStyles, aColDefaultStyles, and rImport.

Referenced by ScMyTables::DeleteTable().

Member Data Documentation

◆ aCellStyles

ScMyStylesMap ScMyStylesImportHelper::aCellStyles
private

◆ aColDefaultStyles

std::vector<ScMyStylesMap::iterator> ScMyStylesImportHelper::aColDefaultStyles
private

Definition at line 113 of file XMLStylesImportHelper.hxx.

Referenced by AddColumnStyle(), AddDefaultRange(), and SetStylesToRanges().

◆ aPrevRange

ScRange ScMyStylesImportHelper::aPrevRange
private

Definition at line 124 of file XMLStylesImportHelper.hxx.

Referenced by AddRange().

◆ aRowDefaultStyle

ScMyStylesMap::iterator ScMyStylesImportHelper::aRowDefaultStyle
private

Definition at line 114 of file XMLStylesImportHelper.hxx.

Referenced by AddDefaultRange(), and SetRowStyle().

◆ bPrevRangeAdded

bool ScMyStylesImportHelper::bPrevRangeAdded
private

Definition at line 127 of file XMLStylesImportHelper.hxx.

Referenced by AddRange(), and EndTable().

◆ nCellType

sal_Int16 ScMyStylesImportHelper::nCellType
private

Definition at line 125 of file XMLStylesImportHelper.hxx.

Referenced by AddRange(), ResetAttributes(), and SetAttributes().

◆ nPrevCellType

sal_Int16 ScMyStylesImportHelper::nPrevCellType
private

Definition at line 126 of file XMLStylesImportHelper.hxx.

Referenced by AddRange(), AddSingleRange(), and ResetAttributes().

◆ pCurrency

std::optional<OUString> ScMyStylesImportHelper::pCurrency
private

Definition at line 121 of file XMLStylesImportHelper.hxx.

Referenced by AddRange(), ResetAttributes(), and SetAttributes().

◆ pPrevCurrency

std::optional<OUString> ScMyStylesImportHelper::pPrevCurrency
private

Definition at line 123 of file XMLStylesImportHelper.hxx.

Referenced by AddRange(), AddSingleRange(), and ResetAttributes().

◆ pPrevStyleName

std::optional<OUString> ScMyStylesImportHelper::pPrevStyleName
private

◆ pStyleName

std::optional<OUString> ScMyStylesImportHelper::pStyleName
private

Definition at line 117 of file XMLStylesImportHelper.hxx.

Referenced by AddRange(), ResetAttributes(), and SetAttributes().

◆ rImport

ScXMLImport& ScMyStylesImportHelper::rImport
private

Definition at line 115 of file XMLStylesImportHelper.hxx.

Referenced by InsertCol(), and SetStylesToRanges().


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