def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) attrs.get("distT") attrs.get("distB") attrs.get("distL") attrs.get("distR") attrs.get("relativeHeight") # in emu's
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) self._preCurrentHtmlElement = self._currentHtmlElement self._td = self._html.createElement("td") self._currentHtmlElement = self._td self._colSpan = 1 self._vMerge = False self._width = None self._style = ""
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) self._picName = "" self._x = None # / 36000 = mm self._y = None self._embed = None self._target = None self._xmm = None self._ymm = None self._lCrop = 0 # faction of 100,000 self._tCrop = 0 self._rCrop = 0 self._bCrop = 0
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) ce = self._currentHtmlElement aName = attrs.get("w:anchor") rId = attrs.get("r:id") #="rId5" if aName: prefix = self._oxml.idPrefix + self._oxml.bookmarkPrefix href = "#" + prefix + aName ce = ce.addChildElement("a", href=href) else: docRels = self._oxml.docRels target, tMode = docRels.getTarget(rId), docRels.getTargetMode(rId) ce = ce.addChildElement("a", href=target) if tMode.lower()=="external": ce.addAttribute("type", "external") self._currentHtmlElement = ce
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) #print "v:shape" self._picName = "" self._x = None # / 36000 = mm self._y = None self._target = None self.__style = attrs.get("style", "") self._x = 0 self._y = 0 m = re.search("width\:([0-9.]+)pt", self.__style) if m: try: self._x = float(m.groups()[0]) * self.EMUsPerPT # pt to emu except: pass m = re.search("height\:([0-9.]+)pt", self.__style) if m: try: self._y = float(m.groups()[0]) * self.EMUsPerPT # pt to emu except: pass
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) self.__pLastChild = self.parentState._currentHtmlElement.getLastChild() self._currentHtmlElement = self._currentHtmlElement.addChildElement("p") self._numId = "" self._nestedLevel = ""
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs)
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) self._rows = [] self._gCol = [] self._style = ""
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) #print "w:object" # turn on data capturing self._oxml.startDataCapturing(self)
def __init__(self, parentState, name=None, attrs={}): BaseState.__init__(self, parentState, name, attrs) self._oxml.startDataCapturing(self)