Scribus API for plugins
A stable, high level and documented interface to the Scribus core that plugin developers can use to access the Scribus features.
|
Main class for creating the GUI and interpreting the user input. More...
Public Member Functions | |
ScribusAPIDocument (ScribusDoc *scribusDoc) | |
void | set (ScribusDoc *scribusDoc) |
void | setPageRange (QList< int > pageRange) |
QString | getPath () |
ScribusAPIDocumentMetadata | getMetadata () |
bool | isPortrait (int pageNumber) |
void | render () |
void | readItems () |
Create a list ScribusAPIDocumentItem representing all document's items sorted by page and postion. More... | |
QList< ScribusAPIDocumentItem * > | getPageItems (int page) |
ScribusAPIDocumentItem * | getCurrentItem () |
void | readSections () |
QVector< QList< int > > | getSections () |
QString | getStylesAsCss () |
QStringList | getParagraphStyleNames () |
Get the list the names of all paragraph styles. | |
QStringList | getCharacterStyleNames () |
Get the list the names of all paragraph styles. | |
QByteArray | getPageAsPNG (int pageNumber, int width, int height) |
Get the page as a PNG image. More... | |
QByteArray | getPageAsPNG (int pageNumber, int maxSize) |
Get the page as a PNG image. More... | |
QByteArray | getFirstPageAsCoverImage () |
int | getPageCount () |
QString | getPageNumberByIndex (int i) |
int | getSectionCount () |
Main class for creating the GUI and interpreting the user input.
Test text comes here...
ScribusAPIDocumentMetadata ScribusAPIDocument::getMetadata | ( | ) |
Returns the metadata
QByteArray ScribusAPIDocument::getPageAsPNG | ( | int | pageNumber, |
int | width, | ||
int | height | ||
) |
Get the page as a PNG image.
pageNumber | the page to be returned. |
width | maximal width; if 0, ignored. |
height | maximal height; if 0, ignored. |
QByteArray ScribusAPIDocument::getPageAsPNG | ( | int | pageNumber, |
int | maxSize | ||
) |
Get the page as a PNG image.
pageNumber | the page to be returned. |
maxSize | the size of the longer measurement between widht and height |
QString ScribusAPIDocument::getStylesAsCss | ( | ) |
add OEBPS/Styles/style.css to the current epub file TODO: move to ScribusAPIDocumentStyle
void ScribusAPIDocument::readItems | ( | ) |
Create a list ScribusAPIDocumentItem representing all document's items sorted by page and postion.
Go through the full items list (PageItem) in the Scribus document (ScribusDoc) and collect the reference of the printable ones in a list sorted by page and by placement on the page.
TODO: correctly handle the page ranges (from .. to) TODO: rename it to signify that it only reads visible items on a page and collapses layers (and make it a getter?) -> readSortedItemsForExport()?
|
inline |