summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbafield.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbafield.cxx')
-rw-r--r--sw/source/ui/vba/vbafield.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx
index 49371d794b05..2c5495cf4224 100644
--- a/sw/source/ui/vba/vbafield.cxx
+++ b/sw/source/ui/vba/vbafield.cxx
@@ -68,6 +68,8 @@ SwVbaField::getServiceNames()
return aServiceNames;
}
+namespace {
+
// FIXME? copy and paste code
// the codes are copied from ww8par5.cxx
class SwVbaReadFieldParams
@@ -87,6 +89,8 @@ public:
const OUString& GetFieldName()const { return aFieldName; }
};
+}
+
SwVbaReadFieldParams::SwVbaReadFieldParams( const OUString& _rData )
: aData( _rData ), nLen( _rData.getLength() ), nNext( 0 )
{
@@ -222,6 +226,8 @@ static uno::Any lcl_createField( const uno::Reference< XHelperInterface >& xPare
return uno::makeAny( xField );
}
+namespace {
+
class FieldEnumeration : public ::cppu::WeakImplHelper< css::container::XEnumeration >
{
uno::Reference< XHelperInterface > mxParent;
@@ -298,6 +304,8 @@ public:
}
};
+}
+
SwVbaFields::SwVbaFields( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext > & xContext, const uno::Reference< frame::XModel >& xModel ) : SwVbaFields_BASE( xParent, xContext , uno::Reference< container::XIndexAccess >( new FieldCollectionHelper( xParent, xContext, xModel ) ) ), mxModel( xModel )
{
mxMSF.set( mxModel, uno::UNO_QUERY_THROW );
@@ -372,12 +380,16 @@ uno::Reference< text::XTextField > SwVbaFields::Create_Field_FileName( const OUS
return xTextField;
}
+namespace {
+
struct DocPropertyTable
{
const char* sDocPropertyName;
const char* sFieldService;
};
+}
+
static const DocPropertyTable aDocPropertyTables[] =
{
{ "Author", "com.sun.star.text.textfield.docinfo.CreateAuthor" },