summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starmath/inc/node.hxx7
-rw-r--r--starmath/source/node.cxx12
2 files changed, 5 insertions, 14 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 7d9b0df6f934..fa79f550f019 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -127,9 +127,12 @@ public:
virtual ~SmNode();
- virtual bool IsVisible() const;
+ /**
+ * Returns true if this is a instance of SmVisibleNode's subclass, false otherwise.
+ */
+ virtual bool IsVisible() const = 0;
- virtual sal_uInt16 GetNumSubNodes() const;
+ virtual sal_uInt16 GetNumSubNodes() const = 0;
virtual SmNode * GetSubNode(sal_uInt16 nIndex) = 0;
const SmNode * GetSubNode(sal_uInt16 nIndex) const
{
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index eb3224a05b30..f378e4dc5921 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -76,18 +76,6 @@ SmNode::~SmNode()
}
-bool SmNode::IsVisible() const
-{
- return false;
-}
-
-
-sal_uInt16 SmNode::GetNumSubNodes() const
-{
- return 0;
-}
-
-
const SmNode * SmNode::GetLeftMost() const
// returns leftmost node of current subtree.
//! (this assumes the one with index 0 is always the leftmost subnode