diff options
Diffstat (limited to 'sc/source/filter/xml/XMLCodeNameProvider.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLCodeNameProvider.cxx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sc/source/filter/xml/XMLCodeNameProvider.cxx b/sc/source/filter/xml/XMLCodeNameProvider.cxx index 646d245c13f1..0a0a825ceb31 100644 --- a/sc/source/filter/xml/XMLCodeNameProvider.cxx +++ b/sc/source/filter/xml/XMLCodeNameProvider.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -33,14 +34,15 @@ #include "XMLCodeNameProvider.hxx" #include "document.hxx" -using namespace rtl; using namespace com::sun::star; +using ::rtl::OUString; + sal_Bool XMLCodeNameProvider::_getCodeName( const uno::Any& aAny, String& rCodeName ) { uno::Sequence<beans::PropertyValue> aProps; if( !(aAny >>= aProps) ) - return sal_False; + return false; OUString sCodeNameProp( RTL_CONSTASCII_USTRINGPARAM("CodeName") ); sal_Int32 nPropCount = aProps.getLength(); @@ -57,7 +59,7 @@ sal_Bool XMLCodeNameProvider::_getCodeName( const uno::Any& aAny, String& rCodeN } } - return sal_False; + return false; } @@ -90,7 +92,7 @@ XMLCodeNameProvider::~XMLCodeNameProvider() } } - return sal_False; + return false; } uno::Any SAL_CALL XMLCodeNameProvider::getByName( const OUString& aName ) @@ -130,7 +132,7 @@ uno::Sequence< OUString > SAL_CALL XMLCodeNameProvider::getElementNames( ) throw (uno::RuntimeException) { SCTAB nCount = mpDoc->GetTableCount() + 1; - uno::Sequence< rtl::OUString > aNames( nCount ); + uno::Sequence< OUString > aNames( nCount ); sal_Int32 nRealCount = 0; if( mpDoc->GetCodeName().Len() ) @@ -156,7 +158,7 @@ uno::Sequence< OUString > SAL_CALL XMLCodeNameProvider::getElementNames( ) uno::Type SAL_CALL XMLCodeNameProvider::getElementType( ) throw (uno::RuntimeException) { - return getCppuType( static_cast< uno::Sequence< beans::PropertyValue >* >( 0 ) ); + return getCppuType(static_cast<uno::Sequence<beans::PropertyValue>*>(0)); } ::sal_Bool SAL_CALL XMLCodeNameProvider::hasElements() @@ -174,7 +176,7 @@ uno::Type SAL_CALL XMLCodeNameProvider::getElementType( ) return sal_True; } - return sal_False; + return false; } void XMLCodeNameProvider::set( const uno::Reference< container::XNameAccess>& xNameAccess, ScDocument *pDoc ) @@ -202,3 +204,5 @@ void XMLCodeNameProvider::set( const uno::Reference< container::XNameAccess>& xN } } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |