mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 13:11:41 +00:00
86a1fd3b69
* add full API docs * renamed getMetaData -> metaData * removed supportsRotation in Document and Generator * moved Permission and SearchDirection enums into separated header core/global.h svn path=/trunk/playground/graphics/okular/; revision=619183
43 lines
1.7 KiB
C++
43 lines
1.7 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2007 by Tobias Koenig <tokoe@kde.org> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#ifndef OKULAR_GLOBAL_H
|
|
#define OKULAR_GLOBAL_H
|
|
|
|
#include <QtCore/QGlobalStatic>
|
|
|
|
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
|
|
AllowNotes = 8 ///< Allows to add annotations to the document
|
|
};
|
|
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.
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|