diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-02 15:17:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-05 08:54:22 +0200 |
commit | 672aee1285638ed2c544c4aa97c01caca95fb103 (patch) | |
tree | 3045eea69c85767c38e01e8dd7fb25d568b17ed2 /chart2 | |
parent | 5cc8b86f5e79467913787fdad6d02cf1ccd34b32 (diff) |
convert include/svx/svdmrkv.hxx from String to OUString
Change-Id: I55c26d99c1aec392dc42ebd635914889efcc1786
Diffstat (limited to 'chart2')
6 files changed, 7 insertions, 7 deletions
diff --git a/chart2/source/controller/main/DragMethod_Base.cxx b/chart2/source/controller/main/DragMethod_Base.cxx index 9072a90556e3..e7768078ba3d 100644 --- a/chart2/source/controller/main/DragMethod_Base.cxx +++ b/chart2/source/controller/main/DragMethod_Base.cxx @@ -64,7 +64,7 @@ OUString DragMethod_Base::getUndoDescription() const m_eActionType, ObjectNameProvider::getName( ObjectIdentifier::getObjectType( m_aObjectCID ))); } -void DragMethod_Base::TakeSdrDragComment(String& rStr) const +void DragMethod_Base::TakeSdrDragComment(OUString& rStr) const { rStr = String( getUndoDescription() ); } diff --git a/chart2/source/controller/main/DragMethod_Base.hxx b/chart2/source/controller/main/DragMethod_Base.hxx index 28ffa918d6da..6da9db55c86d 100644 --- a/chart2/source/controller/main/DragMethod_Base.hxx +++ b/chart2/source/controller/main/DragMethod_Base.hxx @@ -40,7 +40,7 @@ public: virtual OUString getUndoDescription() const; - virtual void TakeSdrDragComment(String& rStr) const; + virtual void TakeSdrDragComment(OUString& rStr) const; virtual Pointer GetSdrDragPointer() const; protected: diff --git a/chart2/source/controller/main/DragMethod_PieSegment.cxx b/chart2/source/controller/main/DragMethod_PieSegment.cxx index 99923f212779..3e175ec7056c 100644 --- a/chart2/source/controller/main/DragMethod_PieSegment.cxx +++ b/chart2/source/controller/main/DragMethod_PieSegment.cxx @@ -69,10 +69,10 @@ DragMethod_PieSegment::DragMethod_PieSegment( DrawViewWrapper& rDrawViewWrapper DragMethod_PieSegment::~DragMethod_PieSegment() { } -void DragMethod_PieSegment::TakeSdrDragComment(String& rStr) const +void DragMethod_PieSegment::TakeSdrDragComment(OUString& rStr) const { rStr = SCH_RESSTR(STR_STATUS_PIE_SEGMENT_EXPLODED); - rStr.SearchAndReplaceAscii( "%PERCENTVALUE", OUString::number( static_cast<sal_Int32>((m_fAdditionalOffset+m_fInitialOffset)*100.0) )); + rStr = rStr.replaceFirst( "%PERCENTVALUE", OUString::number( static_cast<sal_Int32>((m_fAdditionalOffset+m_fInitialOffset)*100.0) )); } bool DragMethod_PieSegment::BeginSdrDrag() { diff --git a/chart2/source/controller/main/DragMethod_PieSegment.hxx b/chart2/source/controller/main/DragMethod_PieSegment.hxx index a92a855e21ce..9e7bf7197eec 100644 --- a/chart2/source/controller/main/DragMethod_PieSegment.hxx +++ b/chart2/source/controller/main/DragMethod_PieSegment.hxx @@ -32,7 +32,7 @@ public: , const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xChartModel ); virtual ~DragMethod_PieSegment(); - virtual void TakeSdrDragComment(String& rStr) const; + virtual void TakeSdrDragComment(OUString& rStr) const; virtual bool BeginSdrDrag(); virtual void MoveSdrDrag(const Point& rPnt); virtual bool EndSdrDrag(bool bCopy); diff --git a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx index 14c3a61745b5..f9e8e9816f77 100644 --- a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx +++ b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx @@ -99,7 +99,7 @@ DragMethod_RotateDiagram::DragMethod_RotateDiagram( DrawViewWrapper& rDrawViewWr DragMethod_RotateDiagram::~DragMethod_RotateDiagram() { } -void DragMethod_RotateDiagram::TakeSdrDragComment(String& /*rStr*/) const +void DragMethod_RotateDiagram::TakeSdrDragComment(OUString& /*rStr*/) const { } bool DragMethod_RotateDiagram::BeginSdrDrag() diff --git a/chart2/source/controller/main/DragMethod_RotateDiagram.hxx b/chart2/source/controller/main/DragMethod_RotateDiagram.hxx index e48ff981231a..e3f6bb1381f0 100644 --- a/chart2/source/controller/main/DragMethod_RotateDiagram.hxx +++ b/chart2/source/controller/main/DragMethod_RotateDiagram.hxx @@ -45,7 +45,7 @@ public: ); virtual ~DragMethod_RotateDiagram(); - virtual void TakeSdrDragComment(String& rStr) const; + virtual void TakeSdrDragComment(OUString& rStr) const; virtual bool BeginSdrDrag(); virtual void MoveSdrDrag(const Point& rPnt); |