~ubuntu-branches/ubuntu/oneiric/inkscape/oneiric-updates

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/dom/xpathimpl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Phoebe DOM Implementation.
 
3
 *
 
4
 * This is a C++ approximation of the W3C DOM model, which follows
 
5
 * fairly closely the specifications in the various .idl files, copies of
 
6
 * which are provided for reference.  Most important is this one:
 
7
 *
 
8
 * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
 
9
 *
 
10
 * Authors:
 
11
 *   Bob Jamison
 
12
 *
 
13
 * Copyright (C) 2005-2008 Bob Jamison
 
14
 *
 
15
 *  This library is free software; you can redistribute it and/or
 
16
 *  modify it under the terms of the GNU Lesser General Public
 
17
 *  License as published by the Free Software Foundation; either
 
18
 *  version 2.1 of the License, or (at your option) any later version.
 
19
 *
 
20
 *  This library is distributed in the hope that it will be useful,
 
21
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
23
 *  Lesser General Public License for more details.
 
24
 *
 
25
 *  You should have received a copy of the GNU Lesser General Public
 
26
 *  License along with this library; if not, write to the Free Software
 
27
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
28
 */
 
29
 
 
30
 
 
31
#include "xpathimpl.h"
 
32
 
 
33
 
 
34
namespace org
 
35
{
 
36
namespace w3c
 
37
{
 
38
namespace dom
 
39
{
 
40
namespace xpath
 
41
{
 
42
 
 
43
 
 
44
/*#########################################################################
 
45
## XPathEvaluatorImpl
 
46
#########################################################################*/
 
47
 
 
48
/**
 
49
 *
 
50
 */
 
51
XPathExpression *XPathEvaluatorImpl::createExpression(
 
52
                                     const DOMString &/*expression*/,
 
53
                                     const XPathNSResolver */*resolver*/)
 
54
                                     throw (XPathException, dom::DOMException)
 
55
{
 
56
    return NULL;
 
57
}
 
58
 
 
59
 
 
60
/**
 
61
 *
 
62
 */
 
63
XPathNSResolver *XPathEvaluatorImpl::createNSResolver(const Node */*nodeResolver*/)
 
64
{
 
65
    return NULL;
 
66
}
 
67
 
 
68
 
 
69
/**
 
70
 *
 
71
 */
 
72
XPathResult *XPathEvaluatorImpl::evaluate(
 
73
                                const DOMString &/*expression*/,
 
74
                                const Node */*contextNode*/,
 
75
                                const XPathNSResolver */*resolver*/,
 
76
                                const unsigned short /*type*/,
 
77
                                const XPathResult */*result*/)
 
78
                                throw (XPathException, dom::DOMException)
 
79
{
 
80
    return NULL;
 
81
}
 
82
 
 
83
 
 
84
//###################
 
85
//# Non-API methods
 
86
//###################
 
87
 
 
88
 
 
89
 
 
90
/*#########################################################################
 
91
## XPathExpressionImpl
 
92
#########################################################################*/
 
93
 
 
94
 
 
95
 
 
96
/**
 
97
 *
 
98
 */
 
99
XPathResult *XPathExpressionImpl::evaluate(
 
100
                                const Node */*contextNode*/,
 
101
                                unsigned short /*type*/,
 
102
                                const XPathResult */*result*/)
 
103
                                throw (XPathException, dom::DOMException)
 
104
{
 
105
    return NULL;
 
106
}
 
107
 
 
108
 
 
109
 
 
110
/*#########################################################################
 
111
## XPathNSResolverImpl
 
112
#########################################################################*/
 
113
 
 
114
 
 
115
/**
 
116
 *
 
117
 */
 
118
DOMString XPathNSResolverImpl::lookupNamespaceURI(const DOMString &/*prefix*/)
 
119
{
 
120
    return "";
 
121
}
 
122
 
 
123
 
 
124
 
 
125
 
 
126
/*#########################################################################
 
127
## XPathResultImpl
 
128
#########################################################################*/
 
129
 
 
130
 
 
131
 
 
132
/**
 
133
 *
 
134
 */
 
135
unsigned short  XPathResultImpl::getResultType() throw (XPathException)
 
136
{
 
137
    return 0;
 
138
}
 
139
 
 
140
/**
 
141
 *
 
142
 */
 
143
double XPathResultImpl::getNumberValue() throw (XPathException)
 
144
{
 
145
    return 0.0;
 
146
}
 
147
 
 
148
 
 
149
/**
 
150
 *
 
151
 */
 
152
DOMString XPathResultImpl::getStringValue() throw (XPathException)
 
153
{
 
154
    return "";
 
155
}
 
156
 
 
157
/**
 
158
 *
 
159
 */
 
160
bool XPathResultImpl::getBooleanValue() throw (XPathException)
 
161
{
 
162
    return false;
 
163
}
 
164
 
 
165
/**
 
166
 *
 
167
 */
 
168
Node *XPathResultImpl::getSingleNodeValue() throw (XPathException)
 
169
{
 
170
    return NULL;
 
171
}
 
172
 
 
173
/**
 
174
 *
 
175
 */
 
176
bool XPathResultImpl::getInvalidIteratorState() throw (XPathException)
 
177
{
 
178
    return false;
 
179
}
 
180
 
 
181
/**
 
182
 *
 
183
 */
 
184
unsigned long XPathResultImpl::getSnapshotLength() throw (XPathException)
 
185
{
 
186
    return 0L;
 
187
}
 
188
 
 
189
/**
 
190
 *
 
191
 */
 
192
Node *XPathResultImpl::iterateNext() throw (XPathException, dom::DOMException)
 
193
{
 
194
    return NULL;
 
195
}
 
196
 
 
197
/**
 
198
 *
 
199
 */
 
200
Node *XPathResultImpl::snapshotItem(unsigned long /*index*/) throw (XPathException)
 
201
{
 
202
    return NULL;
 
203
}
 
204
 
 
205
 
 
206
 
 
207
/*#########################################################################
 
208
## XPathNamespaceImpl
 
209
#########################################################################*/
 
210
 
 
211
 
 
212
/**
 
213
 *
 
214
 */
 
215
Element *XPathNamespaceImpl::getOwnerElement()
 
216
{
 
217
    return NULL;
 
218
}
 
219
 
 
220
 
 
221
 
 
222
 
 
223
}  //namespace xpath
 
224
}  //namespace dom
 
225
}  //namespace w3c
 
226
}  //namespace org
 
227
 
 
228
 
 
229
 
 
230
 
 
231
/*#########################################################################
 
232
## E N D    O F    F I L E
 
233
#########################################################################*/
 
234
 
 
235
 
 
236