diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-10-06 17:36:05 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-07 06:39:04 +0000 |
commit | 867fcf48d51b3b30a5cb046a4955ef078f5e6d79 (patch) | |
tree | 35fa12f271b7cd8673d8abeae58f21f66e7c47d1 /starmath/inc/cursor.hxx | |
parent | 8b98c8b32cc2ba1693f26aef52d3825caabea606 (diff) |
starmath: Prefix members of SmCursor
Change-Id: Ib3407b5457f4d69294c95879455553dc013cc340
Reviewed-on: https://gerrit.libreoffice.org/19186
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath/inc/cursor.hxx')
-rw-r--r-- | starmath/inc/cursor.hxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index d0c1229eeaf6..964c65c40fa2 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -78,14 +78,14 @@ class SmDocShell; class SmCursor{ public: SmCursor(SmNode* tree, SmDocShell* pShell) - : anchor(NULL) - , position(NULL) - , pTree(tree) - , pDocShell(pShell) - , pGraph(NULL) - , pClipboard(NULL) - , nEditSections(0) - , bIsEnabledSetModifiedSmDocShell(false) + : mpAnchor(nullptr) + , mpPosition(nullptr) + , mpTree(tree) + , mpDocShell(pShell) + , mpGraph(nullptr) + , mpClipboard(nullptr) + , mnEditSections(0) + , mbIsEnabledSetModifiedSmDocShell(false) { //Build graph BuildGraph(); @@ -94,15 +94,15 @@ public: ~SmCursor() { SetClipboard(); - delete pGraph; - pGraph = NULL; + delete mpGraph; + mpGraph = nullptr; } /** Get position */ - SmCaretPos GetPosition() const { return position->CaretPos; } + SmCaretPos GetPosition() const { return mpPosition->CaretPos; } /** True, if the cursor has a selection */ - bool HasSelection() { return anchor != position; } + bool HasSelection() { return mpAnchor != mpPosition; } /** Move the position of this cursor */ void Move(OutputDevice* pDev, SmMovementDirection direction, bool bMoveAnchor = true); @@ -223,16 +223,16 @@ public: private: friend class SmDocShell; - SmCaretPosGraphEntry *anchor, - *position; + SmCaretPosGraphEntry *mpAnchor, + *mpPosition; /** Formula tree */ - SmNode* pTree; + SmNode* mpTree; /** Owner of the formula tree */ - SmDocShell* pDocShell; + SmDocShell* mpDocShell; /** Graph over caret position in the current tree */ - SmCaretPosGraph* pGraph; + SmCaretPosGraph* mpGraph; /** Clipboard holder */ - SmNodeList* pClipboard; + SmNodeList* mpClipboard; /** Returns a node that is selected, if any could be found */ SmNode* FindSelectedNode(SmNode* pNode); @@ -360,9 +360,9 @@ private: /** The number of times BeginEdit have been called * Used to allow nesting of BeginEdit() and EndEdit() sections */ - int nEditSections; + int mnEditSections; /** Holds data for BeginEdit() and EndEdit() */ - bool bIsEnabledSetModifiedSmDocShell; + bool mbIsEnabledSetModifiedSmDocShell; /** Begin edit section where the tree will be modified */ void BeginEdit(); /** End edit section where the tree will be modified */ |