Commit d7e116f2 authored by Michel Ludwig's avatar Michel Ludwig
Browse files

Move the definition of the 'EmbedMode' enum to 'part.h'

parent 00b01aa9
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include <qwidget.h> #include <qwidget.h>
#include "core/global.h" #include "part.h"
class Ui_DlgGeneralBase; class Ui_DlgGeneralBase;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#define _PREFERENCESDIALOG_H #define _PREFERENCESDIALOG_H
#include <kconfigdialog.h> #include <kconfigdialog.h>
#include "part.h"
#include "settings.h" #include "settings.h"
#include "core/global.h"
class QWidget; class QWidget;
class KConfigSkeleton; class KConfigSkeleton;
......
...@@ -78,20 +78,6 @@ enum ScriptType ...@@ -78,20 +78,6 @@ enum ScriptType
JavaScript = 0 ///< JavaScript code JavaScript = 0 ///< JavaScript code
}; };
/**
* Describes the possible embedding modes of the part
*
* @since 0.14 (KDE 4.8)
*/
enum EmbedMode
{
UnknownEmbedMode,
NativeShellMode, // embedded in the native Okular' shell
PrintPreviewMode, // embedded to show the print preview of a document
KHTMLPartMode, // embedded in KHTML
ViewerWidgetMode, // the part acts as a widget that can display all kinds of documents
};
} }
#endif #endif
...@@ -66,6 +66,20 @@ namespace Okular ...@@ -66,6 +66,20 @@ namespace Okular
class BrowserExtension; class BrowserExtension;
class ExportFormat; class ExportFormat;
/**
* Describes the possible embedding modes of the part
*
* @since 0.14 (KDE 4.8)
*/
enum EmbedMode
{
UnknownEmbedMode,
NativeShellMode, // embedded in the native Okular' shell
PrintPreviewMode, // embedded to show the print preview of a document
KHTMLPartMode, // embedded in KHTML
ViewerWidgetMode, // the part acts as a widget that can display all kinds of documents
};
/** /**
* This is a "Part". It that does all the real work in a KPart * This is a "Part". It that does all the real work in a KPart
* application. * application.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment