• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kjots

KJotsPage Class Reference

#include <kjotsentry.h>

Inheritance diagram for KJotsPage:

Inheritance graph
[legend]

List of all members.


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]

Displays rename dialog.

Implements KJotsEntry.

Definition at line 667 of file kjotsentry.cpp.

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.
This functions output moderately formatted text when the user chooses to save as a text file.

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.
This inserts data into a document for printing. There is data that is only used when printing, like the title bar across the top.

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:
  • kjotsentry.h
  • kjotsentry.cpp

kjots

Skip menu "kjots"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal