|
LibreOffice Module sc (master) 1
|
#include <xmlsubti.hxx>
Public Member Functions | |
| ScMyTables (ScXMLImport &rImport) | |
| ~ScMyTables () | |
| void | NewSheet (const OUString &sTableName, const OUString &sStyleName, const ScXMLTabProtectionData &rProtectData) |
| void | AddRow () |
| void | SetRowStyle (const OUString &rCellStyleName) |
| void | AddColumn (bool bIsCovered) |
| void | FixupOLEs () |
| void | DeleteTable () |
| const ScAddress & | GetCurrentCellPos () const |
| void | AddColStyle (const sal_Int32 nRepeat, const OUString &rCellStyleName) |
| ScXMLTabProtectionData & | GetCurrentProtectionData () |
| const OUString & | GetCurrentSheetName () const |
| SCTAB | GetCurrentSheet () const |
| SCCOL | GetCurrentColCount () const |
| SCROW | GetCurrentRow () const |
| const css::uno::Reference< css::sheet::XSpreadsheet > & | GetCurrentXSheet () const |
| css::uno::Reference< css::drawing::XDrawPage > const & | GetCurrentXDrawPage () |
| css::uno::Reference< css::drawing::XShapes > const & | GetCurrentXShapes () |
| bool | HasDrawPage () const |
| bool | HasXShapes () const |
| void | AddOLE (const css::uno::Reference< css::drawing::XShape > &rShape, const OUString &rRangeList) |
| void | AddMatrixRange (const SCCOL nStartColumn, const SCROW nStartRow, const SCCOL nEndColumn, const SCROW nEndRow, const OUString &rFormula, const OUString &rFormulaNmsp, const formula::FormulaGrammar::Grammar) |
| bool | IsPartOfMatrix (const ScAddress &rScAddress) const |
Static Public Member Functions | |
| static bool | IsOLE (const css::uno::Reference< css::drawing::XShape > &rShape) |
Private Member Functions | |
| void | SetTableStyle (const OUString &sStyleName) |
Private Attributes | |
| ScXMLImport & | rImport |
| ScMyOLEFixer | aFixupOLEs |
| css::uno::Reference< css::sheet::XSpreadsheet > | xCurrentSheet |
| css::uno::Reference< css::drawing::XDrawPage > | xDrawPage |
| css::uno::Reference< css::drawing::XShapes > | xShapes |
| OUString | sCurrentSheetName |
| ScAddress | maCurrentCellPos |
| ScRangeList | maMatrixRangeList |
| ScXMLTabProtectionData | maProtectionData |
| sal_Int32 | nCurrentColCount |
| sal_Int16 | nCurrentDrawPage |
| sal_Int16 | nCurrentXShapes |
Definition at line 49 of file xmlsubti.hxx.
|
explicit |
Definition at line 56 of file xmlsubti.cxx.
| ScMyTables::~ScMyTables | ( | ) |
Definition at line 66 of file xmlsubti.cxx.
| void ScMyTables::AddColStyle | ( | const sal_Int32 | nRepeat, |
| const OUString & | rCellStyleName | ||
| ) |
Definition at line 209 of file xmlsubti.cxx.
References ScMyStylesImportHelper::AddColumnStyle(), ScXMLImport::GetDocument(), ScSheetLimits::GetMaxColCount(), ScDocument::GetSheetLimits(), ScXMLImport::GetStylesImportHelper(), nCurrentColCount, rImport, and SAL_WARN_IF.
Referenced by ScXMLTableColContext::endFastElement().
| void ScMyTables::AddColumn | ( | bool | bIsCovered | ) |
Definition at line 173 of file xmlsubti.cxx.
References ScAddress::Col(), ScXMLImport::GetStylesImportHelper(), ScMyStylesImportHelper::InsertCol(), maCurrentCellPos, rImport, ScAddress::Row(), ScAddress::SetCol(), and ScAddress::Tab().
Referenced by ScXMLTableRowCellContext::AddTextAndValueCell(), and ScXMLTableRowCellContext::ScXMLTableRowCellContext().
| void ScMyTables::AddMatrixRange | ( | const SCCOL | nStartColumn, |
| const SCROW | nStartRow, | ||
| const SCCOL | nEndColumn, | ||
| const SCROW | nEndRow, | ||
| const OUString & | rFormula, | ||
| const OUString & | rFormulaNmsp, | ||
| const formula::FormulaGrammar::Grammar | eGrammar | ||
| ) |
Definition at line 258 of file xmlsubti.cxx.
References ScTokenArray::AssignXMLString(), ScDocumentImport::getDoc(), ScXMLImport::GetDoc(), formula::FormulaGrammar::GRAM_EXTERNAL, ScDocument::IncXMLImportedFormulaCount(), maCurrentCellPos, maMatrixRangeList, ScRangeList::push_back(), rImport, ScDocumentImport::setMatrixCells(), and ScAddress::Tab().
Referenced by ScXMLTableRowCellContext::AddFormulaCell().
| void ScMyTables::AddOLE | ( | const css::uno::Reference< css::drawing::XShape > & | rShape, |
| const OUString & | rRangeList | ||
| ) |
Definition at line 252 of file xmlsubti.cxx.
References ScMyOLEFixer::AddOLE(), and aFixupOLEs.
Referenced by XMLTableShapeImportHelper::finishShape().
| void ScMyTables::AddRow | ( | ) |
Definition at line 162 of file xmlsubti.cxx.
References maCurrentCellPos, ScAddress::Row(), ScAddress::SetCol(), and ScAddress::SetRow().
Referenced by ScXMLTableRowCellContext::AddTextAndValueCell(), ScXMLTableRowContext::endFastElement(), and ScXMLTableRowContext::ScXMLTableRowContext().
| void ScMyTables::DeleteTable | ( | ) |
Definition at line 182 of file xmlsubti.cxx.
References comphelper::Base64::decode(), ScTableProtection::DELETE_COLUMNS, ScTableProtection::DELETE_ROWS, ScXMLImport::GetDocument(), ScXMLImport::GetStylesImportHelper(), ScTableProtection::INSERT_COLUMNS, ScTableProtection::INSERT_ROWS, maCurrentCellPos, maMatrixRangeList, ScXMLTabProtectionData::maPassword, maProtectionData, ScXMLTabProtectionData::mbDeleteColumns, ScXMLTabProtectionData::mbDeleteRows, ScXMLTabProtectionData::mbInsertColumns, ScXMLTabProtectionData::mbInsertRows, ScXMLTabProtectionData::mbProtected, ScXMLTabProtectionData::mbSelectProtectedCells, ScXMLTabProtectionData::mbSelectUnprotectedCells, ScXMLTabProtectionData::meHash1, ScXMLTabProtectionData::meHash2, ScRangeList::RemoveAll(), rImport, ScTableProtection::SELECT_LOCKED_CELLS, ScTableProtection::SELECT_UNLOCKED_CELLS, ScTableProtection::setOption(), ScTableProtection::setPasswordHash(), ScTableProtection::setProtected(), ScMyStylesImportHelper::SetStylesToRanges(), ScXMLImport::SetStylesToRangesFinished(), ScDocument::SetTabProtection(), and ScAddress::Tab().
Referenced by ScXMLTableContext::endFastElement().
|
inline |
Definition at line 76 of file xmlsubti.hxx.
References aFixupOLEs, and ScMyOLEFixer::FixupOLEs().
Referenced by ScXMLImport::endDocument().
|
inline |
Definition at line 80 of file xmlsubti.hxx.
References maCurrentCellPos.
Referenced by ScXMLTableRowCellContext::createFastChildContext(), ScXMLTableRowCellContext::endFastElement(), ScXMLTableRowCellContext::PushFormat(), ScXMLTableRowCellContext::PushParagraphFieldSheetName(), ScXMLDetectiveOperationContext::ScXMLDetectiveOperationContext(), and ScXMLTableRowsContext::ScXMLTableRowsContext().
| SCCOL ScMyTables::GetCurrentColCount | ( | ) | const |
Definition at line 286 of file xmlsubti.cxx.
References ScXMLImport::GetDocument(), ScDocument::MaxCol(), nCurrentColCount, and rImport.
Referenced by ScXMLTableColContext::endFastElement(), ScXMLTableColsContext::endFastElement(), and ScXMLTableColsContext::ScXMLTableColsContext().
|
inline |
Definition at line 82 of file xmlsubti.hxx.
References maProtectionData.
Referenced by ScXMLTableProtectionContext::ScXMLTableProtectionContext().
|
inline |
Definition at line 86 of file xmlsubti.hxx.
References maCurrentCellPos, and ScAddress::Row().
Referenced by ScXMLTableRowContext::endFastElement(), ScXMLTableRowsContext::endFastElement(), and ScXMLTableRowsContext::ScXMLTableRowsContext().
|
inline |
Definition at line 84 of file xmlsubti.hxx.
References maCurrentCellPos, and ScAddress::Tab().
Referenced by XMLTableStyleContext::ApplyCondFormat(), ScXMLTableContext::createFastChildContext(), ScXMLTableColContext::endFastElement(), ScXMLTableColsContext::endFastElement(), ScXMLConditionalFormatsContext::endFastElement(), ScXMLConditionalFormatContext::endFastElement(), ScXMLTableRowContext::endFastElement(), ScXMLTableRowsContext::endFastElement(), ScXMLTableContext::endFastElement(), ScCellTextStyleContext::FillPropertySet(), and XMLTableShapeImportHelper::finishShape().
|
inline |
Definition at line 83 of file xmlsubti.hxx.
References sCurrentSheetName.
| uno::Reference< drawing::XDrawPage > const & ScMyTables::GetCurrentXDrawPage | ( | ) |
Definition at line 218 of file xmlsubti.cxx.
References maCurrentCellPos, nCurrentDrawPage, ScAddress::Tab(), xCurrentSheet, and xDrawPage.
Referenced by GetCurrentXShapes().
| uno::Reference< drawing::XShapes > const & ScMyTables::GetCurrentXShapes | ( | ) |
Definition at line 230 of file xmlsubti.cxx.
References GetCurrentXDrawPage(), maCurrentCellPos, nCurrentXShapes, rImport, ScAddress::Tab(), and xShapes.
Referenced by ScXMLTableRowCellContext::createFastChildContext(), ScXMLTableShapesContext::createFastChildContext(), ScXMLTableContext::endFastElement(), XMLTableShapeImportHelper::finishShape(), ScXMLTableRowCellContext::SetAnnotation(), and ScXMLTableRowCellContext::SetDetectiveObj().
|
inline |
Definition at line 88 of file xmlsubti.hxx.
References xCurrentSheet.
Referenced by ScXMLTableColContext::endFastElement(), ScXMLTableColsContext::endFastElement(), ScXMLTableRowContext::endFastElement(), and ScXMLTableRowsContext::endFastElement().
| bool ScMyTables::HasDrawPage | ( | ) | const |
Definition at line 242 of file xmlsubti.cxx.
References maCurrentCellPos, nCurrentDrawPage, ScAddress::Tab(), and xDrawPage.
Referenced by ScXMLTableContext::endFastElement().
| bool ScMyTables::HasXShapes | ( | ) | const |
Definition at line 247 of file xmlsubti.cxx.
References maCurrentCellPos, nCurrentXShapes, ScAddress::Tab(), and xShapes.
Referenced by ScXMLTableContext::endFastElement().
|
inlinestatic |
Definition at line 77 of file xmlsubti.hxx.
References ScMyOLEFixer::IsOLE().
Referenced by XMLTableShapeImportHelper::finishShape().
| bool ScMyTables::IsPartOfMatrix | ( | const ScAddress & | rScAddress | ) | const |
Definition at line 279 of file xmlsubti.cxx.
References ScRangeList::Contains(), ScRangeList::empty(), and maMatrixRangeList.
Referenced by ScXMLTableRowCellContext::PutTextCell(), and ScXMLTableRowCellContext::PutValueCell().
| void ScMyTables::NewSheet | ( | const OUString & | sTableName, |
| const OUString & | sStyleName, | ||
| const ScXMLTabProtectionData & | rProtectData | ||
| ) |
Definition at line 93 of file xmlsubti.cxx.
References ScDocument::AppendTabOnLoad(), ScXMLConverter::GetScDocument(), maCurrentCellPos, maProtectionData, nCurrentColCount, rImport, sCurrentSheetName, ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::SetTab(), SetTableStyle(), ScDocument::SetTabNameOnLoad(), ScAddress::Tab(), and xCurrentSheet.
Referenced by ScXMLTableContext::ScXMLTableContext().
| void ScMyTables::SetRowStyle | ( | const OUString & | rCellStyleName | ) |
Definition at line 168 of file xmlsubti.cxx.
References ScXMLImport::GetStylesImportHelper(), rImport, and ScMyStylesImportHelper::SetRowStyle().
Referenced by ScXMLTableRowContext::ScXMLTableRowContext().
|
private |
Definition at line 125 of file xmlsubti.cxx.
References ScSheetSaveData::AddTableStyle(), XMLTableStyleContext::FillPropertySet(), SvXMLStylesContext::FindStyleChildContext(), maCurrentCellPos, rImport, ScAddress::Tab(), and xCurrentSheet.
Referenced by NewSheet().
|
private |
Definition at line 54 of file xmlsubti.hxx.
Referenced by AddOLE(), and FixupOLEs().
|
private |
Definition at line 60 of file xmlsubti.hxx.
Referenced by AddColumn(), AddMatrixRange(), AddRow(), DeleteTable(), GetCurrentCellPos(), GetCurrentRow(), GetCurrentSheet(), GetCurrentXDrawPage(), GetCurrentXShapes(), HasDrawPage(), HasXShapes(), NewSheet(), and SetTableStyle().
|
private |
Definition at line 61 of file xmlsubti.hxx.
Referenced by AddMatrixRange(), DeleteTable(), and IsPartOfMatrix().
|
private |
Definition at line 62 of file xmlsubti.hxx.
Referenced by DeleteTable(), GetCurrentProtectionData(), and NewSheet().
|
private |
Definition at line 63 of file xmlsubti.hxx.
Referenced by AddColStyle(), GetCurrentColCount(), and NewSheet().
|
private |
Definition at line 64 of file xmlsubti.hxx.
Referenced by GetCurrentXDrawPage(), and HasDrawPage().
|
private |
Definition at line 65 of file xmlsubti.hxx.
Referenced by GetCurrentXShapes(), and HasXShapes().
|
private |
Definition at line 52 of file xmlsubti.hxx.
Referenced by AddColStyle(), AddColumn(), AddMatrixRange(), DeleteTable(), GetCurrentColCount(), GetCurrentXShapes(), NewSheet(), SetRowStyle(), and SetTableStyle().
|
private |
Definition at line 59 of file xmlsubti.hxx.
Referenced by GetCurrentSheetName(), and NewSheet().
|
private |
Definition at line 56 of file xmlsubti.hxx.
Referenced by GetCurrentXDrawPage(), GetCurrentXSheet(), NewSheet(), and SetTableStyle().
|
private |
Definition at line 57 of file xmlsubti.hxx.
Referenced by GetCurrentXDrawPage(), and HasDrawPage().
|
private |
Definition at line 58 of file xmlsubti.hxx.
Referenced by GetCurrentXShapes(), and HasXShapes().