#include <qsworkbook.h>
Signals | |
| void | sigPageAdded (QSPage *o) |
| void | sigPageRemoved (QSPage *o) |
| void | sigPageOrder () |
| void | sigObjectAdded (QSCObject *o) |
| void | sigObjectRemoved (QSCObject *o) |
| void | sigObjectOrder () |
| void | sigPageListChanged () |
| void | sigPrinterChanged () |
| void | sigWorkbookChanged () |
Public Methods | |
| QSWorkbook (QObject *parent) | |
| virtual | ~QSWorkbook () |
| int | pageCount () const |
| virtual void | clear () |
| void | print (QPainter *painter, QPrinter *printer, double dpi) |
| void | pageAdd (QSPage *object) |
| void | pageInsert (int position, QSPage *page) |
| void | pageRemove (int index) |
| void | pageDelete (int index) |
| void | pageRaise (int index) |
| void | pageLower (int index) |
| void | pageToFront (int index) |
| void | pageToBack (int index) |
| void | pageReorder (int position, int index) |
| int | pageFind (QSPage *page) const |
| QSPage * | pageFind (QSCObject *object) const |
| QSPage * | page (int index) const |
| void | setPrinter (QPrinter *printer) |
| QPrinter * | printer () const |
Workbook holds a list of pages. Use QSPlotView to display documents on the screen.
demo2d.cpp, and demo3d.cpp.
|
|
Constructor. |
|
|
Destructor. Deletes all pages. Doesn't delete printer() |
|
|
Clears a workbook to the initial state |
|
|
Returns a page. |
|
|
Adds a new page. |
|
|
Returns a number of pages in this workbook |
|
|
Removes a page ad deletes it |
|
|
Find page |
|
|
Returns an index of a page or -1 if it wasn't found. |
|
||||||||||||
|
Insert page at position 'beforePos'. |
|
|
Lowers a page |
|
|
Raises a page. |
|
|
Removes a page but doesn't delete it. |
|
||||||||||||
|
Move page 'index' to position 'position'. |
|
|
Sends a page to the back |
|
|
Brings a page to the front. |
|
||||||||||||||||
|
Print the whole workbook on the given printer.QPrinter - QPainter |
|
|
Returns a current printer |
|
|
Set a printer. Page size and margins are used to display full page preview. The printer must be set each time its settings changes. Emits sigWorkbookChanged. printer is not deleted - the pointer still belongs to caller. |
|
|
Object added ( to any page ) |
|
|
Order of objects changed. ( on any page ) |
|
|
Object removed ( from any page ) |
|
|
Page added |
|
|
Page added/removed/reordered, page title has changed. Page tab bar needs refreshing. |
|
|
Order of pages changed. |
|
|
Page removed |
|
|
Printer has changed. |
|
|
Page added/removed/reordered, page changed, page title changed, a new printer is set. Workbook is 'dirty' and needs to be saved when exiting. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002