diff --git a/conf/dlggeneral.h b/conf/dlggeneral.h index 42c569513..e1b42c1b9 100644 --- a/conf/dlggeneral.h +++ b/conf/dlggeneral.h @@ -12,7 +12,7 @@ #include -#include "core/global.h" +#include "part.h" class Ui_DlgGeneralBase; diff --git a/conf/preferencesdialog.h b/conf/preferencesdialog.h index d01c95d6b..334048751 100644 --- a/conf/preferencesdialog.h +++ b/conf/preferencesdialog.h @@ -11,8 +11,8 @@ #define _PREFERENCESDIALOG_H #include +#include "part.h" #include "settings.h" -#include "core/global.h" class QWidget; class KConfigSkeleton; diff --git a/core/global.h b/core/global.h index 96b21fb2e..24cef77b4 100644 --- a/core/global.h +++ b/core/global.h @@ -78,20 +78,6 @@ enum ScriptType 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 diff --git a/part.h b/part.h index 88460ad13..ecc14acb2 100644 --- a/part.h +++ b/part.h @@ -66,6 +66,20 @@ namespace Okular class BrowserExtension; 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 * application.