示例#1
0
 def appproperties(self):
     E = ElementMaker(namespace=namespaces['ep'],
                      nsmap={None: namespaces['ep']})
     props = E.Properties(
         E.Application(__appname__),
         E.AppVersion('%02d.%04d' % numeric_version[:2]),
         E.DocSecurity('0'),
         E.HyperlinksChanged('false'),
         E.LinksUpToDate('true'),
         E.ScaleCrop('false'),
         E.SharedDoc('false'),
     )
     return xml2str(props, pretty_print=True)
示例#2
0
 def appproperties(self):
     E = ElementMaker(namespace=self.namespace.namespaces['ep'], nsmap={None:self.namespace.namespaces['ep']})
     props = E.Properties(
         E.Application(__appname__),
         E.AppVersion('%02d.%04d' % numeric_version[:2]),
         E.DocSecurity('0'),
         E.HyperlinksChanged('false'),
         E.LinksUpToDate('true'),
         E.ScaleCrop('false'),
         E.SharedDoc('false'),
     )
     if self.mi.publisher:
         props.append(E.Company(self.mi.publisher))
     return xml2str(props)