• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kjots

KJotsPage Class Reference

#include <kjotsentry.h>

Inheritance diagram for KJotsPage:
Inheritance graph
[legend]

List of all members.

Public Member Functions

QTextDocument * body (void)
void generateHtml (KJotsEntry *, bool, QTextCursor *)
void generatePrintData (QTextCursor *)
QString generateText (void)
void generateXml (QDomDocument &, QDomElement &)
QTextCursor & getCursor (void)
 KJotsPage ()
void parseXml (QDomElement &, bool)
void rename ()
void setCursor (const QTextCursor &c)
 ~KJotsPage ()

Static Public Member Functions

static KJotsPage * createNewPage (int)

Protected Slots

void documentModified (bool)

Detailed Description

Definition at line 128 of file kjotsentry.h.


Constructor & Destructor Documentation

KJotsPage::KJotsPage (  ) 

Definition at line 664 of file kjotsentry.cpp.

KJotsPage::~KJotsPage (  ) 

Definition at line 679 of file kjotsentry.cpp.


Member Function Documentation

QTextDocument* KJotsPage::body ( void   )  [inline]

Definition at line 136 of file kjotsentry.h.

KJotsPage * KJotsPage::createNewPage ( int  pageCount  )  [static]

Creates a brand new page.

Definition at line 686 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 707 of file kjotsentry.cpp.

void KJotsPage::generateHtml ( KJotsEntry *  top,
bool  diskMode,
QTextCursor *  cursorOut 
)

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.

Definition at line 798 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 884 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 861 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 734 of file kjotsentry.cpp.

QTextCursor& KJotsPage::getCursor ( void   )  [inline]

Definition at line 138 of file kjotsentry.h.

void KJotsPage::parseXml ( QDomElement &  me,
bool  oldBook 
) [virtual]

Parses through XML code from a file.

Reimplemented from KJotsEntry.

Definition at line 753 of file kjotsentry.cpp.

void KJotsPage::rename (  )  [virtual]

Displays rename dialog.

Implements KJotsEntry.

Definition at line 719 of file kjotsentry.cpp.

void KJotsPage::setCursor ( const QTextCursor &  c  )  [inline]

Definition at line 137 of file kjotsentry.h.


The documentation for this class was generated from the following files:
  • kjotsentry.h
  • kjotsentry.cpp

kjots

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.9-20090814
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