diff options
Diffstat (limited to 'quanta/utility/tagactionset.cpp')
-rw-r--r-- | quanta/utility/tagactionset.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/quanta/utility/tagactionset.cpp b/quanta/utility/tagactionset.cpp index dc994716..7d85aaba 100644 --- a/quanta/utility/tagactionset.cpp +++ b/quanta/utility/tagactionset.cpp @@ -47,7 +47,7 @@ TagActionSetAbstract::TagActionSetAbstract(TQObject *tqparent, const char *name) TagActionSetAbstract::~TagActionSetAbstract() {} -Node* TagActionSetAbstract::tqparentTag(Node* node, TQString const& tagName) +Node* TagActionSetAbstract::parentTag(Node* node, TQString const& tagName) { Q_ASSERT(node); @@ -221,14 +221,14 @@ bool TagActionSet::isInDivArea() const { Q_ASSERT(m_currentNode); - return tqparentTag(m_currentNode, "div"); + return parentTag(m_currentNode, "div"); } void TagActionSet::slotCopyDivElement() { Q_ASSERT(m_currentNode); - Node* divNode = tqparentTag(m_currentNode, "div"); + Node* divNode = parentTag(m_currentNode, "div"); Q_ASSERT(divNode); Node* divClosingNode = divNode->getClosingNode(); @@ -245,7 +245,7 @@ void TagActionSet::slotCutDivElement() { Q_ASSERT(m_currentNode); - Node* divNode = tqparentTag(m_currentNode, "div"); + Node* divNode = parentTag(m_currentNode, "div"); Q_ASSERT(divNode); Node* divClosingNode = divNode->getClosingNode(); @@ -274,7 +274,7 @@ TableTagActionSet::TableTagActionSet(TQObject *tqparent, const char *name) bool TableTagActionSet::isInTagContext() const { - return tqparentTag(m_currentNode, "table"); + return parentTag(m_currentNode, "table"); } void TableTagActionSet::initActionMenus(TQWidget* widget) @@ -575,14 +575,14 @@ void TableTagActionSet::slotInsertTable() bool TableTagActionSet::canInsertRowAbove() const { - return isInTagContext() && tqparentTag(m_currentNode, "tbody"); + return isInTagContext() && parentTag(m_currentNode, "tbody"); } void TableTagActionSet::slotInsertRowAbove() { Q_ASSERT(m_currentNode); - Node* nearRow = tqparentTag(m_currentNode, "tr"); + Node* nearRow = parentTag(m_currentNode, "tr"); if(!nearRow) return; @@ -610,11 +610,11 @@ void TableTagActionSet::slotInsertRowBelow() Q_ASSERT(m_currentNode); Node* nearRow = 0; - Node* aux = tqparentTag(m_currentNode, "thead"); + Node* aux = parentTag(m_currentNode, "thead"); if(aux) nearRow= firstChildTag(tableStart(), "tr"); else - nearRow = tqparentTag(m_currentNode, "tr"); + nearRow = parentTag(m_currentNode, "tr"); if(!nearRow) return; @@ -781,7 +781,7 @@ void TableTagActionSet::slotRemoveRows() if(!selection.hasSelection()) { - Node* nearTr = tqparentTag(m_currentNode, "tr"); + Node* nearTr = parentTag(m_currentNode, "tr"); kafkaCommon::extractAndDeleteNode(nearTr, modifs, true, true); } else @@ -789,8 +789,8 @@ void TableTagActionSet::slotRemoveRows() Node* startSelection = kafkaCommon::getNodeFromLocation(selection.cursorNode()); Node* endSelection = kafkaCommon::getNodeFromLocation(selection.cursorNodeEndSel()); - Node* startTr = tqparentTag(startSelection, "tr"); - Node* endTr = tqparentTag(endSelection, "tr"); + Node* startTr = parentTag(startSelection, "tr"); + Node* endTr = parentTag(endSelection, "tr"); Node* iteratorNode = startTr; bool loop(true); @@ -844,7 +844,7 @@ void TableTagActionSet::slotRemoveColumns() if(startColumnIndex == -1 || endColumnIndex == -1) return; - m_currentNode = tqparentTag(m_currentNode, "tbody"); // m_currentNode will become invalid + m_currentNode = parentTag(m_currentNode, "tbody"); // m_currentNode will become invalid for(int i = 0; i != numberOfColumnsSelected; ++i) removeColumn(startColumnIndex, modifs); } @@ -880,9 +880,9 @@ void TableTagActionSet::slotRemoveCellsContent() if(!selection.hasSelection()) { Node* aux = m_currentNode; - m_currentNode = tqparentTag(m_currentNode, "tbody"); + m_currentNode = parentTag(m_currentNode, "tbody"); - Node* nearTd = tqparentTag(aux, "td"); + Node* nearTd = parentTag(aux, "td"); clearCellContents(nearTd, modifs); } else @@ -890,8 +890,8 @@ void TableTagActionSet::slotRemoveCellsContent() Node* startSelection = kafkaCommon::getNodeFromLocation(selection.cursorNode()); Node* endSelection = kafkaCommon::getNodeFromLocation(selection.cursorNodeEndSel()); - Node* startTd = tqparentTag(startSelection, "td"); - Node* endTd = tqparentTag(endSelection, "td"); + Node* startTd = parentTag(startSelection, "td"); + Node* endTd = parentTag(endSelection, "td"); if(!startTd || !endTd) return; @@ -933,8 +933,8 @@ void TableTagActionSet::slotMergeSelectedCells() Node* startSelection = kafkaCommon::getNodeFromLocation(selection.cursorNode()); Node* endSelection = kafkaCommon::getNodeFromLocation(selection.cursorNodeEndSel()); - Node* startTd = tqparentTag(startSelection, "td"); - Node* endTd = tqparentTag(endSelection, "td"); + Node* startTd = parentTag(startSelection, "td"); + Node* endTd = parentTag(endSelection, "td"); Node* nodeIterator = startTd->SNext(); Node* stopNode = endTd->SNext(); @@ -975,7 +975,7 @@ Node* TableTagActionSet::tableStart() const Q_ASSERT(isInTagContext()); Q_ASSERT(m_currentNode); - return tqparentTag(m_currentNode, "table"); + return parentTag(m_currentNode, "table"); } int TableTagActionSet::numberOfColumns() const @@ -1004,7 +1004,7 @@ int TableTagActionSet::numberOfColumns() const int TableTagActionSet::currentColumnIndex() const { return columnIndex(m_currentNode); -/* Node* nearTd = tqparentTag(m_currentNode, "td"); +/* Node* nearTd = parentTag(m_currentNode, "td"); if(!nearTd) return -1; @@ -1012,7 +1012,7 @@ int TableTagActionSet::currentColumnIndex() const if(!_tableStart) return -1; - Node* firstTd = firstChildTag(tqparentTag(m_currentNode, "tr"), "td"); + Node* firstTd = firstChildTag(parentTag(m_currentNode, "tr"), "td"); //Node* firstTd = firstChildTag(_tableStart, "td"); if(!firstTd) return -1; @@ -1032,7 +1032,7 @@ int TableTagActionSet::currentColumnIndex() const int TableTagActionSet::columnIndex(Node* node) const { - Node* nearTd = tqparentTag(node, "td"); + Node* nearTd = parentTag(node, "td"); if(!nearTd) return -1; @@ -1040,7 +1040,7 @@ int TableTagActionSet::columnIndex(Node* node) const if(!_tableStart) return -1; - Node* firstTd = firstChildTag(tqparentTag(node, "tr"), "td"); + Node* firstTd = firstChildTag(parentTag(node, "tr"), "td"); if(!firstTd) return -1; |