KStarsDocument

Search for usage in LXR

#include <kstarsdocument.h>

Inheritance diagram for KStarsDocument:

Public Member Functions

 KStarsDocument ()
 
void clearContent ()
 
void print (QPrinter *printer)
 
bool writeOdt (const QString &fname)
 
void writePsPdf (const QString &fname)
 

Protected Attributes

std::unique_ptr< QTextDocumentm_Document
 

Detailed Description

Base class for KStars documents.

KStarsDocument is a base class for all KStars documents: finder charts, logging forms etc.

Author
Rafał Kułaga

Definition at line 25 of file kstarsdocument.h.

Constructor & Destructor Documentation

◆ KStarsDocument()

KStarsDocument::KStarsDocument ( )

Constructor.

Definition at line 13 of file kstarsdocument.cpp.

Member Function Documentation

◆ clearContent()

void KStarsDocument::clearContent ( )

Clears contents of the document.

Definition at line 18 of file kstarsdocument.cpp.

◆ print()

void KStarsDocument::print ( QPrinter * printer)

Print contents of the document.

Parameters
printerPrinter on which document will be printed.

Definition at line 23 of file kstarsdocument.cpp.

◆ writeOdt()

bool KStarsDocument::writeOdt ( const QString & fname)

Write contents of the document to Open Document Text file.

Parameters
fnameFile name.
Returns
Returns true if write is successful.

Definition at line 28 of file kstarsdocument.cpp.

◆ writePsPdf()

void KStarsDocument::writePsPdf ( const QString & fname)

Write contents of the document to the Postscript/PDF file.

Parameters
fnameFile name.

Definition at line 35 of file kstarsdocument.cpp.

Member Data Documentation

◆ m_Document

std::unique_ptr<QTextDocument> KStarsDocument::m_Document
protected

Definition at line 54 of file kstarsdocument.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.