diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-14 13:00:02 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-08-14 19:22:10 +0000 |
commit | 6050cf2e100eb18d8638cf61f545ba7a0ec41b69 (patch) | |
tree | de86b5d71f9275d0c2314aba2d13558cff3b79b1 /sw/inc/unostyle.hxx | |
parent | 64b927ba873da19b31559ca3833f0a1203434dc3 (diff) |
String to OUString + prefix for data members
Change-Id: I700923915877616735cf58a4ed1bc3a3c8657ff2
Reviewed-on: https://gerrit.libreoffice.org/5411
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/inc/unostyle.hxx')
-rw-r--r-- | sw/inc/unostyle.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 26bfc4ea3a1c..132a206f77d0 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -108,7 +108,7 @@ class SwXStyleFamily : public cppu::WeakImplHelper4 SfxStyleSheetBasePool* pBasePool; SwDocShell* pDocShell; - SwXStyle* _FindStyle(const String& rStyleName) const; + SwXStyle* _FindStyle(const OUString& rStyleName) const; public: SwXStyleFamily(SwDocShell* pDocShell, sal_uInt16 nFamily); ~SwXStyleFamily(); @@ -164,13 +164,13 @@ class SwXStyle : public cppu::WeakImplHelper7 { friend class SwXStyleFamily; SwDoc* m_pDoc; - String sStyleName; + OUString m_sStyleName; SfxStyleSheetBasePool* pBasePool; SfxStyleFamily eFamily; // for Notify sal_Bool bIsDescriptor : 1; sal_Bool bIsConditional : 1; - String sParentStyleName; + OUString m_sParentStyleName; SwStyleProperties_Impl* pPropImpl; void ApplyDescriptorProperties(); @@ -180,7 +180,7 @@ protected: const SfxStyleSheetBasePool* GetBasePool() const {return pBasePool;} SfxStyleSheetBasePool* GetBasePool() {return pBasePool;} - void SetStyleName(const String& rSet){ sStyleName = rSet;} + void SetStyleName(const OUString& rSet){ m_sStyleName = rSet;} SwStyleProperties_Impl* GetPropImpl(){return pPropImpl;} com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxStyleData; com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > mxStyleFamily; @@ -193,7 +193,7 @@ public: SwXStyle(SwDoc* pDoc, SfxStyleFamily eFam = SFX_STYLE_FAMILY_PARA, sal_Bool bConditional = sal_False); SwXStyle(SfxStyleSheetBasePool& rPool, SfxStyleFamily eFam, SwDoc* pDoc, - const String& rStyleName); + const OUString& rStyleName); ~SwXStyle(); @@ -249,12 +249,12 @@ public: //SfxListener virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); - const String& GetStyleName() const { return sStyleName;} + OUString GetStyleName() const { return m_sStyleName;} SfxStyleFamily GetFamily() const {return eFamily;} sal_Bool IsDescriptor() const {return bIsDescriptor;} sal_Bool IsConditional() const { return bIsConditional;} - const String& GetParentStyleName() const { return sParentStyleName;} + OUString GetParentStyleName() const { return m_sParentStyleName;} void SetDoc(SwDoc* pDc, SfxStyleSheetBasePool* pPool) { bIsDescriptor = sal_False; m_pDoc = pDc; @@ -270,7 +270,7 @@ class SwXFrameStyle : public SwXStyle, public: SwXFrameStyle(SfxStyleSheetBasePool& rPool, SwDoc* pDoc, - const String& rStyleName) : + const OUString& rStyleName) : SwXStyle(rPool, SFX_STYLE_FAMILY_FRAME, pDoc, rStyleName){} SwXFrameStyle( SwDoc *pDoc ); ~SwXFrameStyle(); @@ -294,7 +294,7 @@ protected: public: SwXPageStyle(SfxStyleSheetBasePool& rPool, SwDocShell* pDocSh, SfxStyleFamily eFam, - const String& rStyleName); + const OUString& rStyleName); SwXPageStyle(SwDocShell* pDocSh); ~SwXPageStyle(); |