Okular::GotoAction

Okular::GotoAction Class Reference

#include <action.h>

Inheritance diagram for Okular::GotoAction:

Public Member Functions

 GotoAction (const QString &fileName, const DocumentViewport &viewport)
 
 GotoAction (const QString &fileName, const QString &namedDestination)
 
 ~GotoAction () override
 
QString actionTip () const override
 
ActionType actionType () const override
 
QString destinationName () const
 
DocumentViewport destViewport () const
 
QString fileName () const
 
bool isExternal () const
 
- Public Member Functions inherited from Okular::Action
virtual ~Action ()
 
QVariant nativeId () const
 
QVector< Action * > nextActions () const
 
void setNativeId (const QVariant &id)
 
void setNextActions (const QVector< Action * > &actions)
 

Additional Inherited Members

- Public Types inherited from Okular::Action
enum  ActionType {
  Goto, Execute, Browse, DocAction,
  Sound, Movie, Script, Rendition,
  BackendOpaque
}
 

Detailed Description

The Goto action changes the viewport to another page or loads an external document.

Definition at line 130 of file action.h.

Constructor & Destructor Documentation

GotoAction::GotoAction ( const QString fileName,
const DocumentViewport viewport 
)

Creates a new goto action.

fileName The name of an external file that shall be loaded. viewport The target viewport information of the current document.

Definition at line 106 of file action.cpp.

GotoAction::GotoAction ( const QString fileName,
const QString namedDestination 
)

Creates a new goto action.

fileName The name of an external file that shall be loaded. namedDestination The target named destination for the target document.

Since
0.9 (KDE 4.3)

Definition at line 111 of file action.cpp.

GotoAction::~GotoAction ( )
override

Destroys the goto action.

Definition at line 116 of file action.cpp.

Member Function Documentation

QString GotoAction::actionTip ( ) const
overridevirtual

Returns the action tip.

Reimplemented from Okular::Action.

Definition at line 125 of file action.cpp.

Action::ActionType GotoAction::actionType ( ) const
overridevirtual

Returns the action type.

Implements Okular::Action.

Definition at line 120 of file action.cpp.

QString GotoAction::destinationName ( ) const

Returns the document named destination the goto action points to.

Since
0.9 (KDE 4.3)

Definition at line 149 of file action.cpp.

DocumentViewport GotoAction::destViewport ( ) const

Returns the document viewport the goto action points to.

Definition at line 143 of file action.cpp.

QString GotoAction::fileName ( ) const

Returns the filename of the external document.

Definition at line 137 of file action.cpp.

bool GotoAction::isExternal ( ) const

Returns whether the goto action points to an external document.

Definition at line 131 of file action.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Dec 3 2020 22:36:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.