summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbawindows.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbawindows.cxx')
-rw-r--r--sc/source/ui/vba/vbawindows.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/vba/vbawindows.cxx b/sc/source/ui/vba/vbawindows.cxx
index 648109031e46..b9b869f60412 100644
--- a/sc/source/ui/vba/vbawindows.cxx
+++ b/sc/source/ui/vba/vbawindows.cxx
@@ -51,6 +51,9 @@ static uno::Any ComponentToWindow( const uno::Any& aSource, const uno::Reference
}
typedef std::vector < uno::Reference< sheet::XSpreadsheetDocument > > Components;
+
+namespace {
+
// #TODO more or less the same as class in workwindows ( code sharing needed )
class WindowComponentEnumImpl : public EnumerationHelper_BASE
{
@@ -106,11 +109,15 @@ public:
}
};
+}
+
typedef ::cppu::WeakImplHelper< container::XEnumerationAccess
, css::container::XIndexAccess
, css::container::XNameAccess
> WindowsAccessImpl_BASE;
+namespace {
+
class WindowsAccessImpl : public WindowsAccessImpl_BASE
{
uno::Reference< uno::XComponentContext > m_xContext;
@@ -192,6 +199,8 @@ public:
};
+}
+
ScVbaWindows::ScVbaWindows( const uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext ) : ScVbaWindows_BASE( xParent, xContext, uno::Reference< container::XIndexAccess > ( new WindowsAccessImpl( xContext ) ) )
{
}