X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdom%2Flsimpl.h;h=2375a1d49b0bc0b7fa8070f2aef58a609d15a32c;hb=b8a7e70cb5a1da6583e445be8f2afb03b8abbabf;hp=ee63601431c31e116ce64345a6304ff13f9e74c5;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/dom/lsimpl.h b/src/dom/lsimpl.h old mode 100755 new mode 100644 index ee6360143..2375a1d49 --- a/src/dom/lsimpl.h +++ b/src/dom/lsimpl.h @@ -12,7 +12,7 @@ * Authors: * Bob Jamison * - * Copyright (C) 2005 Bob Jamison + * Copyright (C) 2005-2007 Bob Jamison * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -72,23 +72,23 @@ public: /** * */ - virtual Document *parse(const LSInput &input) - throw(dom::DOMException, LSException); + virtual DocumentPtr parse(const LSInput &input) + throw(dom::DOMException, LSException); /** * */ - virtual Document *parseURI(const DOMString &uri) - throw(dom::DOMException, LSException); + virtual DocumentPtr parseURI(const DOMString &uri) + throw(dom::DOMException, LSException); /** * */ - virtual Node *parseWithContext(const LSInput &input, - const Node *contextArg, - unsigned short action) - throw(dom::DOMException, LSException); + virtual NodePtr parseWithContext(const LSInput &input, + const NodePtr contextArg, + unsigned short action) + throw(dom::DOMException, LSException); //################## @@ -144,13 +144,13 @@ public: /** * */ - virtual unsigned short startElement(const Element *elementArg) + virtual unsigned short startElement(const ElementPtr elementArg) { return 0; } /** * */ - virtual unsigned short acceptNode(const Node *nodeArg) + virtual unsigned short acceptNode(const NodePtr nodeArg) { return 0; } /** @@ -188,21 +188,21 @@ public: /** * */ - virtual bool write(const Node *nodeArg, + virtual bool write(const NodePtr nodeArg, const LSOutput &destination) throw (LSException); /** * */ - virtual bool writeToURI(const Node *nodeArg, + virtual bool writeToURI(const NodePtr nodeArg, const DOMString &uri) throw(LSException); /** * */ - virtual DOMString writeToString(const Node *nodeArg) + virtual DOMString writeToString(const NodePtr nodeArg) throw(dom::DOMException, LSException); //################## @@ -230,13 +230,17 @@ protected: /** * */ - void writeNode(const Node *nodeArg); + void writeNode(const NodePtr nodeArg); private: void spaces(); - void po(char *fmt, ...); + void po(char const *fmt, ...) + #ifdef G_GNUC_PRINTF + G_GNUC_PRINTF(2, 3) + #endif + ; void pos(const DOMString &str);