summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-03-15 22:24:29 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-16 17:14:30 +0000
commitc6f914041996d9b0e2431d29e63657ff02bc18d3 (patch)
tree442ddf153f634eea3565640e9bc1a3ac189de29e /toolkit
parentd1075aab19737bc168439ba64b60cd8fae8fd3bb (diff)
Replace String with OUString in toolkit(vclxprinter.cxx)
Change-Id: I265b413923837aaba47abf242803fae7359f8ea8 Reviewed-on: https://gerrit.libreoffice.org/2771 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/inc/toolkit/awt/vclxprinter.hxx6
-rw-r--r--toolkit/source/awt/vclxprinter.cxx22
2 files changed, 14 insertions, 14 deletions
diff --git a/toolkit/inc/toolkit/awt/vclxprinter.hxx b/toolkit/inc/toolkit/awt/vclxprinter.hxx
index 03eed25e1243..87b5bc7532bf 100644
--- a/toolkit/inc/toolkit/awt/vclxprinter.hxx
+++ b/toolkit/inc/toolkit/awt/vclxprinter.hxx
@@ -59,7 +59,7 @@ protected:
sal_Int16 mnOrientation;
sal_Bool mbHorizontal;
public:
- VCLXPrinterPropertySet( const String& rPrinterName );
+ VCLXPrinterPropertySet( const OUString& rPrinterName );
virtual ~VCLXPrinterPropertySet();
Printer* GetPrinter() const { return mpPrinter.get(); }
@@ -107,7 +107,7 @@ class VCLXPrinter: public ::com::sun::star::awt::XPrinter,
boost::shared_ptr<vcl::OldStylePrintAdaptor> mpListener;
JobSetup maInitJobSetup;
public:
- VCLXPrinter( const String& rPrinterName );
+ VCLXPrinter( const OUString& rPrinterName );
~VCLXPrinter();
// ::com::sun::star::uno::XInterface
@@ -153,7 +153,7 @@ class VCLXInfoPrinter: public ::com::sun::star::awt::XInfoPrinter,
public ::cppu::OWeakObject
{
public:
- VCLXInfoPrinter( const String& rPrinterName );
+ VCLXInfoPrinter( const OUString& rPrinterName );
~VCLXInfoPrinter();
// ::com::sun::star::uno::XInterface
diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx
index 56e5e830ace0..af673d433987 100644
--- a/toolkit/source/awt/vclxprinter.cxx
+++ b/toolkit/source/awt/vclxprinter.cxx
@@ -84,7 +84,7 @@ IMPL_XTYPEPROVIDER_START( VCLXPrinterPropertySet )
getCppuType( ( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPrinterPropertySet>* ) NULL )
IMPL_XTYPEPROVIDER_END
-VCLXPrinterPropertySet::VCLXPrinterPropertySet( const String& rPrinterName )
+VCLXPrinterPropertySet::VCLXPrinterPropertySet( const OUString& rPrinterName )
: OPropertySetHelper( BrdcstHelper )
, mpPrinter( new Printer( rPrinterName ) )
{
@@ -222,22 +222,22 @@ void VCLXPrinterPropertySet::setHorizontal( sal_Bool bHorizontal ) throw(::com::
setFastPropertyValue( PROPERTY_Horizontal, aValue );
}
-::com::sun::star::uno::Sequence< ::rtl::OUString > VCLXPrinterPropertySet::getFormDescriptions( ) throw(::com::sun::star::uno::RuntimeException)
+::com::sun::star::uno::Sequence< OUString > VCLXPrinterPropertySet::getFormDescriptions( ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::MutexGuard aGuard( Mutex );
sal_uInt16 nPaperBinCount = GetPrinter()->GetPaperBinCount();
- ::com::sun::star::uno::Sequence< ::rtl::OUString > aDescriptions( nPaperBinCount );
+ ::com::sun::star::uno::Sequence< OUString > aDescriptions( nPaperBinCount );
for ( sal_uInt16 n = 0; n < nPaperBinCount; n++ )
{
// Format: <DisplayFormName;FormNameId;DisplayPaperBinName;PaperBinNameId;DisplayPaperName;PaperNameId>
- String aDescr( RTL_CONSTASCII_USTRINGPARAM( "*;*;" ) );
- aDescr += GetPrinter()->GetPaperBinName( n );
- aDescr += ';';
- aDescr += n;
- aDescr.AppendAscii( ";*;*", 4 );
+ OUStringBuffer aDescr( "*;*;" );
+ aDescr.append(GetPrinter()->GetPaperBinName( n ));
+ aDescr.append(';');
+ aDescr.append(OUString::number(n));
+ aDescr.append(";*;*");
- aDescriptions.getArray()[n] = aDescr;
+ aDescriptions.getArray()[n] = aDescr.makeStringAndClear();
}
return aDescriptions;
}
@@ -282,7 +282,7 @@ void VCLXPrinterPropertySet::setBinarySetup( const ::com::sun::star::uno::Sequen
// ----------------------------------------------------
// class VCLXPrinter
// ----------------------------------------------------
-VCLXPrinter::VCLXPrinter( const String& rPrinterName )
+VCLXPrinter::VCLXPrinter( const OUString& rPrinterName )
: VCLXPrinterPropertySet( rPrinterName )
{
}
@@ -367,7 +367,7 @@ void VCLXPrinter::endPage( ) throw(::com::sun::star::awt::PrinterException, ::c
// class VCLXInfoPrinter
// ----------------------------------------------------
-VCLXInfoPrinter::VCLXInfoPrinter( const String& rPrinterName )
+VCLXInfoPrinter::VCLXInfoPrinter( const OUString& rPrinterName )
: VCLXPrinterPropertySet( rPrinterName )
{
}