summaryrefslogtreecommitdiff
path: root/starmath/inc/node.hxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-03-01 16:26:23 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-03-07 03:37:07 +0000
commitb89feb8018bf3610faf01e73995d576f6566e20b (patch)
tree57d7e3a035b85903f08364be8c4a07ab8a358e20 /starmath/inc/node.hxx
parented51d4293dd919a03edca11ec48c607bbfa31076 (diff)
starmath: Make SmNode abstract and noncopyable
... and remove unused SmStructureNode's copy ctor/assignment operator. This seems desirable according to the old comment in SmNode::Accept(). Change-Id: Ifb51c64ca784f1295374d31cc210cbe3e45aa2f8 Reviewed-on: https://gerrit.libreoffice.org/22801 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.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index b4e5b1db317a..4e38e4374be8 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -106,6 +106,9 @@ protected:
sal_Int32 mnAccIndex;
public:
+ SmNode(const SmNode&) = delete;
+ SmNode& operator=(const SmNode&) = delete;
+
virtual ~SmNode();
virtual bool IsVisible() const;
@@ -156,7 +159,7 @@ public:
virtual void Arrange(OutputDevice &rDev, const SmFormat &rFormat);
virtual void CreateTextFromNode(OUString &rText);
- virtual void GetAccessibleText( OUStringBuffer &rText ) const;
+ virtual void GetAccessibleText( OUStringBuffer &rText ) const = 0;
sal_Int32 GetAccessibleIndex() const { return mnAccIndex; }
const SmNode * FindNodeWithAccessibleIndex(sal_Int32 nAccIndex) const;
@@ -180,7 +183,7 @@ public:
/** Accept a visitor
* Calls the method for this class on the visitor
*/
- virtual void Accept(SmVisitor* pVisitor);
+ virtual void Accept(SmVisitor* pVisitor) = 0;
/** True if this node is selected */
bool IsSelected() const {return mbIsSelected;}
@@ -288,7 +291,6 @@ protected:
{}
public:
- SmStructureNode( const SmStructureNode &rNode );
virtual ~SmStructureNode();
virtual bool IsVisible() const override;
@@ -301,8 +303,6 @@ public:
void SetSubNodes(SmNode *pFirst, SmNode *pSecond, SmNode *pThird = nullptr);
void SetSubNodes(const SmNodeArray &rNodeArray);
- SmStructureNode & operator = ( const SmStructureNode &rNode );
-
virtual void GetAccessibleText( OUStringBuffer &rText ) const override;
void SetSubNode(size_t nIndex, SmNode* pNode)