From 44d34e022dbcda08908c298b5328e0b0bdda6f09 Mon Sep 17 00:00:00 2001 From: Stef Date: Fri, 23 Jul 2004 22:01:58 +0000 Subject: - Code cleanup. --- src/xmlfixups.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/xmlfixups.cpp') diff --git a/src/xmlfixups.cpp b/src/xmlfixups.cpp index 6efe6f4..707294d 100644 --- a/src/xmlfixups.cpp +++ b/src/xmlfixups.cpp @@ -37,7 +37,7 @@ */ #include "usuals.h" -#include "rtffixups.h" +#include "xmlfixups.h" #include "domhelpers.h" #include "tags.h" @@ -60,7 +60,7 @@ static const char* kConsolidateStart[] = { kElStylesheet, kElInfo, NULL }; -void RtfFixups::breakBreak(DOM::Document& doc, const string& contain, +void XmlFixups::breakBreak(DOM::Document& doc, const string& contain, const string& tag) { DOM::NodeList els = doc.getElementsByTagName(tag); @@ -74,7 +74,7 @@ void RtfFixups::breakBreak(DOM::Document& doc, const string& contain, } } -bool RtfFixups::breakElement(const DOM::Element& el, const string& contain) +bool XmlFixups::breakElement(const DOM::Element& el, const string& contain) { ASSERT(el != NULL); @@ -149,7 +149,7 @@ bool RtfFixups::breakElement(const DOM::Element& el, const string& contain) return breakElement((DOM::Element&)e, contain); } -void RtfFixups::breakBlocks(DOM::Document& document) +void XmlFixups::breakBlocks(DOM::Document& document) { // First break out all the paragraphs to the destination level DOM::NodeList blocks = document.getElementsByTagName(kElBlock); @@ -216,7 +216,7 @@ void RtfFixups::breakBlocks(DOM::Document& document) } } -void RtfFixups::wrapTags(DOM::Document& doc, const string& tagName, +void XmlFixups::wrapTags(DOM::Document& doc, const string& tagName, const string& wrapName) { DOM::NodeList tags = doc.getElementsByTagName(tagName); @@ -235,7 +235,7 @@ void RtfFixups::wrapTags(DOM::Document& doc, const string& tagName, } } -void RtfFixups::breakTags(DOM::Document& doc, const string& parentName, +void XmlFixups::breakTags(DOM::Document& doc, const string& parentName, const string& tagName) { DOM::NodeList parents = doc.getElementsByTagName(parentName); @@ -332,7 +332,7 @@ void RtfFixups::breakTags(DOM::Document& doc, const string& parentName, } } -void RtfFixups::breakLists(DOM::Document& doc) +void XmlFixups::breakLists(DOM::Document& doc) { DOM::NodeList destinations = doc.getElementsByTagName(kElDest); if(destinations != NULL) @@ -394,7 +394,7 @@ void RtfFixups::breakLists(DOM::Document& doc) } } -void RtfFixups::fixStyles(const DOM::Document doc) +void XmlFixups::fixStyles(const DOM::Document doc) { // Get all stylesheet styles DOM::NodeList styles = doc.getElementsByTagName(kElStyle); @@ -440,7 +440,7 @@ void RtfFixups::fixStyles(const DOM::Document doc) } -void RtfFixups::breakTables(DOM::Document& doc) +void XmlFixups::breakTables(DOM::Document& doc) { // Break rows out to destinations DOM::NodeList rows = doc.getElementsByTagName(kElRow); @@ -526,7 +526,7 @@ void RtfFixups::breakTables(DOM::Document& doc) } } -void RtfFixups::removeTags(const DOM::Document& doc) +void XmlFixups::removeTags(const DOM::Document& doc) { // Go through the list of nodes for(const char** t = kRemoveTags; *t != NULL; t++) @@ -551,7 +551,7 @@ void RtfFixups::removeTags(const DOM::Document& doc) } } -void RtfFixups::fixLists(const DOM::Document doc) +void XmlFixups::fixLists(const DOM::Document doc) { // Get all the lists DOM::NodeList lists = doc.getElementsByTagName(kElList); @@ -586,7 +586,7 @@ void RtfFixups::fixLists(const DOM::Document doc) } } -void RtfFixups::fixBlocks(const DOM::Document doc) +void XmlFixups::fixBlocks(const DOM::Document doc) { // Get all the blocks DOM::NodeList blocks = doc.getElementsByTagName(kElBlock); @@ -638,7 +638,7 @@ void RtfFixups::fixBlocks(const DOM::Document doc) } } -void RtfFixups::consolidateEndTags(DOM::Document& doc) +void XmlFixups::consolidateEndTags(DOM::Document& doc) { DOM::Element top = doc.getDocumentElement(); ASSERT(top != NULL); @@ -670,7 +670,7 @@ void RtfFixups::consolidateEndTags(DOM::Document& doc) } } -void RtfFixups::consolidateStartTags(DOM::Document& doc) +void XmlFixups::consolidateStartTags(DOM::Document& doc) { DOM::Element top = doc.getDocumentElement(); ASSERT(top != NULL); @@ -705,7 +705,7 @@ void RtfFixups::consolidateStartTags(DOM::Document& doc) } } -void RtfFixups::combineDuplicates(const DOM::Document& doc) +void XmlFixups::combineDuplicates(const DOM::Document& doc) { bool found; -- cgit v1.2.3