LibreOffice Module sc (master) 1
|
#include <sheetdata.hxx>
Public Member Functions | |
ScSheetSaveData () | |
~ScSheetSaveData () | |
void | AddCellStyle (const OUString &rName, const ScAddress &rCellPos) |
void | AddColumnStyle (const OUString &rName, const ScAddress &rCellPos) |
void | AddRowStyle (const OUString &rName, const ScAddress &rCellPos) |
void | AddTableStyle (const OUString &rName, const ScAddress &rCellPos) |
void | HandleNoteStyles (const OUString &rStyleName, const OUString &rTextName, const ScAddress &rCellPos) |
void | AddNoteContentStyle (XmlStyleFamily nFamily, const OUString &rName, const ScAddress &rCellPos, const ESelection &rSelection) |
void | AddTextStyle (const OUString &rName, const ScAddress &rCellPos, const ESelection &rSelection) |
void | BlockSheet (SCTAB nTab) |
bool | IsSheetBlocked (SCTAB nTab) const |
void | AddStreamPos (SCTAB nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset) |
void | GetStreamPos (SCTAB nTab, sal_Int32 &rStartOffset, sal_Int32 &rEndOffset) const |
bool | HasStreamPos (SCTAB nTab) const |
void | StartStreamPos (SCTAB nTab, sal_Int32 nStartOffset) |
void | EndStreamPos (sal_Int32 nEndOffset) |
bool | HasStartPos () const |
void | ResetSaveEntries () |
void | AddSavePos (SCTAB nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset) |
void | UseSaveEntries () |
void | StoreInitialNamespaces (const SvXMLNamespaceMap &rNamespaces) |
void | StoreLoadedNamespaces (const SvXMLNamespaceMap &rNamespaces) |
bool | AddLoadedNamespaces (SvXMLNamespaceMap &rNamespaces) const |
const std::vector< ScCellStyleEntry > & | GetCellStyles () const |
const std::vector< ScCellStyleEntry > & | GetColumnStyles () const |
const std::vector< ScCellStyleEntry > & | GetRowStyles () const |
const std::vector< ScCellStyleEntry > & | GetTableStyles () const |
const std::vector< ScNoteStyleEntry > & | GetNoteStyles () const |
const std::vector< ScTextStyleEntry > & | GetNoteParaStyles () const |
const std::vector< ScTextStyleEntry > & | GetNoteTextStyles () const |
const std::vector< ScTextStyleEntry > & | GetTextStyles () const |
bool | IsInSupportedSave () const |
void | SetInSupportedSave (bool bSet) |
Private Attributes | |
std::unordered_set< OUString > | maInitialPrefixes |
std::vector< ScLoadedNamespaceEntry > | maLoadedNamespaces |
std::vector< ScCellStyleEntry > | maCellStyles |
std::vector< ScCellStyleEntry > | maColumnStyles |
std::vector< ScCellStyleEntry > | maRowStyles |
std::vector< ScCellStyleEntry > | maTableStyles |
std::vector< ScNoteStyleEntry > | maNoteStyles |
std::vector< ScTextStyleEntry > | maNoteParaStyles |
std::vector< ScTextStyleEntry > | maNoteTextStyles |
std::vector< ScTextStyleEntry > | maTextStyles |
std::vector< bool > | maBlocked |
std::vector< ScStreamEntry > | maStreamEntries |
std::vector< ScStreamEntry > | maSaveEntries |
SCTAB | mnStartTab |
sal_Int32 | mnStartOffset |
ScNoteStyleEntry | maPreviousNote |
bool | mbInSupportedSave |
Definition at line 105 of file sheetdata.hxx.
ScSheetSaveData::ScSheetSaveData | ( | ) |
Definition at line 29 of file sheetdata.cxx.
ScSheetSaveData::~ScSheetSaveData | ( | ) |
Definition at line 37 of file sheetdata.cxx.
void ScSheetSaveData::AddCellStyle | ( | const OUString & | rName, |
const ScAddress & | rCellPos | ||
) |
Definition at line 41 of file sheetdata.cxx.
References maCellStyles.
Referenced by ScXMLImport::SetStyleToRanges().
void ScSheetSaveData::AddColumnStyle | ( | const OUString & | rName, |
const ScAddress & | rCellPos | ||
) |
Definition at line 46 of file sheetdata.cxx.
References maColumnStyles.
Referenced by ScXMLTableColContext::endFastElement().
bool ScSheetSaveData::AddLoadedNamespaces | ( | SvXMLNamespaceMap & | rNamespaces | ) | const |
Definition at line 205 of file sheetdata.cxx.
References SvXMLNamespaceMap::Add(), SvXMLNamespaceMap::GetAllEntries(), maLoadedNamespaces, ScLoadedNamespaceEntry::maName, ScLoadedNamespaceEntry::maPrefix, and ScLoadedNamespaceEntry::mnKey.
Referenced by ScXMLExport::SetSourceStream().
void ScSheetSaveData::AddNoteContentStyle | ( | XmlStyleFamily | nFamily, |
const OUString & | rName, | ||
const ScAddress & | rCellPos, | ||
const ESelection & | rSelection | ||
) |
Definition at line 79 of file sheetdata.cxx.
References maNoteParaStyles, and maNoteTextStyles.
Referenced by ScXMLTableRowCellContext::SetAnnotation().
void ScSheetSaveData::AddRowStyle | ( | const OUString & | rName, |
const ScAddress & | rCellPos | ||
) |
Definition at line 51 of file sheetdata.cxx.
References maRowStyles.
Referenced by ScXMLTableRowContext::endFastElement().
void ScSheetSaveData::AddSavePos | ( | SCTAB | nTab, |
sal_Int32 | nStartOffset, | ||
sal_Int32 | nEndOffset | ||
) |
Definition at line 159 of file sheetdata.cxx.
References maSaveEntries.
Referenced by ScXMLExport::ExportContent_().
void ScSheetSaveData::AddStreamPos | ( | SCTAB | nTab, |
sal_Int32 | nStartOffset, | ||
sal_Int32 | nEndOffset | ||
) |
Definition at line 108 of file sheetdata.cxx.
References maStreamEntries.
Referenced by EndStreamPos().
void ScSheetSaveData::AddTableStyle | ( | const OUString & | rName, |
const ScAddress & | rCellPos | ||
) |
Definition at line 56 of file sheetdata.cxx.
References maTableStyles.
Referenced by ScMyTables::SetTableStyle().
void ScSheetSaveData::AddTextStyle | ( | const OUString & | rName, |
const ScAddress & | rCellPos, | ||
const ESelection & | rSelection | ||
) |
Definition at line 87 of file sheetdata.cxx.
References maTextStyles.
Referenced by ScCellTextStyleContext::FillPropertySet(), and ScXMLTableRowCellContext::PushFormat().
void ScSheetSaveData::BlockSheet | ( | SCTAB | nTab | ) |
Definition at line 92 of file sheetdata.cxx.
References maBlocked.
Referenced by XMLTableShapeImportHelper::finishShape(), and ScXMLTableRowCellContext::SetContentValidation().
void ScSheetSaveData::EndStreamPos | ( | sal_Int32 | nEndOffset | ) |
Definition at line 124 of file sheetdata.cxx.
References AddStreamPos(), mnStartOffset, and mnStartTab.
Referenced by ScXMLBodyContext::characters(), ScXMLBodyContext::createFastChildContext(), and ScXMLBodyContext::endFastElement().
|
inline |
Definition at line 162 of file sheetdata.hxx.
References maCellStyles.
Referenced by ScXMLExport::collectAutoStyles().
|
inline |
Definition at line 163 of file sheetdata.hxx.
References maColumnStyles.
Referenced by ScXMLExport::collectAutoStyles().
|
inline |
Definition at line 167 of file sheetdata.hxx.
References maNoteParaStyles.
Referenced by ScXMLExport::collectAutoStyles().
|
inline |
Definition at line 166 of file sheetdata.hxx.
References maNoteStyles.
Referenced by ScXMLExport::collectAutoStyles().
|
inline |
Definition at line 168 of file sheetdata.hxx.
References maNoteTextStyles.
Referenced by ScXMLExport::collectAutoStyles().
|
inline |
Definition at line 164 of file sheetdata.hxx.
References maRowStyles.
Referenced by ScXMLExport::collectAutoStyles().
void ScSheetSaveData::GetStreamPos | ( | SCTAB | nTab, |
sal_Int32 & | rStartOffset, | ||
sal_Int32 & | rEndOffset | ||
) | const |
Definition at line 134 of file sheetdata.cxx.
References maStreamEntries, ScStreamEntry::mnEndOffset, and ScStreamEntry::mnStartOffset.
Referenced by ScXMLExport::ExportContent_(), and HasStreamPos().
|
inline |
Definition at line 165 of file sheetdata.hxx.
References maTableStyles.
Referenced by ScXMLExport::collectAutoStyles().
|
inline |
Definition at line 169 of file sheetdata.hxx.
References maTextStyles.
Referenced by ScXMLExport::collectAutoStyles().
void ScSheetSaveData::HandleNoteStyles | ( | const OUString & | rStyleName, |
const OUString & | rTextName, | ||
const ScAddress & | rCellPos | ||
) |
Definition at line 61 of file sheetdata.cxx.
References ScNoteStyleEntry::maCellPos, maNoteStyles, maPreviousNote, ScNoteStyleEntry::maStyleName, ScNoteStyleEntry::maTextStyle, and ScAddress::Tab().
Referenced by ScXMLTableRowCellContext::SetAnnotation().
|
inline |
Definition at line 152 of file sheetdata.hxx.
References mnStartTab.
Referenced by ScXMLBodyContext::characters(), ScXMLBodyContext::createFastChildContext(), and ScXMLBodyContext::endFastElement().
bool ScSheetSaveData::HasStreamPos | ( | SCTAB | nTab | ) | const |
Definition at line 146 of file sheetdata.cxx.
References GetStreamPos().
|
inline |
Definition at line 171 of file sheetdata.hxx.
References mbInSupportedSave.
Referenced by ScXMLImportWrapper::ExportToComponent().
bool ScSheetSaveData::IsSheetBlocked | ( | SCTAB | nTab | ) | const |
Definition at line 100 of file sheetdata.cxx.
References maBlocked.
Referenced by ScXMLImport::endDocument().
void ScSheetSaveData::ResetSaveEntries | ( | ) |
Definition at line 154 of file sheetdata.cxx.
References maSaveEntries.
Referenced by ScXMLExport::ExportContent_().
void ScSheetSaveData::SetInSupportedSave | ( | bool | bSet | ) |
Definition at line 240 of file sheetdata.cxx.
References mbInSupportedSave.
void ScSheetSaveData::StartStreamPos | ( | SCTAB | nTab, |
sal_Int32 | nStartOffset | ||
) |
Definition at line 116 of file sheetdata.cxx.
References mnStartOffset, and mnStartTab.
Referenced by ScXMLTableContext::endFastElement().
void ScSheetSaveData::StoreInitialNamespaces | ( | const SvXMLNamespaceMap & | rNamespaces | ) |
Definition at line 172 of file sheetdata.cxx.
References SvXMLNamespaceMap::GetAllEntries(), and maInitialPrefixes.
Referenced by ScXMLImport::startDocument().
void ScSheetSaveData::StoreLoadedNamespaces | ( | const SvXMLNamespaceMap & | rNamespaces | ) |
Definition at line 184 of file sheetdata.cxx.
References SvXMLNamespaceMap::GetAllEntries(), maInitialPrefixes, and maLoadedNamespaces.
Referenced by ScXMLBodyContext::endFastElement().
void ScSheetSaveData::UseSaveEntries | ( | ) |
Definition at line 167 of file sheetdata.cxx.
References maSaveEntries, and maStreamEntries.
|
private |
Definition at line 118 of file sheetdata.hxx.
Referenced by BlockSheet(), and IsSheetBlocked().
|
private |
Definition at line 110 of file sheetdata.hxx.
Referenced by AddCellStyle(), and GetCellStyles().
|
private |
Definition at line 111 of file sheetdata.hxx.
Referenced by AddColumnStyle(), and GetColumnStyles().
|
private |
Definition at line 107 of file sheetdata.hxx.
Referenced by StoreInitialNamespaces(), and StoreLoadedNamespaces().
|
private |
Definition at line 108 of file sheetdata.hxx.
Referenced by AddLoadedNamespaces(), and StoreLoadedNamespaces().
|
private |
Definition at line 115 of file sheetdata.hxx.
Referenced by AddNoteContentStyle(), and GetNoteParaStyles().
|
private |
Definition at line 114 of file sheetdata.hxx.
Referenced by GetNoteStyles(), and HandleNoteStyles().
|
private |
Definition at line 116 of file sheetdata.hxx.
Referenced by AddNoteContentStyle(), and GetNoteTextStyles().
|
private |
Definition at line 124 of file sheetdata.hxx.
Referenced by HandleNoteStyles().
|
private |
Definition at line 112 of file sheetdata.hxx.
Referenced by AddRowStyle(), and GetRowStyles().
|
private |
Definition at line 120 of file sheetdata.hxx.
Referenced by AddSavePos(), ResetSaveEntries(), and UseSaveEntries().
|
private |
Definition at line 119 of file sheetdata.hxx.
Referenced by AddStreamPos(), GetStreamPos(), and UseSaveEntries().
|
private |
Definition at line 113 of file sheetdata.hxx.
Referenced by AddTableStyle(), and GetTableStyles().
|
private |
Definition at line 117 of file sheetdata.hxx.
Referenced by AddTextStyle(), and GetTextStyles().
|
private |
Definition at line 126 of file sheetdata.hxx.
Referenced by IsInSupportedSave(), and SetInSupportedSave().
|
private |
Definition at line 122 of file sheetdata.hxx.
Referenced by EndStreamPos(), and StartStreamPos().
|
private |
Definition at line 121 of file sheetdata.hxx.
Referenced by EndStreamPos(), HasStartPos(), and StartStreamPos().