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 112 of file XMLStylesImportHelper.hxx.

Constructor & Destructor Documentation

ScMyStylesImportHelper::ScMyStylesImportHelper ( ScXMLImport rImport)
explicit

Definition at line 202 of file XMLStylesImportHelper.cxx.

References end.

ScMyStylesImportHelper::~ScMyStylesImportHelper ( )

Definition at line 212 of file XMLStylesImportHelper.cxx.

Member Function Documentation

void ScMyStylesImportHelper::AddCell ( const ScAddress rAddress)
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().

void ScMyStylesImportHelper::AddDefaultRange ( const ScRange rRange)
private
void ScMyStylesImportHelper::AddRange ( )
private
void ScMyStylesImportHelper::AddRange ( const ScRange rRange)
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().

void ScMyStylesImportHelper::EndTable ( )

Definition at line 382 of file XMLStylesImportHelper.cxx.

References AddRange(), and bPrevRangeAdded.

Referenced by ScXMLTableContext::endFastElement().

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

Definition at line 224 of file XMLStylesImportHelper.cxx.

References aCellStyles.

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

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

void ScMyStylesImportHelper::ResetAttributes ( )
private

Definition at line 216 of file XMLStylesImportHelper.cxx.

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

Referenced by AddRange().

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

Definition at line 307 of file XMLStylesImportHelper.cxx.

References aRowDefaultStyle, and GetIterator().

Referenced by ScMyTables::SetRowStyle().

void ScMyStylesImportHelper::SetStylesToRanges ( )

Definition at line 391 of file XMLStylesImportHelper.cxx.

References aCellStyles, aColDefaultStyles, and rImport.

Referenced by ScMyTables::DeleteTable().

Member Data Documentation

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

Definition at line 115 of file XMLStylesImportHelper.hxx.

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

ScRange ScMyStylesImportHelper::aPrevRange
private

Definition at line 126 of file XMLStylesImportHelper.hxx.

Referenced by AddRange().

ScMyStylesMap::iterator ScMyStylesImportHelper::aRowDefaultStyle
private

Definition at line 116 of file XMLStylesImportHelper.hxx.

Referenced by AddDefaultRange(), and SetRowStyle().

bool ScMyStylesImportHelper::bPrevRangeAdded
private

Definition at line 129 of file XMLStylesImportHelper.hxx.

Referenced by AddRange(), and EndTable().

sal_Int16 ScMyStylesImportHelper::nCellType
private

Definition at line 127 of file XMLStylesImportHelper.hxx.

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

sal_Int16 ScMyStylesImportHelper::nPrevCellType
private

Definition at line 128 of file XMLStylesImportHelper.hxx.

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

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

Definition at line 123 of file XMLStylesImportHelper.hxx.

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

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

Definition at line 125 of file XMLStylesImportHelper.hxx.

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

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

Definition at line 119 of file XMLStylesImportHelper.hxx.

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

ScXMLImport& ScMyStylesImportHelper::rImport
private

Definition at line 117 of file XMLStylesImportHelper.hxx.

Referenced by InsertCol(), and SetStylesToRanges().


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