summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbadocumentsbase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbadocumentsbase.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbadocumentsbase.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
index 1ba2bb1a0b0f..d0951b0c13e7 100644
--- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
@@ -56,6 +56,8 @@ typedef std::vector < uno::Reference< frame::XModel > > Documents;
// #FIXME clearly this is a candidate for some sort of helper base class as
// this is a copy of SelectedSheetsEnum ( vbawindow.cxx )
+namespace {
+
class DocumentsEnumImpl : public ::cppu::WeakImplHelper< container::XEnumeration >
{
uno::Reference< uno::XComponentContext > m_xContext;
@@ -97,6 +99,8 @@ public:
}
};
+}
+
// #FIXME clearly this is also a candidate for some sort of helper base class as
// a very similar one is used in vbawindow ( SelectedSheetsEnumAccess )
// Maybe a template base class that does all of the operations on the hashmap
@@ -108,6 +112,8 @@ typedef ::cppu::WeakImplHelper< container::XEnumerationAccess
, css::container::XNameAccess
> DocumentsAccessImpl_BASE;
+namespace {
+
class DocumentsAccessImpl : public DocumentsAccessImpl_BASE
{
uno::Reference< uno::XComponentContext > m_xContext;
@@ -187,6 +193,8 @@ public:
};
+}
+
VbaDocumentsBase::VbaDocumentsBase( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< css::uno::XComponentContext >& xContext, DOCUMENT_TYPE eDocType ) : VbaDocumentsBase_BASE( xParent, xContext, uno::Reference< container::XIndexAccess >( new DocumentsAccessImpl( xContext, eDocType ) ) ), meDocType( eDocType )
{
}