2021-05-24 07:25:56 +00:00
/*
SPDX - FileCopyrightText : 2007 Tobias Koenig < tokoe @ kde . org >
SPDX - License - Identifier : GPL - 2.0 - or - later
*/
2007-01-02 22:37:55 +00:00
# ifndef OKULAR_GLOBAL_H
# define OKULAR_GLOBAL_H
2023-12-13 09:12:31 +00:00
# include <QFlags>
2018-08-31 09:23:45 +00:00
# include <QGlobalStatic>
2007-01-02 22:37:55 +00:00
2019-02-07 06:13:11 +00:00
/**
* \ namespace Okular global . h
*
* \ brief The documentation to the global Okular namespace .
*/
2007-01-02 22:37:55 +00:00
namespace Okular
{
/**
* Describes the DRM capabilities .
*/
enum Permission {
AllowModify = 1 , ///< Allows to modify the document
AllowCopy = 2 , ///< Allows to copy the document
AllowPrint = 4 , ///< Allows to print the document
2007-03-17 14:14:55 +00:00
AllowNotes = 8 , ///< Allows to add annotations to the document
AllowFillForms = 16 ///< Allows to fill the forms in the document
2007-01-02 22:37:55 +00:00
} ;
Q_DECLARE_FLAGS ( Permissions , Permission )
/**
* Describes the direction of searching .
*/
enum SearchDirection {
FromTop , ///< Searching from top of the page, next result is to be found, there was no earlier search result.
FromBottom , ///< Searching from bottom of the page, next result is to be found, there was no earlier search result.
NextResult , ///< Searching for the next result on the page, earlier result should be located so we search from the last result not from the beginning of the page.
PreviousResult ///< Searching for the previous result on the page, earlier result should be located so we search from the last result not from the beginning of the page.
} ;
2007-01-05 17:09:47 +00:00
/**
* A rotation .
*/
enum Rotation {
Rotation0 = 0 , ///< Not rotated.
Rotation90 = 1 , ///< Rotated 90 degrees clockwise.
Rotation180 = 2 , ///< Rotated 180 degrees clockwise.
Rotation270 = 3 ///< Rotated 2700 degrees clockwise.
} ;
2007-01-31 21:10:00 +00:00
/**
* Describes the type of generation of objects
*/
enum GenerationType {
Synchronous , ///< Will create the object in a synchronous way
Asynchronous ///< Will create the object in an asynchronous way
} ;
2007-09-05 14:57:15 +00:00
/**
* The side ( s ) to be considered when merging areas .
*/
enum MergeSide {
MergeRight = 0 , ///< Merge only if the right side of the first area intersect.
MergeBottom = 1 , ///< Merge only if the bottom side of the first area intersect.
MergeLeft = 2 , ///< Merge only if the left side of the first area intersect.
MergeTop = 3 , ///< Merge only if the top side of the first area intersect.
MergeAll = 4 ///< Merge if the areas intersects, no matter which side(s).
} ;
2008-04-13 22:30:27 +00:00
/**
* Describes the possible script types .
*/
enum ScriptType {
JavaScript = 0 ///< JavaScript code
} ;
2007-01-02 23:57:21 +00:00
}
2007-01-02 22:37:55 +00:00
# endif