50 |
50 |
51 |
51 |
52 class MSaxLayoutEqHandler |
52 class MSaxLayoutEqHandler |
53 { |
53 { |
54 public: |
54 public: |
55 typedef SAX::basic_Attributes<std::string> TAttribs; |
55 typedef Arabica::SAX::Attributes<std::string> TAttribs; |
56 virtual MSaxLayoutEqHandler* HandleSax(const std::string& aElement, const TAttribs& aAttribs) { return this; }; |
56 virtual MSaxLayoutEqHandler* HandleSax(const std::string& aElement, const TAttribs& aAttribs) { return this; }; |
57 virtual void HandleSaxEnd(const std::string& aElement) { }; |
57 virtual void HandleSaxEnd(const std::string& aElement) { }; |
58 }; |
58 }; |
59 |
59 |
60 |
60 |
167 TMLEqCompDataParseLine* iSaxLine; |
167 TMLEqCompDataParseLine* iSaxLine; |
168 string iSaxLayoutType; |
168 string iSaxLayoutType; |
169 }; |
169 }; |
170 |
170 |
171 |
171 |
172 class TEqLayoutSaxParser : private SAX::basic_DefaultHandler<std::string> |
172 class TEqLayoutSaxParser : private Arabica::SAX::DefaultHandler<std::string> |
173 { |
173 { |
174 private: |
174 private: |
175 typedef stack<MSaxLayoutEqHandler*> TSaxHandlerStack; |
175 typedef stack<MSaxLayoutEqHandler*> TSaxHandlerStack; |
176 typedef SAX::basic_ErrorHandler<std::string>::SAXParseExceptionT TException; |
176 typedef Arabica::SAX::ErrorHandler<std::string>::SAXParseExceptionT TException; |
177 |
177 |
178 public: |
178 public: |
179 TEqLayoutSaxParser(MSaxLayoutEqHandler* aHandler); |
179 TEqLayoutSaxParser(MSaxLayoutEqHandler* aHandler); |
180 void Parse(const std::string& aFileName); |
180 void Parse(const std::string& aFileName); |
181 |
181 |
182 private: // from basic_DefaultHandler |
182 private: // from basic_DefaultHandler |
183 void startElement(const std::string& namespaceURI, const std::string& localName, const std::string& qName, const SAX::basic_Attributes<std::string>& atts); |
183 void startElement(const std::string& namespaceURI, const std::string& localName, const std::string& qName, const Arabica::SAX::Attributes<std::string>& atts); |
184 void endElement(const std::string& namespaceURI, const std::string& localName, const std::string& qName); |
184 void endElement(const std::string& namespaceURI, const std::string& localName, const std::string& qName); |
185 |
185 |
186 void warning(const TException& aException); |
186 void warning(const TException& aException); |
187 void error(const TException& aException); |
187 void error(const TException& aException); |
188 void fatalError(const TException& aException); |
188 void fatalError(const TException& aException); |