• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • Okular
  • SaveInterface
Public Types | Public Member Functions | List of all members
Okular::SaveInterface Class Referenceabstract

#include <saveinterface.h>

Public Types

enum  SaveOption { NoOption = 0, SaveChanges = 1 }
 

Public Member Functions

virtual ~SaveInterface ()
 
virtual AnnotationProxy * annotationProxy () const =0
 
virtual bool save (const QString &fileName, SaveOptions options, QString *errorText)=0
 
virtual bool supportsOption (SaveOption option) const =0
 

Detailed Description

Abstract interface for saving.

This interface defines a way to save (or help saving) the document opened by the Generator.

How to use it in a custom Generator:

class MyGenerator : public Okular::Generator, public Okular::SaveInterface
{
Q_OBJECT
Q_INTERFACES( Okular::SaveInterface )
...
};

and - of course - implementing its methods.

Definition at line 39 of file saveinterface.h.

Member Enumeration Documentation

enum Okular::SaveInterface::SaveOption

The possible options for the saving.

Enumerator
NoOption 
SaveChanges 

The possibility to save with the current changes to the document.

Definition at line 45 of file saveinterface.h.

Constructor & Destructor Documentation

virtual Okular::SaveInterface::~SaveInterface ( )
inlinevirtual

Destroys the save interface.

Definition at line 55 of file saveinterface.h.

Member Function Documentation

virtual AnnotationProxy* Okular::SaveInterface::annotationProxy ( ) const
pure virtual

Returns the annotation proxy.

Generators can return NULL if native annotations are not supported.

Note
Returning NULL is equivalent to returning an AnnotationProxy that doesn't support any capability.
Since
0.15 (KDE 4.9)
virtual bool Okular::SaveInterface::save ( const QString &  fileName,
SaveOptions  options,
QString *  errorText 
)
pure virtual

Save to the specified fileName with the specified options.

virtual bool Okular::SaveInterface::supportsOption ( SaveOption  option) const
pure virtual

Query for the supported saving options.

Note
NoOption is never queried

The documentation for this class was generated from the following file:
  • saveinterface.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

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

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal