diff options
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/accessibility/AccessiblePageShape.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/annotations/annotationmanager.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/framework/factories/FullScreenPane.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/func/fuhhconv.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/slideshow/SlideShowRestarter.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshow.cxx | 16 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 11 |
8 files changed, 19 insertions, 31 deletions
diff --git a/sd/source/ui/accessibility/AccessiblePageShape.cxx b/sd/source/ui/accessibility/AccessiblePageShape.cxx index b1b6831a4ab1..64f7d64f81ad 100644 --- a/sd/source/ui/accessibility/AccessiblePageShape.cxx +++ b/sd/source/ui/accessibility/AccessiblePageShape.cxx @@ -44,7 +44,6 @@ using namespace ::com::sun::star::accessibility; using ::com::sun::star::uno::Reference; using ::rtl::OUString; -#define A2S(pString) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(pString))) namespace accessibility { @@ -346,14 +345,14 @@ void AccessiblePageShape::dispose (void) { if (xPageProperties.is()) { - xPageProperties->getPropertyValue(A2S("LinkDisplayName")) >>= sCurrentSlideName; + xPageProperties->getPropertyValue( "LinkDisplayName" ) >>= sCurrentSlideName; } } catch (const beans::UnknownPropertyException&) { } - return CreateAccessibleBaseName()+A2S(": ")+sCurrentSlideName; + return CreateAccessibleBaseName()+": "+sCurrentSlideName; } diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index 9059672a99d1..96a03316c0f0 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -89,7 +89,6 @@ #include "textapi.hxx" #include "optsitem.hxx" -#define C2U(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) using ::rtl::OUString; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx index d353c75be128..90380019cf48 100644 --- a/sd/source/ui/framework/factories/FullScreenPane.cxx +++ b/sd/source/ui/framework/factories/FullScreenPane.cxx @@ -46,7 +46,6 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::drawing::framework; using ::rtl::OUString; -#define A2S(pString) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(pString))) namespace sd { namespace framework { diff --git a/sd/source/ui/func/fuhhconv.cxx b/sd/source/ui/func/fuhhconv.cxx index 4e53fc16f62e..953d0e7cb0e3 100644 --- a/sd/source/ui/func/fuhhconv.cxx +++ b/sd/source/ui/func/fuhhconv.cxx @@ -52,7 +52,6 @@ class SfxRequest; -#define C2U(cChar) rtl::OUString::createFromAscii(cChar) using namespace ::com::sun::star; using namespace ::com::sun::star::beans; @@ -256,9 +255,9 @@ void FuHangulHanjaConversion::StartChineseConversion() { try { - xProp->getPropertyValue( C2U("IsDirectionToSimplified") ) >>= bToSimplified; - xProp->getPropertyValue( C2U("IsUseCharacterVariants") ) >>= bUseVariants; - xProp->getPropertyValue( C2U("IsTranslateCommonTerms") ) >>= bCommonTerms; + xProp->getPropertyValue( "IsDirectionToSimplified" ) >>= bToSimplified; + xProp->getPropertyValue( "IsUseCharacterVariants" ) >>= bUseVariants; + xProp->getPropertyValue( "IsTranslateCommonTerms" ) >>= bCommonTerms; } catch( Exception& ) { diff --git a/sd/source/ui/slideshow/SlideShowRestarter.cxx b/sd/source/ui/slideshow/SlideShowRestarter.cxx index 725c0ffe04da..c1d32b8bed9d 100644 --- a/sd/source/ui/slideshow/SlideShowRestarter.cxx +++ b/sd/source/ui/slideshow/SlideShowRestarter.cxx @@ -42,7 +42,6 @@ using namespace ::com::sun::star::lang; using ::rtl::OUString; using ::sd::framework::FrameworkHelper; -#define C2U(x) OUString( RTL_CONSTASCII_USTRINGPARAM(x) ) namespace sd { @@ -97,7 +96,7 @@ sal_Int32 SlideShowRestarter::GetDisplayCount (void) return 0; Reference<com::sun::star::container::XIndexAccess> xIndexAccess ( - xFactory->createInstanceWithContext(C2U("com.sun.star.awt.DisplayAccess"),xContext), + xFactory->createInstanceWithContext("com.sun.star.awt.DisplayAccess",xContext), UNO_QUERY); if ( ! xIndexAccess.is()) return 0; @@ -161,8 +160,8 @@ void SlideShowRestarter::StartPresentation (void) if (mpSlideShow.is()) { Sequence<css::beans::PropertyValue> aProperties (1); - aProperties[0].Name = C2U("FirstPage"); - aProperties[0].Value <<= C2U("page") + OUString::valueOf(mnCurrentSlideNumber+1); + aProperties[0].Name = "FirstPage"; + aProperties[0].Value <<= "page" + OUString::valueOf(mnCurrentSlideNumber+1); mpSlideShow->startWithArguments(aProperties); } mpSelf.reset(); diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx index 06247cbb6db4..d9db8e6481d6 100644 --- a/sd/source/ui/slideshow/slideshow.cxx +++ b/sd/source/ui/slideshow/slideshow.cxx @@ -80,8 +80,6 @@ using namespace ::com::sun::star::drawing::framework; extern String getUiNameFromPageApiNameImpl( const ::rtl::OUString& rApiName ); -#define C2U(x) OUString( RTL_CONSTASCII_USTRINGPARAM(x) ) - namespace { /** This local version of the work window overloads DataChanged() so that it @@ -277,7 +275,7 @@ void SlideShow::CreateController( ViewShell* pViewSh, ::sd::View* pView, ::Wind OUString SAL_CALL SlideShow::getImplementationName( ) throw(RuntimeException) { - return OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.sd.SlideShow") ); + return OUString( "com.sun.star.comp.sd.SlideShow" ); } // -------------------------------------------------------------------- @@ -291,7 +289,7 @@ sal_Bool SAL_CALL SlideShow::supportsService( const OUString& ServiceName ) thro Sequence< OUString > SAL_CALL SlideShow::getSupportedServiceNames( ) throw(RuntimeException) { - OUString aService( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.Presentation") ); + OUString aService( "com.sun.star.presentation.Presentation" ); Sequence< OUString > aSeq( &aService, 1 ); return aSeq; } @@ -845,7 +843,7 @@ void SAL_CALL SlideShow::end() throw(RuntimeException) void SAL_CALL SlideShow::rehearseTimings() throw(RuntimeException) { Sequence< PropertyValue > aArguments(1); - aArguments[0].Name = C2U("RehearseTimings"); + aArguments[0].Name = "RehearseTimings"; aArguments[0].Value <<= sal_True; startWithArguments( aArguments ); } @@ -963,20 +961,20 @@ bool SlideShow::startPreview( const Reference< XDrawPage >& xDrawPage, const Ref { Sequence< PropertyValue > aArguments(4); - aArguments[0].Name = C2U("Preview"); + aArguments[0].Name = "Preview"; aArguments[0].Value <<= sal_True; - aArguments[1].Name = C2U("FirstPage"); + aArguments[1].Name = "FirstPage"; aArguments[1].Value <<= xDrawPage; - aArguments[2].Name = C2U("AnimationNode"); + aArguments[2].Name = "AnimationNode"; aArguments[2].Value <<= xAnimationNode; Reference< XWindow > xParentWindow; if( pParent ) xParentWindow = VCLUnoHelper::GetInterface( pParent ); - aArguments[3].Name = C2U("ParentWindow"); + aArguments[3].Name = "ParentWindow"; aArguments[3].Value <<= xParentWindow; startWithArguments( aArguments ); diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 112be1084539..a48aaaefa01c 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -493,7 +493,7 @@ void TableDesignPane::updateControls() sal_uInt16 nSelection = 0; if( mxSelectedTable.is() ) { - Reference< XNamed > xNamed( mxSelectedTable->getPropertyValue( OUString( "TableTemplate" ) ), UNO_QUERY ); + Reference< XNamed > xNamed( mxSelectedTable->getPropertyValue( "TableTemplate" ), UNO_QUERY ); if( xNamed.is() ) { const OUString sStyleName( xNamed->getName() ); diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 3ddb7d7f4612..794e4ab7f9ac 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -71,11 +71,6 @@ using ::rtl::OUString; namespace sd { namespace { - OUString A2S (const char* pString) - { - return OUString::createFromAscii(pString); - } - /** Convenience class to extract values from the sequence of properties @@ -1297,14 +1292,14 @@ public: css::uno::Sequence<css::beans::PropertyValue> aProperties (3); - aProperties[0].Name = A2S("ExtraPrintUIOptions"); + aProperties[0].Name = "ExtraPrintUIOptions"; aProperties[0].Value <<= m_aUIProperties; - aProperties[1].Name = A2S("PageSize"); + aProperties[1].Name = "PageSize"; aProperties[1].Value <<= maPrintSize; // FIXME: is this always true ? - aProperties[2].Name = A2S("PageIncludesNonprintableArea"); + aProperties[2].Name = "PageIncludesNonprintableArea"; aProperties[2].Value = makeAny( sal_True ); return aProperties; |