[scribus] [scribus-dev] Add-In Development Export Styles as CSS

José Antonio Rocha joseantoniorocha at gmail.com
Sun Jan 29 17:20:34 UTC 2012


2012/1/28 Rob Oakes <rob.oakes.msn at gmail.com>

> Is there a way to get the path and name of the currently open document?


The last function do that:

def parseDoc():
    ''' Get attributes from current Scribus doc.'''
    debug()
    global styleList
    parser = xml.parsers.expat.ParserCreate('UTF-8')
    parser.StartElementHandler = start_element
    try:
        docName = scribus.saveDoc()
        *# Undocumented Scribus 1.3.9 function: **
**        docName = unicode(scribus.getDocName())*
        file = open(docName,'r')
        parser.ParseFile(file)
        file.close()
    except:
        print "Error analising doc."
        earlyExit()
    styleList = scribus.getAllStyles()
    styleList.sort()


-- 
[image: Meira]
------------------------------
nome: "José Antonio Meira da Rocha"
googletalk: email: MSN: joseantoniorocha at gmail.com
veículo: [ http://meiradarocha.jor.br ]
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20120129/fbf6fe96/attachment.html>


More information about the scribus mailing list