23#include <document.hxx>
27#include <unonames.hxx>
32#include <com/sun/star/sheet/XSpreadsheet.hpp>
33#include <com/sun/star/table/XColumnRowRange.hpp>
34#include <com/sun/star/sheet/XPrintAreas.hpp>
46 if ( !rAttrList.is() )
49 for (
auto &aIter : *rAttrList)
51 switch (aIter.getToken())
55 nColCount = std::max<sal_Int32>(aIter.toInt32(), 1);
91 sal_Int32 nLastColumn(nCurrentColumn +
nColCount - 1);
92 if (nLastColumn > pDoc->
MaxCol())
93 nLastColumn = pDoc->
MaxCol();
94 if (nCurrentColumn > pDoc->
MaxCol())
95 nCurrentColumn = pDoc->
MaxCol();
96 uno::Reference<table::XColumnRowRange> xColumnRowRange (xSheet->getCellRangeByPosition(nCurrentColumn, 0, nLastColumn, 0), uno::UNO_QUERY);
97 if (xColumnRowRange.is())
99 uno::Reference <beans::XPropertySet> xColumnProperties(xColumnRowRange->getColumns(), uno::UNO_QUERY);
100 if (xColumnProperties.is())
108 XmlStyleFamily::TABLE_COLUMN,
sStyleName,
true)));
115 ScSheetSaveData* pSheetData = comphelper::getFromUnoTunnel<ScModelObj>(rXMLImport.GetModel())->GetSheetSaveData();
140 const bool bTempHeader,
const bool bTempGroup) :
146 bHeader(bTempHeader),
156 if ( rAttrList.is() )
170 sal_Int32 nElement,
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList )
208 if (xPrintAreas.is())
210 if (!xPrintAreas->getPrintTitleColumns())
212 xPrintAreas->setPrintTitleColumns(
true);
213 table::CellRangeAddress aColumnHeaderRange;
216 xPrintAreas->setTitleColumns(aColumnHeaderRange);
220 table::CellRangeAddress aColumnHeaderRange(xPrintAreas->getTitleColumns());
222 xPrintAreas->setTitleColumns(aColumnHeaderRange);
ScSheetLimits & GetSheetLimits() const
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC ScOutlineTable * GetOutlineTable(SCTAB nTab, bool bCreate=false)
SCTAB GetCurrentSheet() const
const css::uno::Reference< css::sheet::XSpreadsheet > & GetCurrentXSheet() const
SCCOL GetCurrentColCount() const
void AddColStyle(const sal_Int32 nRepeat, const OUString &rCellStyleName)
bool Insert(SCCOLROW nStartPos, SCCOLROW nEndPos, bool &rSizeChanged, bool bHidden=false)
const ScOutlineArray & GetColArray() const
void AddColumnStyle(const OUString &rName, const ScAddress &rCellPos)
This class exists only to provide GetScImport() to its derived classes.
ScXMLImport & GetScImport()
Use this class to manage solar mutex locking instead of calling LockSolarMutex() and UnlockSolarMutex...
ScDocument * GetDocument()
ScXMLTableColContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual ~ScXMLTableColContext() override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
sal_Int32 nHeaderStartCol
ScXMLTableColsContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList, const bool bHeader, const bool bGroup)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual ~ScXMLTableColsContext() override
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
SCTAB GetLastSheet() const
void SetLastSheet(SCTAB nNew)
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet) override
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XML_DEFAULT_CELL_STYLE_NAME
XML_NUMBER_COLUMNS_REPEATED
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
SCCOL GetMaxColCount() const
constexpr OUStringLiteral SC_UNONAME_CELLVIS
#define XML_ELEMENT(prefix, name)