OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the XSL implementation. | 2 * This file is part of the XSL implementation. |
3 * | 3 * |
4 * Copyright (C) 2004, 2007, 2008 Apple, Inc. All rights reserved. | 4 * Copyright (C) 2004, 2007, 2008 Apple, Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void setXSLStyleSheet(PassRefPtrWillBeRawPtr<XSLStyleSheet> styleSheet) { m_
stylesheet = styleSheet; } | 51 void setXSLStyleSheet(PassRefPtrWillBeRawPtr<XSLStyleSheet> styleSheet) { m_
stylesheet = styleSheet; } |
52 bool transformToString(Node* source, String& resultMIMEType, String& resultS
tring, String& resultEncoding); | 52 bool transformToString(Node* source, String& resultMIMEType, String& resultS
tring, String& resultEncoding); |
53 PassRefPtr<Document> createDocumentFromSource(const String& source, const St
ring& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, LocalFrame
* frame); | 53 PassRefPtr<Document> createDocumentFromSource(const String& source, const St
ring& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, LocalFrame
* frame); |
54 | 54 |
55 // DOM methods | 55 // DOM methods |
56 void importStylesheet(PassRefPtr<Node> style) | 56 void importStylesheet(PassRefPtr<Node> style) |
57 { | 57 { |
58 if (style) | 58 if (style) |
59 m_stylesheetRootNode = style; | 59 m_stylesheetRootNode = style; |
60 } | 60 } |
61 PassRefPtr<DocumentFragment> transformToFragment(Node* source, Document* oup
utDoc); | 61 PassRefPtrWillBeRawPtr<DocumentFragment> transformToFragment(Node* source, D
ocument* ouputDoc); |
62 PassRefPtr<Document> transformToDocument(Node* source); | 62 PassRefPtr<Document> transformToDocument(Node* source); |
63 | 63 |
64 void setParameter(const String& namespaceURI, const String& localName, const
String& value); | 64 void setParameter(const String& namespaceURI, const String& localName, const
String& value); |
65 String getParameter(const String& namespaceURI, const String& localName) con
st; | 65 String getParameter(const String& namespaceURI, const String& localName) con
st; |
66 void removeParameter(const String& namespaceURI, const String& localName); | 66 void removeParameter(const String& namespaceURI, const String& localName); |
67 void clearParameters() { m_parameters.clear(); } | 67 void clearParameters() { m_parameters.clear(); } |
68 | 68 |
69 void reset(); | 69 void reset(); |
70 | 70 |
71 static void parseErrorFunc(void* userData, xmlError*); | 71 static void parseErrorFunc(void* userData, xmlError*); |
(...skipping 13 matching lines...) Expand all Loading... |
85 } | 85 } |
86 | 86 |
87 RefPtrWillBeMember<XSLStyleSheet> m_stylesheet; | 87 RefPtrWillBeMember<XSLStyleSheet> m_stylesheet; |
88 RefPtr<Node> m_stylesheetRootNode; | 88 RefPtr<Node> m_stylesheetRootNode; |
89 ParameterMap m_parameters; | 89 ParameterMap m_parameters; |
90 }; | 90 }; |
91 | 91 |
92 } | 92 } |
93 | 93 |
94 #endif | 94 #endif |
OLD | NEW |