20#include <rtl/ustring.hxx>
21#include <osl/diagnose.h>
32 maPreviousNote( OUString(), OUString(),
ScAddress::INITIALIZE_INVALID ),
33 mbInSupportedSave( false )
81 if ( nFamily == XmlStyleFamily::TEXT_PARAGRAPH )
89 maTextStyles.emplace_back( rName, rCellPos, rSelection );
118 OSL_ENSURE(
mnStartTab < 0,
"StartStreamPos without EndStreamPos" );
143 rStartOffset = rEndOffset = -1;
148 sal_Int32 nStartOffset = -1;
149 sal_Int32 nEndOffset = -1;
151 return ( nStartOffset >= 0 && nEndOffset >= 0 );
178 for (
const auto& rEntry : rNameHash)
189 for (
const auto& [rName, rEntry] : rNameHash)
201 return std::any_of(rNameHash.begin(), rNameHash.end(),
202 [&rName](
const NameSpaceHash::value_type& rEntry) { return rEntry.second.m_sName == rName; });
214 NameSpaceHash::const_iterator aHashIter = rNameHash.find( rLoadedNamespace.maPrefix );
217 bool bNameConflict = (aHashIter != rNameHash.end()) && (aHashIter->second.m_sName != rLoadedNamespace.maName);
221 bool bPrefixConflict = (aHashIter == rNameHash.end()) && lcl_NameInHash(rNameHash, rLoadedNamespace.maName);
223 return bNameConflict || bPrefixConflict;
232 NameSpaceHash::const_iterator aHashIter = rNameHash.find( rLoadedNamespace.
maPrefix );
233 if ( aHashIter == rNameHash.end() )
void GetStreamPos(SCTAB nTab, sal_Int32 &rStartOffset, sal_Int32 &rEndOffset) const
void AddCellStyle(const OUString &rName, const ScAddress &rCellPos)
void BlockSheet(SCTAB nTab)
void AddTextStyle(const OUString &rName, const ScAddress &rCellPos, const ESelection &rSelection)
void AddNoteContentStyle(XmlStyleFamily nFamily, const OUString &rName, const ScAddress &rCellPos, const ESelection &rSelection)
bool AddLoadedNamespaces(SvXMLNamespaceMap &rNamespaces) const
std::vector< bool > maBlocked
bool IsSheetBlocked(SCTAB nTab) const
bool HasStreamPos(SCTAB nTab) const
std::vector< ScTextStyleEntry > maNoteParaStyles
std::vector< ScTextStyleEntry > maTextStyles
void AddTableStyle(const OUString &rName, const ScAddress &rCellPos)
void AddStreamPos(SCTAB nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset)
std::vector< ScTextStyleEntry > maNoteTextStyles
std::vector< ScCellStyleEntry > maRowStyles
std::vector< ScCellStyleEntry > maColumnStyles
void StoreLoadedNamespaces(const SvXMLNamespaceMap &rNamespaces)
std::vector< ScCellStyleEntry > maTableStyles
void AddColumnStyle(const OUString &rName, const ScAddress &rCellPos)
void AddRowStyle(const OUString &rName, const ScAddress &rCellPos)
std::vector< ScStreamEntry > maSaveEntries
void AddSavePos(SCTAB nTab, sal_Int32 nStartOffset, sal_Int32 nEndOffset)
void StartStreamPos(SCTAB nTab, sal_Int32 nStartOffset)
void SetInSupportedSave(bool bSet)
std::vector< ScNoteStyleEntry > maNoteStyles
void StoreInitialNamespaces(const SvXMLNamespaceMap &rNamespaces)
std::vector< ScLoadedNamespaceEntry > maLoadedNamespaces
std::unordered_set< OUString > maInitialPrefixes
void HandleNoteStyles(const OUString &rStyleName, const OUString &rTextName, const ScAddress &rCellPos)
std::vector< ScCellStyleEntry > maCellStyles
std::vector< ScStreamEntry > maStreamEntries
ScNoteStyleEntry maPreviousNote
void EndStreamPos(sal_Int32 nEndOffset)
const NameSpaceHash & GetAllEntries() const
sal_uInt16 Add(const OUString &rPrefix, const OUString &rName, sal_uInt16 nKey=XML_NAMESPACE_UNKNOWN)
std::unordered_map< OUString, NameSpaceEntry > NameSpaceHash
static bool lcl_NameInHash(const NameSpaceHash &rNameHash, const OUString &rName)