summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/macros/lib/xmlhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/macros/lib/xmlhandler.cpp')
-rw-r--r--kexi/plugins/macros/lib/xmlhandler.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/plugins/macros/lib/xmlhandler.cpp b/kexi/plugins/macros/lib/xmlhandler.cpp
index 5b53d51b..65f1a4cf 100644
--- a/kexi/plugins/macros/lib/xmlhandler.cpp
+++ b/kexi/plugins/macros/lib/xmlhandler.cpp
@@ -99,7 +99,7 @@ bool XMLHandler::parseXML(const TQDomElement& element)
const TQDomElement itemelem = itemnode.toElement();
// Create a new MacroItem
- KSharedPtr<MacroItem> item = new MacroItem();
+ TDESharedPtr<MacroItem> item = new MacroItem();
// Add the new item to our Macro.
d->macro->addItem( item );
@@ -107,7 +107,7 @@ bool XMLHandler::parseXML(const TQDomElement& element)
// Each MacroItem may point to an Action instance. We
// try to determinate this action now and if it's defined
// and available, we set it.
- KSharedPtr<Action> action = Manager::self()->action( itemelem.attribute("action") );
+ TDESharedPtr<Action> action = Manager::self()->action( itemelem.attribute("action") );
if(action.data()) {
item->setAction(action);
}
@@ -157,14 +157,14 @@ TQDomElement XMLHandler::toXML()
//macroelem.setAttribute("name",d->macro->name());
// The list of MacroItem-children a Macro provides.
- TQValueList<KSharedPtr<MacroItem > > items = d->macro->items();
+ TQValueList<TDESharedPtr<MacroItem > > items = d->macro->items();
// Create an iterator...
- TQValueList<KSharedPtr<MacroItem > >::ConstIterator it(items.constBegin()), end(items.constEnd());
+ TQValueList<TDESharedPtr<MacroItem > >::ConstIterator it(items.constBegin()), end(items.constEnd());
// ...and iterate over the list of children the Macro provides.
for(;it != end; ++it) {
// We are iterating over MacroItem instances.
- KSharedPtr<MacroItem> item = *it;
+ TDESharedPtr<MacroItem> item = *it;
// Flag to determinate if we really need to remember this item what
// is only the case if comment or action is defined.
@@ -174,7 +174,7 @@ TQDomElement XMLHandler::toXML()
TQDomElement itemelem = document.createElement("item");
// Each MacroItem could point to an Action provided by the Manager.
- const KSharedPtr<Action> action = item->action();
+ const TDESharedPtr<Action> action = item->action();
if( action ) {
append = true;
@@ -184,10 +184,10 @@ TQDomElement XMLHandler::toXML()
// Each MacroItem could have a list of variables. We
// iterate through that list and build a element
// for each single variable.
- TQMap<TQString, KSharedPtr<Variable > > varmap = item->variables();
+ TQMap<TQString, TDESharedPtr<Variable > > varmap = item->variables();
- for(TQMap<TQString, KSharedPtr<Variable > >::ConstIterator vit = varmap.constBegin(); vit != varmap.constEnd(); ++vit) {
- const KSharedPtr<Variable> v = vit.data();
+ for(TQMap<TQString, TDESharedPtr<Variable > >::ConstIterator vit = varmap.constBegin(); vit != varmap.constEnd(); ++vit) {
+ const TDESharedPtr<Variable> v = vit.data();
if(! v.data()) {
// skip if the variable is NULL.
continue;