1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 #ifndef _FRAMECONTROL_HXX
10 #define _FRAMECONTROL_HXX
16 /** Class representing a control linked to a SwFrm.
20 SwEditWin
* m_pEditWin
;
24 SwFrameControl( SwEditWin
* pEditWin
, const SwFrm
* pFrm
) :
25 m_pEditWin( pEditWin
), m_pFrm( pFrm
) {};
26 virtual ~SwFrameControl( ) {};
28 SwFrameControl( const SwFrameControl
& rCopy
) :
29 m_pEditWin( rCopy
.m_pEditWin
),
30 m_pFrm( rCopy
.m_pFrm
)
34 const SwFrameControl
& operator=( const SwFrameControl
& rCopy
)
36 m_pEditWin
= rCopy
.m_pEditWin
;
37 m_pFrm
= rCopy
.m_pFrm
;
41 const SwFrm
* GetFrame( ) { return m_pFrm
; }
42 SwEditWin
* GetEditWin( ) { return m_pEditWin
; }
44 virtual void SetReadonly( bool bReadonly
) = 0;
45 virtual void ShowAll( bool bShow
) = 0;
47 /// Returns true if the point is inside the control.
48 virtual bool Contains( const Point
&rDocPt
) const = 0;
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */