diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-08-22 23:02:09 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-08-22 23:04:14 +0200 |
commit | 7afacb97a7f8a6f98daba0f5c8dfcd4035218ce4 (patch) | |
tree | cf023a96c6130d4d283a81a75d68b0dd6a2a9b54 /sc/source/ui/vba/vbastyles.cxx | |
parent | af73a28e8538f5b2df6bbfd592d8987511520d4d (diff) |
Use anonymous namespace for these. (mostly EnumWrapper)
Change-Id: Ice90e519bbd32a12de59d696a6dfedaaf45bd45e
Diffstat (limited to 'sc/source/ui/vba/vbastyles.cxx')
-rw-r--r-- | sc/source/ui/vba/vbastyles.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbastyles.cxx b/sc/source/ui/vba/vbastyles.cxx index 79fe5c11e003..44de5c97f3b0 100644 --- a/sc/source/ui/vba/vbastyles.cxx +++ b/sc/source/ui/vba/vbastyles.cxx @@ -23,7 +23,6 @@ using namespace ::ooo::vba; using namespace ::com::sun::star; -static OUString SDEFAULTCELLSTYLENAME("Default"); static css::uno::Any lcl_createAPIStyleToVBAObject( const css::uno::Any& aObject, const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< frame::XModel >& xModel ) { @@ -63,6 +62,8 @@ ScVbaStyles::getElementType() throw (uno::RuntimeException) return cppu::UnoType<excel::XStyle>::get(); } +namespace { + class EnumWrapper : public EnumerationHelper_BASE { uno::Reference<container::XIndexAccess > m_xIndexAccess; @@ -85,6 +86,8 @@ public: } }; +} + uno::Reference< container::XEnumeration > SAL_CALL ScVbaStyles::createEnumeration() throw (uno::RuntimeException) { @@ -125,7 +128,7 @@ ScVbaStyles::Add( const OUString& _sName, const uno::Any& _aBasedOn ) throw (scr { mxNameContainerCellStyles->insertByName(_sName, uno::makeAny( xStyle) ); } - if (!sParentCellStyleName.equals(SDEFAULTCELLSTYLENAME)) + if (!sParentCellStyleName.equals("Default")) { xStyle->setParentStyle( sParentCellStyleName ); } |