27#include <document.hxx>
45#include <com/sun/star/sheet/XSpreadsheet.hpp>
50using ::com::sun::star::uno::Reference;
51using ::com::sun::star::uno::UNO_QUERY;
72 if ( rName.toChar() !=
'\'' )
78 if ( eProt == INetProtocol::NotValid )
82 sal_Int32 nPrefLen = aPrefix.getLength();
84 OUStringBuffer aUrlBuf, aTabNameBuf;
85 aUrlBuf.append( aPrefix );
86 sal_Int32
n = rName.getLength();
91 for (sal_Int32
i = nPrefLen+1;
i <
n; ++
i)
102 rUrl = aUrlBuf.makeStringAndClear();
103 rUrl = rUrl.copy(0, rUrl.getLength()-1);
111 aTabNameBuf.append(c);
119 if (aTabNameBuf.isEmpty())
122 rExtTabName = aTabNameBuf.makeStringAndClear();
136 bStartFormPage(false),
137 bPrintEntireSheet(true)
146 if ( rAttrList.is() )
148 for (
auto &it : *rAttrList)
150 switch (it.getToken())
153 sName = it.toString();
156 sStyleName = it.toString();
185 OUString aExtUrl, aExtTabName;
211uno::Reference< xml::sax::XFastContextHandler > SAL_CALL
213 const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
251 std::make_shared<ScXMLNamedExpressionsContext::SheetLocalInserter>(
GetScImport(), nTab));
308 uno::Reference<document::XEventsSupplier> xSupplier(
GetScImport().GetTables().GetCurrentXSheet(), uno::UNO_QUERY );
360 size_t nDepth = rColArray.
GetDepth();
361 for (
size_t i = 0;
i < nDepth; ++
i)
364 for (
size_t j = 0; j <
nCount; ++j)
373 for (
size_t i = 0;
i < nDepth; ++
i)
376 for (
size_t j = 0; j <
nCount; ++j)
388 rImport.GetShapeImport()->popGroupAndPostProcess();
390 rImport.GetShapeImport()->endPage(xTempShapes);
393 rImport.GetFormImport()->endPage();
402 ScSheetSaveData* pSheetData = comphelper::getFromUnoTunnel<ScModelObj>(rImport.GetModel())->GetSheetSaveData();
414 bool bSelectProtectedCells =
false;
415 bool bSelectUnprotectedCells =
false;
416 bool bInsertColumns =
false;
417 bool bInsertRows =
false;
418 bool bDeleteColumns =
false;
419 bool bDeleteRows =
false;
421 if ( rAttrList.is() )
423 for (
auto &aIter : *rAttrList)
425 sal_Int32
nToken = aIter.getToken();
static OUString GetScheme(INetProtocol eTheScheme)
static INetProtocol CompareProtocolScheme(std::u16string_view aTheAbsURIRef)
SC_DLLPUBLIC void AddPrintRange(SCTAB nTab, const ScRange &rNew)
Adds a new print ranges.
SC_DLLPUBLIC void ClearPrintRanges(SCTAB nTab)
Removes all print ranges.
SC_DLLPUBLIC ScExternalRefManager * GetExternalRefManager() const
SC_DLLPUBLIC ScOutlineTable * GetOutlineTable(SCTAB nTab, bool bCreate=false)
sal_uInt16 getExternalFileId(const OUString &rFile)
ScExternalRefCache::TableTypeRef getCacheTable(sal_uInt16 nFileId, size_t nTabIndex) const
Get a cache table instance for specified table and table index.
SCTAB GetCurrentSheet() const
css::uno::Reference< css::drawing::XShapes > const & GetCurrentXShapes()
void NewSheet(const OUString &sTableName, const OUString &sStyleName, const ScXMLTabProtectionData &rProtectData)
ScXMLTabProtectionData & GetCurrentProtectionData()
size_t GetCount(size_t nLevel) const
ScOutlineEntry * GetEntry(size_t nLevel, size_t nIndex)
void SetVisibleBelow(size_t nLevel, size_t nEntry, bool bValue, bool bSkipHidden=false)
SC_DLLPUBLIC bool IsHidden() const
const ScOutlineArray & GetColArray() const
const ScOutlineArray & GetRowArray() const
static bool GetRangeListFromString(ScRangeList &rRangeList, std::u16string_view rRangeListStr, const ScDocument &rDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ', sal_Unicode cQuote='\'')
void StartStreamPos(SCTAB nTab, sal_Int32 nStartOffset)
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...
void ProgressBarIncrement()
ScMyStylesImportHelper * GetStylesImportHelper()
ScDocument * GetDocument()
sal_Int32 GetByteOffset() const
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual ~ScXMLTableContext() override
ScXMLTableContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
::std::unique_ptr< ScXMLExternalTabData > pExternalRefInfo
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual ~ScXMLTableProtectionContext() override
ScXMLTableProtectionContext(ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList)
SvXMLImport & GetImport()
Handle the import of sparkline groups and sparklines.
ScPasswordHash getHashTypeFromURI(std::u16string_view rURI)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XML_SELECT_UNPROTECTED_CELLS
XML_PROTECTION_KEY_DIGEST_ALGORITHM
XML_PROTECTION_KEY_DIGEST_ALGORITHM_2
XML_SELECT_PROTECTED_CELLS
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
bool mbSelectUnprotectedCells
bool mbSelectProtectedCells
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)
static bool lcl_isExternalRefCache(const OUString &rName, OUString &rUrl, OUString &rExtTabName)
Determine whether this table is an external reference cache from its name.