LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SwDrawBase Class Reference

#include <drawbase.hxx>

Inheritance diagram for SwDrawBase:
[legend]
Collaboration diagram for SwDrawBase:
[legend]

Public Member Functions

 SwDrawBase (SwWrtShell *pSh, SwEditWin *pWin, SwView *pView)
 
virtual ~SwDrawBase ()
 
void SetDrawPointer ()
 
void EnterSelectMode (const MouseEvent &rMEvt)
 
bool IsInsertForm () const
 
bool IsCreateObj () const
 
bool MouseMove (const MouseEvent &rMEvt)
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt)
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt)
 
void BreakCreate ()
 
void SetSlotId (sal_uInt16 nSlot)
 
sal_uInt16 GetSlotId () const
 
virtual void Activate (const sal_uInt16 nSlotId)
 
virtual void Deactivate ()
 
virtual void CreateDefaultObject ()
 
virtual void CreateDefaultObjectAtPosWithSize (Point aPos, Size aSize)
 
virtual bool doConstructOrthogonal () const
 

Protected Member Functions

Point GetDefaultCenterPos () const
 

Protected Attributes

SwViewm_pView
 
SwWrtShellm_pSh
 
VclPtr< SwEditWinm_pWin
 
Point m_aStartPos
 
sal_uInt16 m_nSlotId
 
bool m_bCreateObj:1
 
bool m_bInsForm:1
 

Detailed Description

Definition at line 32 of file drawbase.hxx.

Constructor & Destructor Documentation

SwDrawBase::SwDrawBase ( SwWrtShell pSh,
SwEditWin pWin,
SwView pView 
)

Definition at line 44 of file drawbase.cxx.

References false, SwViewShell::HasDrawView(), m_pSh, and SwViewShell::MakeDrawView().

SwDrawBase::~SwDrawBase ( )
virtual

Member Function Documentation

void SwDrawBase::Activate ( const sal_uInt16  nSlotId)
virtual
void SwDrawBase::BreakCreate ( )
void SwDrawBase::CreateDefaultObject ( )
virtual
void SwDrawBase::CreateDefaultObjectAtPosWithSize ( Point  aPos,
Size  aSize 
)
virtual
void SwDrawBase::Deactivate ( )
virtual
bool SwDrawBase::doConstructOrthogonal ( ) const
virtual

Reimplemented in ConstCustomShape.

Definition at line 567 of file drawbase.cxx.

References m_nSlotId.

Referenced by MouseButtonDown(), and MouseMove().

void SwDrawBase::EnterSelectMode ( const MouseEvent rMEvt)
Point SwDrawBase::GetDefaultCenterPos ( ) const
protected
sal_uInt16 SwDrawBase::GetSlotId ( ) const
inline

Definition at line 60 of file drawbase.hxx.

References m_nSlotId.

Referenced by SwView::ExecDraw().

bool SwDrawBase::IsCreateObj ( ) const
inline

Definition at line 51 of file drawbase.hxx.

References m_bCreateObj.

Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().

bool SwDrawBase::IsInsertForm ( ) const
inline

Definition at line 50 of file drawbase.hxx.

References m_bInsForm.

Referenced by SwView::IsFormMode().

bool SwDrawBase::MouseButtonDown ( const MouseEvent rMEvt)
virtual

Reimplemented in ConstCustomShape, ConstRectangle, ConstArc, and ConstFormControl.

Definition at line 62 of file drawbase.cxx.

References SdrDragView::BegDragObj(), SwFEShell::BeginCreate(), SwFEShell::BeginMark(), SdrDragView::BegInsObjPoint(), SdrMarkView::BegMarkPoints(), vcl::Window::CaptureMouse(), doConstructOrthogonal(), SwWrtShell::EnterSelFrameMode(), g_bNoInterrupt, SwEditWin::GetBezierMode(), SwViewShell::GetDrawView(), SdrHdl::GetKind(), MouseEvent::GetPosPixel(), SwEditWin::GetSdrDrawMode(), SdrMarkView::HasMarkablePoints(), SdrCreateView::IsAction(), IsCreateObj(), SwEditWin::IsDrawAction(), SwFEShell::IsDrawCreate(), MouseEvent::IsLeft(), MouseEvent::IsMod1(), MouseEvent::IsMod2(), SwFEShell::IsObjSelectable(), SwFEShell::IsObjSelected(), SdrMarkView::IsPointMarked(), SwWrtShell::IsSelFrameMode(), MouseEvent::IsShift(), SwViewShell::IsViewLocked(), SwViewShell::LockView(), LONG_MAX, m_aStartPos, m_pSh, m_pWin, SdrMarkView::MarkPoint(), SdrViewEvent::mpHdl, SdrView::PickAnything(), SdrMarkView::PickHandle(), vcl::Window::PixelToLogic(), Point, SwFEShell::SelectObj(), SdrSnapView::SetAngleSnapEnabled(), SdrCreateView::SetCreate1stPointAsCenter(), SwEditWin::SetDrawAction(), SetDrawPointer(), SdrSnapView::SetOrtho(), SdrDragView::SetResizeAtCenter(), SdrMarkView::UnmarkAllPoints(), and SdrMarkView::UnmarkPoint().

