Lines Matching refs:document

150         self.document = None
168 """Apply some effects on the document. Extensions subclassing Effect
178 """Parse document in specified file or on stdin"""
203 self.document = etree.parse(stream, parser=p)
204 self.original_document = copy.deepcopy(self.document)
207 # defines view_center in terms of document units
210 self.current_layer = self.document.getroot()
213 layerattr = self.document.xpath('//sodipodi:namedview/@inkscape:current-layer', namespaces=NSS)
216 layer = self.document.xpath('//svg:g[@id="%s"]' % layername, namespaces=NSS)
220 xattr = self.document.xpath('//sodipodi:namedview/@inkscape:cx', namespaces=NSS)
221 yattr = self.document.xpath('//sodipodi:namedview/@inkscape:cy', namespaces=NSS)
234 for node in self.document.xpath(path, namespaces=NSS):
239 el_list = self.document.xpath(path, namespaces=NSS)
246 for parent in self.document.getiterator():
251 docIdNodes = self.document.xpath('//@id', namespaces=NSS)
256 return self.document.xpath('//sodipodi:namedview', namespaces=NSS)[0]
269 """Serialize document into XML on stdout"""
271 result = etree.tostring(self.document)
273 self.document.write(sys.stdout)
276 """Affect an SVG document with a callback effect"""
297 retval = self.document.xpath(path, namespaces=NSS)[0]
309 width = self.document.getroot().get('width')
313 viewbox = self.document.getroot().get('viewBox')
321 """Returns a string corresponding to the height of the document, as
325 height = self.document.getroot().get('height')
329 viewbox = self.document.getroot().get('viewBox')
336 """Returns the unit used for in the SVG document.
337 In the case the SVG document lacks an attribute that explicitly
344 viewboxstr = self.document.getroot().get('viewBox')
407 """Add document unit when no unit is specified in the string """