From 661921bca3d0cc6e8241462d0b9fee86f16c7c95 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 5 Sep 2003 15:06:13 +0000 Subject: [PATCH] Ensure that the header files can be compiled stand-alone. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7679 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt2/ChangeLog | 8 ++++++++ src/frontends/qt2/QCitation.h | 1 + src/frontends/qt2/QGraphics.h | 1 + src/frontends/qt2/QPrefs.h | 2 +- src/frontends/qt2/qscreen.C | 6 ++++++ src/frontends/qt2/qscreen.h | 3 ++- 6 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 617ec8c180..b9c6d9a763 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,11 @@ +2003-09-05 Angus Leeming + + * QCitation.h: + * QGraphics.h: + * QPrefs.h: + * qscreen.[Ch]: + ensure that the header files can be compiled stand-alone. + 2003-09-05 Angus Leeming * *.C: strip out redundant #includes. (352 in total.) diff --git a/src/frontends/qt2/QCitation.h b/src/frontends/qt2/QCitation.h index 83256918d6..4bc13b8448 100644 --- a/src/frontends/qt2/QCitation.h +++ b/src/frontends/qt2/QCitation.h @@ -15,6 +15,7 @@ #include "QDialogView.h" +#include class QListBox; diff --git a/src/frontends/qt2/QGraphics.h b/src/frontends/qt2/QGraphics.h index 883290fe6b..0f9b65c4c0 100644 --- a/src/frontends/qt2/QGraphics.h +++ b/src/frontends/qt2/QGraphics.h @@ -15,6 +15,7 @@ #include "QDialogView.h" +#include class ControlGraphics; diff --git a/src/frontends/qt2/QPrefs.h b/src/frontends/qt2/QPrefs.h index 8835acc473..3559ac2e47 100644 --- a/src/frontends/qt2/QPrefs.h +++ b/src/frontends/qt2/QPrefs.h @@ -15,9 +15,9 @@ #include "converter.h" #include "format.h" +#include "ControlPrefs.h" #include "Qt2Base.h" -#include "ControlPrefs.h" #include diff --git a/src/frontends/qt2/qscreen.C b/src/frontends/qt2/qscreen.C index 4efd6dcbaa..d3489afec6 100644 --- a/src/frontends/qt2/qscreen.C +++ b/src/frontends/qt2/qscreen.C @@ -45,6 +45,12 @@ QScreen::~QScreen() } +WorkArea & QScreen::workarea() const +{ + return owner_; +} + + void QScreen::repaint() { QWidget * content = owner_.getContent(); diff --git a/src/frontends/qt2/qscreen.h b/src/frontends/qt2/qscreen.h index d0cd247ce8..1017ba0aa5 100644 --- a/src/frontends/qt2/qscreen.h +++ b/src/frontends/qt2/qscreen.h @@ -17,6 +17,7 @@ #include #include +class QWorkArea; class WorkArea; @@ -31,7 +32,7 @@ public: protected: /// get the work area - virtual WorkArea & workarea() const { return owner_; } + virtual WorkArea & workarea() const; /// repaint the whole content immediately void repaint(); -- 2.39.2