summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/Metadatable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/Metadatable.cxx')
-rw-r--r--sfx2/source/doc/Metadatable.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sfx2/source/doc/Metadatable.cxx b/sfx2/source/doc/Metadatable.cxx
index 13d3021bc95f..4062fffba1b4 100644
--- a/sfx2/source/doc/Metadatable.cxx
+++ b/sfx2/source/doc/Metadatable.cxx
@@ -206,6 +206,8 @@ protected:
// XmlIdRegistryDocument ---------------------------------------------
+namespace {
+
/** non-clipboard documents */
class XmlIdRegistryDocument : public XmlIdRegistry
{
@@ -249,6 +251,8 @@ private:
::std::unique_ptr<XmlIdRegistry_Impl> m_pImpl;
};
+}
+
// MetadatableUndo ---------------------------------------------------
/** the horrible Undo Metadatable: is inserted into lists to track position */
@@ -300,6 +304,8 @@ public:
// XmlIdRegistryClipboard --------------------------------------------
+namespace {
+
class XmlIdRegistryClipboard : public XmlIdRegistry
{
@@ -338,6 +344,7 @@ private:
::std::unique_ptr<XmlIdRegistry_Impl> m_pImpl;
};
+}
// XmlIdRegistry
@@ -422,6 +429,8 @@ typedef ::std::vector< Metadatable* > XmlIdVector_t;
typedef std::unordered_map< OUString,
::std::pair< XmlIdVector_t, XmlIdVector_t > > XmlIdMap_t;
+namespace {
+
/// pointer hash template
template<typename T> struct PtrHash
{
@@ -431,6 +440,8 @@ template<typename T> struct PtrHash
}
};
+}
+
/// element -> (stream name, idref)
typedef std::unordered_map< const Metadatable*,
::std::pair< OUString, OUString>, PtrHash<Metadatable> >
@@ -876,6 +887,8 @@ XmlIdRegistryDocument::JoinMetadatables(
// Clipboard XML ID Registry (_Impl)
+namespace {
+
struct RMapEntry
{
RMapEntry() : m_xLink() { }
@@ -891,6 +904,8 @@ struct RMapEntry
std::shared_ptr<MetadatableClipboard> m_xLink;
};
+}
+
/// element -> (stream name, idref, source)
typedef std::unordered_map< const Metadatable*,
struct RMapEntry,