diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-12-01 18:55:58 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-12-02 02:34:44 +0000 |
commit | 7d1be94484fa99bbfbaa0261cc243778a70b298e (patch) | |
tree | 9efb9f7de174a10196dd976170ea6c6c28b0c7bf /starmath/inc/node.hxx | |
parent | ff8a29d01afef082741871c7ac40f635a5e2bfad (diff) |
starmath: Prefix members of SmTextNode
Change-Id: Ic2509e7ee4040fec8173861f319bce61804837cf
Reviewed-on: https://gerrit.libreoffice.org/31468
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc/node.hxx')
-rw-r--r-- | starmath/inc/node.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 52532c96288e..e3067b7d9203 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -376,16 +376,16 @@ public: */ class SmTextNode : public SmVisibleNode { - OUString aText; - sal_uInt16 nFontDesc; + OUString maText; + sal_uInt16 mnFontDesc; /** Index within text where the selection starts * @remarks Only valid if SmNode::IsSelected() is true */ - sal_Int32 nSelectionStart; + sal_Int32 mnSelectionStart; /** Index within text where the selection ends * @remarks Only valid if SmNode::IsSelected() is true */ - sal_Int32 nSelectionEnd; + sal_Int32 mnSelectionEnd; protected: SmTextNode(SmNodeType eNodeType, const SmToken &rNodeToken, sal_uInt16 nFontDescP ); @@ -393,12 +393,12 @@ protected: public: SmTextNode(const SmToken &rNodeToken, sal_uInt16 nFontDescP ); - sal_uInt16 GetFontDesc() const { return nFontDesc; } - void SetText(const OUString &rText) { aText = rText; } - const OUString & GetText() const { return aText; } + sal_uInt16 GetFontDesc() const { return mnFontDesc; } + void SetText(const OUString &rText) { maText = rText; } + const OUString & GetText() const { return maText; } /** Change the text of this node, including the underlying token */ void ChangeText(const OUString &rText) { - aText = rText; + maText = rText; SmToken token = GetToken(); token.aText = rText; SetToken(token); //TODO: Merge this with AdjustFontDesc for better performance @@ -409,15 +409,15 @@ public: /** Index within GetText() where the selection starts * @remarks Only valid of SmNode::IsSelected() is true */ - sal_Int32 GetSelectionStart() const {return nSelectionStart;} + sal_Int32 GetSelectionStart() const {return mnSelectionStart;} /** Index within GetText() where the selection end * @remarks Only valid of SmNode::IsSelected() is true */ - sal_Int32 GetSelectionEnd() const {return nSelectionEnd;} + sal_Int32 GetSelectionEnd() const {return mnSelectionEnd;} /** Set the index within GetText() where the selection starts */ - void SetSelectionStart(sal_Int32 index) {nSelectionStart = index;} + void SetSelectionStart(sal_Int32 index) {mnSelectionStart = index;} /** Set the index within GetText() where the selection end */ - void SetSelectionEnd(sal_Int32 index) {nSelectionEnd = index;} + void SetSelectionEnd(sal_Int32 index) {mnSelectionEnd = index;} virtual void Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) override; virtual void Arrange(OutputDevice &rDev, const SmFormat &rFormat) override; |