summaryrefslogtreecommitdiffstats
path: root/sw/source/core/access/accmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/access/accmap.cxx')
-rw-r--r--sw/source/core/access/accmap.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 3a35b5c03e26..df641292b4f0 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -81,6 +81,8 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
using namespace ::sw::access;
+namespace {
+
struct SwFrameFunc
{
bool operator()( const SwFrame * p1, const SwFrame * p2) const
@@ -89,6 +91,8 @@ struct SwFrameFunc
}
};
+}
+
class SwAccessibleContextMap_Impl
{
public:
@@ -122,6 +126,8 @@ public:
iterator erase(const_iterator const & pos) { return maMap.erase(pos); }
};
+namespace {
+
class SwDrawModellListener_Impl : public SfxListener,
public ::cppu::WeakImplHelper< document::XShapeEventBroadcaster >
{
@@ -146,6 +152,8 @@ public:
void Dispose();
};
+}
+
SwDrawModellListener_Impl::SwDrawModellListener_Impl( SdrModel *pDrawModel ) :
maEventListeners( maListenerMutex ),
mpDrawModel( pDrawModel )
@@ -252,6 +260,8 @@ void SwDrawModellListener_Impl::Dispose()
mpDrawModel = nullptr;
}
+namespace {
+
struct SwShapeFunc
{
bool operator()( const SdrObject * p1, const SdrObject * p2) const
@@ -259,6 +269,9 @@ struct SwShapeFunc
return p1 < p2;
}
};
+
+}
+
typedef std::pair < const SdrObject *, ::rtl::Reference < ::accessibility::AccessibleShape > > SwAccessibleObjShape_Impl;
class SwAccessibleShapeMap_Impl
@@ -599,6 +612,8 @@ void SwAccessibleEventList_Impl::MoveMissingXAccToEnd()
assert(size() == nSize);
}
+namespace {
+
struct SwAccessibleChildFunc
{
bool operator()( const SwAccessibleChild& r1,
@@ -618,6 +633,8 @@ struct SwAccessibleChildFunc
}
};
+}
+
class SwAccessibleEventMap_Impl
{
public:
@@ -637,6 +654,8 @@ public:
iterator erase(const_iterator const & pos) { return maMap.erase(pos); }
};
+namespace {
+
struct SwAccessibleParaSelection
{
TextFrameIndex const nStartOfSelection;
@@ -658,6 +677,8 @@ struct SwXAccWeakRefComp
}
};
+}
+
class SwAccessibleSelectedParas_Impl
{
public:
@@ -791,6 +812,8 @@ void SwAccPreviewData::InvalidateSelection( const SwPageFrame* _pSelectedPageFra
assert(mpSelPage);
}
+namespace {
+
struct ContainsPredicate
{
const Point& mrPoint;
@@ -801,6 +824,7 @@ struct ContainsPredicate
}
};
+}
void SwAccPreviewData::AdjustMapMode( MapMode& rMapMode,
const Point& rPoint ) const