starmath: Prefix members of SmStructureNode
Change-Id: I58f6ca7585ef726d4ac3f555118832a4434f4e3c Reviewed-on: https://gerrit.libreoffice.org/31629 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
This commit is contained in:
@@ -227,12 +227,12 @@ private:
|
||||
*/
|
||||
class SmStructureNode : public SmNode
|
||||
{
|
||||
SmNodeArray aSubNodes;
|
||||
SmNodeArray maSubNodes;
|
||||
|
||||
protected:
|
||||
SmStructureNode(SmNodeType eNodeType, const SmToken &rNodeToken, size_t nSize = 0)
|
||||
: SmNode(eNodeType, rNodeToken)
|
||||
, aSubNodes(nSize)
|
||||
, maSubNodes(nSize)
|
||||
{}
|
||||
|
||||
public:
|
||||
@@ -249,10 +249,10 @@ public:
|
||||
|
||||
virtual void GetAccessibleText( OUStringBuffer &rText ) const override;
|
||||
|
||||
SmNodeArray::iterator begin() {return aSubNodes.begin();}
|
||||
SmNodeArray::iterator end() {return aSubNodes.end();}
|
||||
SmNodeArray::reverse_iterator rbegin() {return aSubNodes.rbegin();}
|
||||
SmNodeArray::reverse_iterator rend() {return aSubNodes.rend();}
|
||||
SmNodeArray::iterator begin() {return maSubNodes.begin();}
|
||||
SmNodeArray::iterator end() {return maSubNodes.end();}
|
||||
SmNodeArray::reverse_iterator rbegin() {return maSubNodes.rbegin();}
|
||||
SmNodeArray::reverse_iterator rend() {return maSubNodes.rend();}
|
||||
|
||||
/** Get the index of a child node
|
||||
*
|
||||
@@ -269,16 +269,16 @@ public:
|
||||
|
||||
void SetSubNode(size_t nIndex, SmNode* pNode)
|
||||
{
|
||||
size_t size = aSubNodes.size();
|
||||
size_t size = maSubNodes.size();
|
||||
if (size <= nIndex)
|
||||
{
|
||||
//Resize subnodes array
|
||||
aSubNodes.resize(nIndex + 1);
|
||||
maSubNodes.resize(nIndex + 1);
|
||||
//Set new slots to NULL
|
||||
for (size_t i = size; i < nIndex+1; i++)
|
||||
aSubNodes[i] = nullptr;
|
||||
maSubNodes[i] = nullptr;
|
||||
}
|
||||
aSubNodes[nIndex] = pNode;
|
||||
maSubNodes[nIndex] = pNode;
|
||||
ClaimPaternity();
|
||||
}
|
||||
|
||||
@@ -803,7 +803,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
/** Enum used to index sub-/supscripts in the 'aSubNodes' array
|
||||
/** Enum used to index sub-/supscripts in the 'maSubNodes' array
|
||||
* in 'SmSubSupNode'
|
||||
*
|
||||
* See graphic for positions at char:
|
||||
|
@@ -381,13 +381,13 @@ SmStructureNode::~SmStructureNode()
|
||||
void SmStructureNode::SetSubNodes(SmNode *pFirst, SmNode *pSecond, SmNode *pThird)
|
||||
{
|
||||
size_t nSize = pThird ? 3 : (pSecond ? 2 : (pFirst ? 1 : 0));
|
||||
aSubNodes.resize( nSize );
|
||||
maSubNodes.resize( nSize );
|
||||
if (pFirst)
|
||||
aSubNodes[0] = pFirst;
|
||||
maSubNodes[0] = pFirst;
|
||||
if (pSecond)
|
||||
aSubNodes[1] = pSecond;
|
||||
maSubNodes[1] = pSecond;
|
||||
if (pThird)
|
||||
aSubNodes[2] = pThird;
|
||||
maSubNodes[2] = pThird;
|
||||
|
||||
ClaimPaternity();
|
||||
}
|
||||
@@ -395,7 +395,7 @@ void SmStructureNode::SetSubNodes(SmNode *pFirst, SmNode *pSecond, SmNode *pThir
|
||||
|
||||
void SmStructureNode::SetSubNodes(const SmNodeArray &rNodeArray)
|
||||
{
|
||||
aSubNodes = rNodeArray;
|
||||
maSubNodes = rNodeArray;
|
||||
ClaimPaternity();
|
||||
}
|
||||
|
||||
@@ -408,13 +408,13 @@ bool SmStructureNode::IsVisible() const
|
||||
|
||||
sal_uInt16 SmStructureNode::GetNumSubNodes() const
|
||||
{
|
||||
return sal::static_int_cast<sal_uInt16>(aSubNodes.size());
|
||||
return sal::static_int_cast<sal_uInt16>(maSubNodes.size());
|
||||
}
|
||||
|
||||
|
||||
SmNode * SmStructureNode::GetSubNode(sal_uInt16 nIndex)
|
||||
{
|
||||
return aSubNodes[nIndex];
|
||||
return maSubNodes[nIndex];
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user