summaryrefslogtreecommitdiffstats
path: root/lib/kformula/bracketelement.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit04766b207afba7961d4d802313e426f5a2fbef63 (patch)
treec888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /lib/kformula/bracketelement.cc
parentb6edfe41c9395f2e20784cbf0e630af6426950a3 (diff)
downloadkoffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz
koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kformula/bracketelement.cc')
-rw-r--r--lib/kformula/bracketelement.cc44
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/kformula/bracketelement.cc b/lib/kformula/bracketelement.cc
index 0a599dc0..df51ffa8 100644
--- a/lib/kformula/bracketelement.cc
+++ b/lib/kformula/bracketelement.cc
@@ -35,8 +35,8 @@
KFORMULA_NAMESPACE_BEGIN
-SingleContentElement::SingleContentElement(BasicElement* tqparent )
- : BasicElement( tqparent )
+SingleContentElement::SingleContentElement(BasicElement* parent )
+ : BasicElement( parent )
{
content = new SequenceElement( this );
}
@@ -137,9 +137,9 @@ void SingleContentElement::remove( FormulaCursor* cursor,
{
switch (cursor->getPos()) {
case contentPos:
- BasicElement* tqparent = getParent();
- tqparent->selectChild(cursor, this);
- tqparent->remove(cursor, removedChildren, direction);
+ BasicElement* parent = getParent();
+ parent->selectChild(cursor, this);
+ parent->remove(cursor, removedChildren, direction);
}
}
@@ -213,8 +213,8 @@ void SingleContentElement::writeMathMLContent( TQDomDocument& doc, TQDomElement&
-BracketElement::BracketElement(SymbolType l, SymbolType r, BasicElement* tqparent)
- : SingleContentElement(tqparent),
+BracketElement::BracketElement(SymbolType l, SymbolType r, BasicElement* parent)
+ : SingleContentElement(parent),
left( 0 ), right( 0 ),
leftType( l ), rightType( r ),
m_operator( false ), m_customLeft( false ), m_customRight( false )
@@ -361,7 +361,7 @@ void BracketElement::calcSizes( const ContextStyle& context,
/**
* Draws the whole element including its tqchildren.
- * The `parentOrigin' is the point this element's tqparent starts.
+ * The `parentOrigin' is the point this element's parent starts.
* We can use our parentPosition to get our own origin then.
*/
void BracketElement::draw( TQPainter& painter, const LuPixelRect& r,
@@ -522,7 +522,7 @@ int BracketElement::readContentFromMathMLDom(TQDomNode& node)
if ( m_operator ) {
node = node.parentNode();
TQDomNode open = node;
- TQDomNode tqparent = node.parentNode();
+ TQDomNode parent = node.parentNode();
if ( ! operatorType( node, true ) )
return -1;
int nodeNum = searchOperator( node );
@@ -548,7 +548,7 @@ int BracketElement::readContentFromMathMLDom(TQDomNode& node)
de.appendChild( node.toElement() );
node = n;
} while ( ++i < nodeNum );
- tqparent.insertAfter( de, open );
+ parent.insertAfter( de, open );
node = de;
kdWarning() << doc.toString() << endl;
}
@@ -563,8 +563,8 @@ int BracketElement::readContentFromMathMLDom(TQDomNode& node)
next = next.nextSibling();
if ( ! next.isNull()) {
TQDomDocument doc = node.ownerDocument();
- TQDomNode tqparent = node.parentNode();
- TQString ns = tqparent.prefix();
+ TQDomNode parent = node.parentNode();
+ TQString ns = parent.prefix();
TQDomElement de = doc.createElementNS( ns, "mrow" );
uint pos = 0;
while ( ! node.isNull() ) {
@@ -590,8 +590,8 @@ int BracketElement::readContentFromMathMLDom(TQDomNode& node)
}
node = no;
}
- tqparent.appendChild( de );
- node = tqparent.firstChild();
+ parent.appendChild( de );
+ node = parent.firstChild();
while ( ! node.isElement() )
node = node.nextSibling();
}
@@ -797,8 +797,8 @@ void BracketElement::writeMathMLAttributes( TQDomElement& element ) const
}
}
-OverlineElement::OverlineElement( BasicElement* tqparent )
- : SingleContentElement( tqparent )
+OverlineElement::OverlineElement( BasicElement* parent )
+ : SingleContentElement( parent )
{
}
@@ -887,7 +887,7 @@ TQString OverlineElement::formulaString()
return getContent()->formulaString();
}
-void OverlineElement::writeMathML( TQDomDocument& doc, TQDomNode& tqparent, bool oasisFormat ) const
+void OverlineElement::writeMathML( TQDomDocument& doc, TQDomNode& parent, bool oasisFormat ) const
{
TQDomElement de = doc.createElement( oasisFormat ? "math:mover" : "mover" );
SingleContentElement::writeMathML( doc, de, oasisFormat );
@@ -895,12 +895,12 @@ void OverlineElement::writeMathML( TQDomDocument& doc, TQDomNode& tqparent, bool
// is this the right entity? Mozilla renders it correctly.
op.appendChild( doc.createEntityReference( "OverBar" ) );
de.appendChild( op );
- tqparent.appendChild( de );
+ parent.appendChild( de );
}
-UnderlineElement::UnderlineElement( BasicElement* tqparent )
- : SingleContentElement( tqparent )
+UnderlineElement::UnderlineElement( BasicElement* parent )
+ : SingleContentElement( parent )
{
}
@@ -991,7 +991,7 @@ TQString UnderlineElement::formulaString()
return getContent()->formulaString();
}
-void UnderlineElement::writeMathML( TQDomDocument& doc, TQDomNode& tqparent, bool oasisFormat ) const
+void UnderlineElement::writeMathML( TQDomDocument& doc, TQDomNode& parent, bool oasisFormat ) const
{
TQDomElement de = doc.createElement( oasisFormat ? "math:munder" : "munder" );
SingleContentElement::writeMathML( doc, de, oasisFormat );
@@ -999,7 +999,7 @@ void UnderlineElement::writeMathML( TQDomDocument& doc, TQDomNode& tqparent, boo
// is this the right entity? Mozilla renders it correctly.
op.appendChild( doc.createEntityReference( "UnderBar" ) );
de.appendChild( op );
- tqparent.appendChild( de );
+ parent.appendChild( de );
}
KFORMULA_NAMESPACE_END