kjots
KJotsPage Class Reference
#include <kjotsentry.h>

Detailed Description
Definition at line 121 of file kjotsentry.h.
Public Member Functions | |
| KJotsPage () | |
| ~KJotsPage () | |
| QTextDocument * | body (void) |
| void | setCursor (const QTextCursor &c) |
| QTextCursor & | getCursor (void) |
| void | rename () |
| void | generateXml (QDomDocument &, QDomElement &) |
| void | parseXml (QDomElement &, bool) |
| void | generateHtml (KJotsEntry *, bool, QTextCursor *) |
| QString | generateText (void) |
| void | generatePrintData (QTextCursor *) |
Static Public Member Functions | |
| static KJotsPage * | createNewPage (int) |
Protected Slots | |
| void | documentModified (bool) |
Constructor & Destructor Documentation
| KJotsPage::KJotsPage | ( | ) |
Definition at line 618 of file kjotsentry.cpp.
| KJotsPage::~KJotsPage | ( | ) |
Definition at line 627 of file kjotsentry.cpp.
Member Function Documentation
| QTextDocument* KJotsPage::body | ( | void | ) | [inline] |
Definition at line 129 of file kjotsentry.h.
| void KJotsPage::setCursor | ( | const QTextCursor & | c | ) | [inline] |
Definition at line 130 of file kjotsentry.h.
| QTextCursor& KJotsPage::getCursor | ( | void | ) | [inline] |
Definition at line 131 of file kjotsentry.h.
| void KJotsPage::rename | ( | ) | [virtual] |
| void KJotsPage::generateXml | ( | QDomDocument & | doc, | |
| QDomElement & | parent | |||
| ) | [virtual] |
Creates XML code and performs necessary tasks to save file. This function should ONLY be called when saving the file.
Reimplemented from KJotsEntry.
Definition at line 682 of file kjotsentry.cpp.
| void KJotsPage::parseXml | ( | QDomElement & | me, | |
| bool | oldBook | |||
| ) | [virtual] |
Parses through XML code from a file.
Reimplemented from KJotsEntry.
Definition at line 701 of file kjotsentry.cpp.
| void KJotsPage::generateHtml | ( | KJotsEntry * | top, | |
| bool | diskMode, | |||
| QTextCursor * | cursorOut | |||
| ) | [virtual] |
Returns HTML for the read-only "book" overview.
- Parameters:
-
top This tells us that we are the toplevel. diskMode Files saved to disk have a slightly different format.
Implements KJotsEntry.
Definition at line 744 of file kjotsentry.cpp.
| QString KJotsPage::generateText | ( | void | ) | [virtual] |
Returns Text when saving to a file.
- Parameters:
-
top This is a hint to specify if this book is the "starting point" or not.
Implements KJotsEntry.
Definition at line 807 of file kjotsentry.cpp.
| void KJotsPage::generatePrintData | ( | QTextCursor * | cursor | ) | [virtual] |
Inserts data for printing.
- Parameters:
-
cursor Cursor pointing to the printing document.
Implements KJotsEntry.
Definition at line 830 of file kjotsentry.cpp.
| KJotsPage * KJotsPage::createNewPage | ( | int | pageCount | ) | [static] |
Creates a brand new page.
Definition at line 634 of file kjotsentry.cpp.
| void KJotsPage::documentModified | ( | bool | modified | ) | [protected, slot] |
Handles changes in the document Document edits are allowed to set the dirty flag to true, but it is NOT allowed to set it to clean, because other things affect the dirty flag than just editing,.
Definition at line 655 of file kjotsentry.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference