From 827c46e7d75000cb03b0ce21759f9d0825f0c096 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Sep 2014 11:20:40 +0200 Subject: fdo#82577: Handle Window Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a --- include/formula/formula.hxx | 8 ++++---- include/formula/funcutl.hxx | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'include/formula') diff --git a/include/formula/formula.hxx b/include/formula/formula.hxx index 6aa3f4d4ed15..ed412c58ac64 100644 --- a/include/formula/formula.hxx +++ b/include/formula/formula.hxx @@ -50,7 +50,7 @@ class FORMULA_DLLPUBLIC FormulaModalDialog : public ModalDialog, public formul { friend class FormulaDlg_Impl; public: - FormulaModalDialog( Window* pParent + FormulaModalDialog( vcl::Window* pParent , bool _bSupportFunctionResult , bool _bSupportResult , bool _bSupportMatrix @@ -69,7 +69,7 @@ protected: ::std::pair RefInputStartBefore( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputDoneAfter( bool bForced = false ); - void SetFocusWin(Window *pWin,const OString& nUniqueId); + void SetFocusWin(vcl::Window *pWin,const OString& nUniqueId); void SetMeText(const OUString& _sText); void Update(); @@ -91,7 +91,7 @@ class FORMULA_DLLPUBLIC FormulaDlg: public: FormulaDlg( SfxBindings* pB , SfxChildWindow* pCW - , Window* pParent + , vcl::Window* pParent , bool _bSupportFunctionResult , bool _bSupportResult , bool _bSupportMatrix @@ -113,7 +113,7 @@ protected: ::std::pair RefInputStartBefore( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputStartAfter( RefEdit* pEdit, RefButton* pButton = NULL ); void RefInputDoneAfter( bool bForced = false ); - void SetFocusWin(Window *pWin,const OString& nUniqueId); + void SetFocusWin(vcl::Window *pWin,const OString& nUniqueId); void HighlightFunctionParas(const OUString& aFormula); void SetMeText(const OUString& _sText); diff --git a/include/formula/funcutl.hxx b/include/formula/funcutl.hxx index 5752cf078de8..097d73772bf5 100644 --- a/include/formula/funcutl.hxx +++ b/include/formula/funcutl.hxx @@ -34,7 +34,7 @@ class FORMULA_DLLPUBLIC RefEdit : public Edit private: Timer aTimer; IControlReferenceHandler* pAnyRefDlg; // parent dialog - Window* pLabelWidget; + vcl::Window* pLabelWidget; DECL_LINK( UpdateHdl, void* ); @@ -44,8 +44,8 @@ protected: virtual void LoseFocus() SAL_OVERRIDE; public: - RefEdit( Window* _pParent,IControlReferenceHandler* pParent, Window* pShrinkModeLabel, const ResId& rResId ); - RefEdit( Window* _pParent, Window* pShrinkModeLabel, WinBits nStyle = WB_BORDER ); + RefEdit( vcl::Window* _pParent,IControlReferenceHandler* pParent, vcl::Window* pShrinkModeLabel, const ResId& rResId ); + RefEdit( vcl::Window* _pParent, vcl::Window* pShrinkModeLabel, WinBits nStyle = WB_BORDER ); virtual ~RefEdit(); @@ -64,14 +64,14 @@ public: void StartUpdateData(); - void SetReferences( IControlReferenceHandler* pDlg, Window *pLabelWidget ); + void SetReferences( IControlReferenceHandler* pDlg, vcl::Window *pLabelWidget ); IControlReferenceHandler* GetRefDialog() { return pAnyRefDlg; } - Window* GetLabelWidgetForShrinkMode() + vcl::Window* GetLabelWidgetForShrinkMode() { return pLabelWidget; } @@ -95,7 +95,7 @@ protected: virtual void LoseFocus() SAL_OVERRIDE; public: - RefButton(Window* _pParent, WinBits nStyle = 0); + RefButton(vcl::Window* _pParent, WinBits nStyle = 0); void SetReferences( IControlReferenceHandler* pDlg, RefEdit* pEdit ); void SetStartImage(); void SetEndImage(); -- cgit