Package translate :: Package storage :: Module odf :: Class ODFFile

[hide private]
[frames] | no frames]

# Class ODFFile

source code

                    object --+
                             |
         base.TranslationStore --+
                                 |
    misc.xmlwrapper.XMLWrapper --+
                                 |
                                ODFFile

This class represents an OpenDocument file

Nested Classes | [hide private]

| UnitClass This class represents an OpenDocument translatable snippet

Instance Methods | [hide private]

__init__(self, inputfile) Constructs a blank TranslationStore. | source code

excludeiterator(self, obj, excludetags) | source code

getunits(self) Return a list of all units in this store. | source code

Inherited from `base.TranslationStore`: `__str__`, `addsourceunit`, `addunit`, `findunit`, `isempty`, `makeindex`, `parse`, `save`, `savefile`, `setsourcelanguage`, `settargetlanguage`, `translate`, `unit_iter`

Inherited from `base.TranslationStore` (private): `_assignname`

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`

Inherited from `misc.xmlwrapper.XMLWrapper`: `getattr`, `getchild`, `getchildren`, `getplaintext`, `gettext`, `getvalues`, `getxml`, `write`

Class Methods | [hide private]

Inherited from `base.TranslationStore`: `parsefile`, `parsestring`

Class Variables | [hide private]

Inherited from `base.TranslationStore`: `Extensions`, `Mimetypes`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, inputfile)
(Constructor)

source code

Constructs a blank TranslationStore.

Overrides: misc.xmlwrapper.XMLWrapper.__init__
  (inherited documentation)

### getunits(self)

source code

Return a list of all units in this store.

Overrides: base.TranslationStore.getunits
  (inherited documentation)