diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-16 07:50:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-16 15:21:36 +0100 |
commit | 437c4984dbffbc531e1eeddf9c3b8f415f404c59 (patch) | |
tree | 7359d1012b12026f66807eb7a25acb05b4f21c15 /svx | |
parent | 2c676c03f3e09c12b8524f2a803374b9f68b2c83 (diff) |
upgrade GetValueTextByPos family to rtl::OUString
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/sdgmoitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sdtaditm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sdtaitm.hxx | 4 | ||||
-rw-r--r-- | svx/inc/svx/sdtakitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sdtfsitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sxcecitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sxcikitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sxctitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sxekitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sxmkitm.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/sxmtpitm.hxx | 4 | ||||
-rw-r--r-- | svx/inc/svx/sxmuitm.hxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdattr.cxx | 40 |
13 files changed, 34 insertions, 34 deletions
diff --git a/svx/inc/svx/sdgmoitm.hxx b/svx/inc/svx/sdgmoitm.hxx index eeb2834125f8..62a122882de9 100644 --- a/svx/inc/svx/sdgmoitm.hxx +++ b/svx/inc/svx/sdgmoitm.hxx @@ -52,7 +52,7 @@ public: virtual sal_uInt16 GetValueCount() const; GraphicDrawMode GetValue() const { return (GraphicDrawMode) SfxEnumItem::GetValue(); } - virtual String GetValueTextByPos( sal_uInt16 nPos ) const; + virtual rtl::OUString GetValueTextByPos( sal_uInt16 nPos ) const; virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, diff --git a/svx/inc/svx/sdtaditm.hxx b/svx/inc/svx/sdtaditm.hxx index 1fa7e5b452c3..da7c0ac010c4 100644 --- a/svx/inc/svx/sdtaditm.hxx +++ b/svx/inc/svx/sdtaditm.hxx @@ -54,7 +54,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sdtaitm.hxx b/svx/inc/svx/sdtaitm.hxx index a0b9dc388d96..32dde1497251 100644 --- a/svx/inc/svx/sdtaitm.hxx +++ b/svx/inc/svx/sdtaitm.hxx @@ -55,7 +55,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; @@ -82,7 +82,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sdtakitm.hxx b/svx/inc/svx/sdtakitm.hxx index a2b42df76027..99fef77fba7d 100644 --- a/svx/inc/svx/sdtakitm.hxx +++ b/svx/inc/svx/sdtakitm.hxx @@ -97,7 +97,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sdtfsitm.hxx b/svx/inc/svx/sdtfsitm.hxx index 9af3cf6197dc..6ab9ce9f4c58 100644 --- a/svx/inc/svx/sdtfsitm.hxx +++ b/svx/inc/svx/sdtfsitm.hxx @@ -64,7 +64,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; virtual int HasBoolValue() const; virtual sal_Bool GetBoolValue() const; diff --git a/svx/inc/svx/sxcecitm.hxx b/svx/inc/svx/sxcecitm.hxx index 870b700e3727..3cdce60db43d 100644 --- a/svx/inc/svx/sxcecitm.hxx +++ b/svx/inc/svx/sxcecitm.hxx @@ -49,7 +49,7 @@ public: virtual sal_uInt16 GetValueCount() const; // { return 3; } SdrCaptionEscDir GetValue() const { return (SdrCaptionEscDir)SfxEnumItem::GetValue(); } - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sxcikitm.hxx b/svx/inc/svx/sxcikitm.hxx index 1d7ab20db22d..989fa203239e 100644 --- a/svx/inc/svx/sxcikitm.hxx +++ b/svx/inc/svx/sxcikitm.hxx @@ -49,7 +49,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sxctitm.hxx b/svx/inc/svx/sxctitm.hxx index ae59c320a2fb..fa154c26d5d9 100644 --- a/svx/inc/svx/sxctitm.hxx +++ b/svx/inc/svx/sxctitm.hxx @@ -46,7 +46,7 @@ public: virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const; virtual sal_uInt16 GetValueCount() const; // { return 4; } SdrCaptionType GetValue() const { return (SdrCaptionType)SfxEnumItem::GetValue(); } - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sxekitm.hxx b/svx/inc/svx/sxekitm.hxx index c570f628d333..0503bf1d922e 100644 --- a/svx/inc/svx/sxekitm.hxx +++ b/svx/inc/svx/sxekitm.hxx @@ -52,7 +52,7 @@ public: SdrEdgeKind GetValue() const { return (SdrEdgeKind)SfxEnumItem::GetValue(); } virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sxmkitm.hxx b/svx/inc/svx/sxmkitm.hxx index b26fde1cbb31..2d8564df264b 100644 --- a/svx/inc/svx/sxmkitm.hxx +++ b/svx/inc/svx/sxmkitm.hxx @@ -49,7 +49,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sxmtpitm.hxx b/svx/inc/svx/sxmtpitm.hxx index 83b145d780b2..0482f88bed8a 100644 --- a/svx/inc/svx/sxmtpitm.hxx +++ b/svx/inc/svx/sxmtpitm.hxx @@ -51,7 +51,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; @@ -71,7 +71,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/inc/svx/sxmuitm.hxx b/svx/inc/svx/sxmuitm.hxx index 5988d6e211fb..64517440d134 100644 --- a/svx/inc/svx/sxmuitm.hxx +++ b/svx/inc/svx/sxmuitm.hxx @@ -48,7 +48,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); - virtual String GetValueTextByPos(sal_uInt16 nPos) const; + virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const; virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const; }; diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index d2728f557ad1..200b60d80f8a 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -995,7 +995,7 @@ SfxPoolItem* SdrCaptionTypeItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) cons sal_uInt16 SdrCaptionTypeItem::GetValueCount() const { return 4; } -XubString SdrCaptionTypeItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrCaptionTypeItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValCAPTIONTYPE1+nPos); } @@ -1022,7 +1022,7 @@ SfxPoolItem* SdrCaptionEscDirItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) co sal_uInt16 SdrCaptionEscDirItem::GetValueCount() const { return 3; } -XubString SdrCaptionEscDirItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrCaptionEscDirItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValCAPTIONESCHORI+nPos); } @@ -1054,7 +1054,7 @@ SfxPoolItem* SdrTextFitToSizeTypeItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/ sal_uInt16 SdrTextFitToSizeTypeItem::GetValueCount() const { return 4; } -XubString SdrTextFitToSizeTypeItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrTextFitToSizeTypeItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValFITTOSIZENONE+nPos); } @@ -1112,7 +1112,7 @@ SfxPoolItem* SdrTextVertAdjustItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) c sal_uInt16 SdrTextVertAdjustItem::GetValueCount() const { return 5; } -XubString SdrTextVertAdjustItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrTextVertAdjustItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValTEXTVADJTOP+nPos); } @@ -1162,7 +1162,7 @@ SfxPoolItem* SdrTextHorzAdjustItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) c sal_uInt16 SdrTextHorzAdjustItem::GetValueCount() const { return 5; } -XubString SdrTextHorzAdjustItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrTextHorzAdjustItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValTEXTHADJLEFT+nPos); } @@ -1212,7 +1212,7 @@ SfxPoolItem* SdrTextAniKindItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) cons sal_uInt16 SdrTextAniKindItem::GetValueCount() const { return 5; } -XubString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValTEXTANI_NONE+nPos); } @@ -1261,7 +1261,7 @@ SfxPoolItem* SdrTextAniDirectionItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) sal_uInt16 SdrTextAniDirectionItem::GetValueCount() const { return 4; } -XubString SdrTextAniDirectionItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrTextAniDirectionItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValTEXTANI_LEFT+nPos); } @@ -1617,7 +1617,7 @@ SfxPoolItem* SdrEdgeKindItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const sal_uInt16 SdrEdgeKindItem::GetValueCount() const { return 4; } -XubString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValEDGE_ORTHOLINES+nPos); } @@ -1807,7 +1807,7 @@ SfxPoolItem* SdrMeasureKindItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) cons sal_uInt16 SdrMeasureKindItem::GetValueCount() const { return 2; } -XubString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValMEASURE_STD+nPos); } @@ -1856,7 +1856,7 @@ SfxPoolItem* SdrMeasureTextHPosItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) sal_uInt16 SdrMeasureTextHPosItem::GetValueCount() const { return 4; } -XubString SdrMeasureTextHPosItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrMeasureTextHPosItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValMEASURE_TEXTHAUTO+nPos); } @@ -1905,7 +1905,7 @@ SfxPoolItem* SdrMeasureTextVPosItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) sal_uInt16 SdrMeasureTextVPosItem::GetValueCount() const { return 5; } -XubString SdrMeasureTextVPosItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrMeasureTextVPosItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValMEASURE_TEXTVAUTO+nPos); } @@ -1954,12 +1954,12 @@ SfxPoolItem* SdrMeasureUnitItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) cons sal_uInt16 SdrMeasureUnitItem::GetValueCount() const { return 14; } -XubString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos) const { XubString aRetval; if((FieldUnit)nPos == FUNIT_NONE) - aRetval += UniString(RTL_CONSTASCII_USTRINGPARAM("default")); + aRetval = rtl::OUString("default"); else SdrFormatter::TakeUnitStr((FieldUnit)nPos, aRetval); @@ -2008,7 +2008,7 @@ SfxPoolItem* SdrCircKindItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const { sal_uInt16 SdrCircKindItem::GetValueCount() const { return 4; } -XubString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos) const { return ImpGetResStr(STR_ItemValCIRC_FULL+nPos); } @@ -2250,30 +2250,30 @@ sal_uInt16 SdrGrafModeItem::GetValueCount() const return 4; } -XubString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos) const +rtl::OUString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos) const { - XubString aStr; + rtl::OUString aStr; switch(nPos) { case 1: { - aStr += UniString(RTL_CONSTASCII_USTRINGPARAM("Greys")); + aStr = "Greys"; break; } case 2: { - aStr += UniString(RTL_CONSTASCII_USTRINGPARAM("Black/White")); + aStr = "Black/White"; break; } case 3: { - aStr += UniString(RTL_CONSTASCII_USTRINGPARAM("Watermark")); + aStr = "Watermark"; break; } default: { - aStr += UniString(RTL_CONSTASCII_USTRINGPARAM("Standard")); + aStr = "Standard"; break; } } |