diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-30 16:58:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-30 17:22:37 +0100 |
commit | e8fb86134c6f6052ab6748698039760827fbcd37 (patch) | |
tree | c5d2cfe5aab6685ab4464dc46c6f29a0aa62bf7a /include/vcl/dialog.hxx | |
parent | 0d5cc8ce2976b8a69cc4ef1091b0dfe72c15fba2 (diff) |
move layout from dialog to systemwindow
*distant sounds of hammering in basement*
so we can get Floating Windows layout aware
as well without duplicate of dialog layout logic
Change-Id: I063375f2f7d4e5c3bfbfedf55649078d4dbe4139
Diffstat (limited to 'include/vcl/dialog.hxx')
-rw-r--r-- | include/vcl/dialog.hxx | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index 361c860ff0b0..94ea7d66e680 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -22,7 +22,6 @@ #include <tools/solar.h> #include <vcl/dllapi.h> -#include <vcl/builder.hxx> #include <vcl/syswin.hxx> #include <vcl/timer.hxx> @@ -36,11 +35,8 @@ struct DialogImpl; class VclBox; class VclButtonBox; -class VclContainer; -class VCL_DLLPUBLIC Dialog - : public SystemWindow - , public VclBuilderContainer +class VCL_DLLPUBLIC Dialog : public SystemWindow { private: Window* mpDialogParent; @@ -52,8 +48,7 @@ private: bool mbInClose; bool mbModalMode; bool mbIsDefferedInit; - bool mbIsCalculatingInitialLayoutSize; - Timer maLayoutTimer; + VclButtonBox* mpActionArea; VclBox* mpContentArea; @@ -65,16 +60,13 @@ private: SAL_DLLPRIVATE Dialog & operator= (const Dialog &); DECL_DLLPRIVATE_LINK( ImplAsyncCloseHdl, void* ); - DECL_DLLPRIVATE_LINK( ImplHandleLayoutTimerHdl, void* ); protected: using Window::ImplInit; SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle ); - SAL_DLLPRIVATE void setPosSizeOnContainee(Size aSize, VclContainer &rBox); public: SAL_DLLPRIVATE bool IsInClose() const { return mbInClose; } - SAL_DLLPRIVATE bool hasPendingLayout() const { return maLayoutTimer.IsActive(); } SAL_DLLPRIVATE void doDeferredInit(bool bResizable); SAL_DLLPRIVATE bool isDeferredInit() const { return mbIsDefferedInit; } @@ -82,6 +74,7 @@ protected: explicit Dialog( WindowType nType ); explicit Dialog( Window* pParent, const OString& rID, const OUString& rUIXMLDescription, WindowType nType ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ) SAL_OVERRIDE; + virtual void settingOptimalLayoutSize(VclBox *pBox) SAL_OVERRIDE; protected: friend class VclBuilder; @@ -97,11 +90,6 @@ public: virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE; virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; - virtual Size GetOptimalSize() const SAL_OVERRIDE; - virtual void Resize() SAL_OVERRIDE; - bool isLayoutEnabled() const; - void setOptimalLayoutSize(); - bool isCalculatingInitialLayoutSize() const { return mbIsCalculatingInitialLayoutSize; } virtual void queue_resize(StateChangedType eReason = STATE_CHANGE_LAYOUT) SAL_OVERRIDE; virtual bool set_property(const OString &rKey, const OString &rValue) SAL_OVERRIDE; VclButtonBox* get_action_area() { return mpActionArea;} @@ -112,10 +100,6 @@ public: virtual short Execute(); bool IsInExecute() const { return mbInExecute; } - virtual void SetText( const OUString& rStr ) SAL_OVERRIDE; - virtual OUString GetText() const SAL_OVERRIDE; - - // Dialog::Execute replacement API public: // Link impl: DECL_LINK( MyEndDialogHdl, Dialog* ); <= param is dialog just ended |