Referenced by SwEditWin::EnterDrawMode(), ConstFormControl::MouseButtonDown(), ConstArc::MouseButtonDown(), ConstRectangle::MouseButtonDown(), and ConstCustomShape::MouseButtonDown().

bool SwDrawBase::MouseButtonUp ( const MouseEvent rMEvt)
virtual

!!!!!!!!! Attention suicide !!!!!!!!!!! Everything should be renewed once

Reimplemented in ConstRectangle, ConstArc, and ConstPolygon.

Definition at line 239 of file drawbase.cxx.

References SwRewriter::AddRule(), SfxRequest::AppendItem(), SwView::AutoCaption(), SwWrtShell::AutoUpdateFrame(), SwFEShell::BreakCreate(), CreateDefaultObjectAtPosWithSize(), SdrCreateView::EndAction(), SwFEShell::EndCreate(), SdrDragView::EndInsObjPoint(), SwFEShell::EndMark(), SdrMarkView::EndMarkPoints(), SwEditShell::EndUndo(), EnterSelectMode(), FN_INSERT_FRAME, FRAME_CAP, SwFEShell::GetAnchorObjDiff(), SfxViewFrame::GetBindings(), SwViewShell::GetDrawView(), SwEditWin::GetFrameColCount(), SwFEShell::GetObjSize(), SfxShell::GetPool(), MouseEvent::GetPosPixel(), SfxBindings::GetRecorder(), SwEditWin::GetSdrDrawMode(), SwFEShell::GetSelectedFrameFormat(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SdrMarkView::HasMarkablePoints(), SwFormatCol::Init(), INSERT, SfxBindings::Invalidate(), SdrCreateView::IsAction(), SwFormat::IsAutoUpdateFormat(), IsCreateObj(), SwEditWin::IsDrawAction(), SwFEShell::IsDrawCreate(), SwEditWin::IsDrawSelMode(), SdrDragView::IsInsObjPoint(), MouseEvent::IsLeft(), SdrMarkView::IsMarkObj(), SdrMarkView::IsMarkPoints(), SwFEShell::IsObjSelectable(), SwFEShell::IsObjSelected(), MouseEvent::IsRight(), SwWrtShell::IsSelFrameMode(), MouseEvent::IsShift(), SwView::LeaveDrawCreate(), SwWrtShell::LeaveSelFrameMode(), LONG_MAX, m_aStartPos, m_pSh, m_pView, m_pWin, SwView::NoRotate(), vcl::Window::PixelToLogic(), Point, RES_COL(), SwFEShell::SelectObj(), SwEditWin::SetDrawAction(), SetDrawPointer(), SwFEShell::SetFlyFrameAttr(), SwEditShell::StartUndo(), SW_ADD_SELECT, SwResId(), UndoArg1, and SdrMarkView::UnmarkAllPoints().

Referenced by ConstPolygon::MouseButtonUp(), ConstArc::MouseButtonUp(), and ConstRectangle::MouseButtonUp().

bool SwDrawBase::MouseMove ( const MouseEvent rMEvt)
void SwDrawBase::SetDrawPointer ( )
void SwDrawBase::SetSlotId ( sal_uInt16  nSlot)
inline

Definition at line 59 of file drawbase.hxx.

Referenced by Activate().

Member Data Documentation

Point SwDrawBase::m_aStartPos
protected

Definition at line 38 of file drawbase.hxx.

Referenced by ConstFormControl::MouseButtonDown(), MouseButtonDown(), and MouseButtonUp().

bool SwDrawBase::m_bCreateObj
protected

Definition at line 40 of file drawbase.hxx.

Referenced by DrawSelection::DrawSelection(), and IsCreateObj().

bool SwDrawBase::m_bInsForm
protected

Definition at line 41 of file drawbase.hxx.

Referenced by ConstFormControl::ConstFormControl(), and IsInsertForm().

sal_uInt16 SwDrawBase::m_nSlotId
protected
SwWrtShell* SwDrawBase::m_pSh
protected
SwView* SwDrawBase::m_pView
protected
VclPtr<SwEditWin> SwDrawBase::m_pWin
protected

The documentation for this class was generated from the following files: