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::SwDrawBase ( SwWrtShell pSh,
SwEditWin pWin,
SwView pView 
)

Definition at line 44 of file drawbase.cxx.

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

◆ ~SwDrawBase()

SwDrawBase::~SwDrawBase ( )
virtual

Member Function Documentation

◆ Activate()

void SwDrawBase::Activate ( const sal_uInt16  nSlotId)
virtual

◆ BreakCreate()

void SwDrawBase::BreakCreate ( )

◆ CreateDefaultObject()

void SwDrawBase::CreateDefaultObject ( )
virtual

◆ CreateDefaultObjectAtPosWithSize()

void SwDrawBase::CreateDefaultObjectAtPosWithSize ( Point  aPos,
Size  aSize 
)
virtual

◆ Deactivate()

void SwDrawBase::Deactivate ( )
virtual

◆ doConstructOrthogonal()

bool SwDrawBase::doConstructOrthogonal ( ) const
virtual

Reimplemented in ConstCustomShape.

Definition at line 571 of file drawbase.cxx.

References m_nSlotId.

Referenced by MouseButtonDown(), and MouseMove().

◆ EnterSelectMode()

void SwDrawBase::EnterSelectMode ( const MouseEvent rMEvt)

◆ GetDefaultCenterPos()

Point SwDrawBase::GetDefaultCenterPos ( ) const
protected

◆ GetSlotId()

sal_uInt16 SwDrawBase::GetSlotId ( ) const
inline

Definition at line 60 of file drawbase.hxx.

References m_nSlotId.

Referenced by SwView::ExecDraw().

◆ IsCreateObj()

bool SwDrawBase::IsCreateObj ( ) const
inline

Definition at line 51 of file drawbase.hxx.

References m_bCreateObj.

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

◆ IsInsertForm()

bool SwDrawBase::IsInsertForm ( ) const
inline

Definition at line 50 of file drawbase.hxx.

References m_bInsForm.

Referenced by SwView::IsFormMode(), and SwEditWin::UpdatePointer().

◆ MouseButtonDown()

bool SwDrawBase::MouseButtonDown ( const MouseEvent rMEvt)
virtual

◆ MouseButtonUp()

bool SwDrawBase::MouseButtonUp ( const MouseEvent rMEvt)
virtual

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

Reimplemented in ConstArc, ConstPolygon, and ConstRectangle.

Definition at line 239 of file drawbase.cxx.

References SwRewriter::AddRule(), SfxRequest::AppendItem(), SwView::AutoCaption(), SwWrtShell::AutoUpdateFrame(), SwFEShell::BreakCreate(), CreateDefaultObjectAtPosWithSize(), SfxRequest::Done(), SdrCreateView::EndAction(), SwFEShell::EndCreate(), SdrDragView::EndInsObjPoint(), SwFEShell::EndMark(), SdrMarkView::EndMarkPoints(), SwEditShell::EndUndo(), EnterSelectMode(), FN_INSERT_FRAME, FRAME_CAP, SfxItemSet::Get(), SwFEShell::GetAnchorObjDiff(), SfxViewFrame::GetBindings(), SwViewShell::GetDrawView(), SwFormatCol::GetGutterWidth(), SwFEShell::GetObjSize(), SfxShell::GetPool(), MouseEvent::GetPosPixel(), SfxBindings::GetRecorder(), SwFEShell::GetSelectedFrameFormat(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwFormatCol::GetWishWidth(), SdrMarkView::HasMarkablePoints(), SwFormatCol::Init(), INSERT, SfxBindings::Invalidate(), SdrCreateView::IsAction(), SwFormat::IsAutoUpdateOnDirectFormat(), IsCreateObj(), SwFEShell::IsDrawCreate(), 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(), SfxItemSet::Put(), RES_COL(), SwFEShell::SelectObj(), SetDrawPointer(), SwFEShell::SetFlyFrameAttr(), SwEditShell::StartUndo(), SW_ADD_SELECT, SwResId(), UndoArg1, and SdrMarkView::UnmarkAllPoints().

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

◆ MouseMove()

bool SwDrawBase::MouseMove ( const MouseEvent rMEvt)

◆ SetDrawPointer()

void SwDrawBase::SetDrawPointer ( )

◆ SetSlotId()

void SwDrawBase::SetSlotId ( sal_uInt16  nSlot)
inline

Definition at line 59 of file drawbase.hxx.

References m_nSlotId.

Referenced by Activate().

Member Data Documentation

◆ m_aStartPos

Point SwDrawBase::m_aStartPos
protected

Definition at line 38 of file drawbase.hxx.

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

◆ m_bCreateObj

bool SwDrawBase::m_bCreateObj
protected

Definition at line 40 of file drawbase.hxx.

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

◆ m_bInsForm

bool SwDrawBase::m_bInsForm
protected

Definition at line 41 of file drawbase.hxx.

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

◆ m_nSlotId

sal_uInt16 SwDrawBase::m_nSlotId
protected

◆ m_pSh

SwWrtShell* SwDrawBase::m_pSh
protected

◆ m_pView

SwView* SwDrawBase::m_pView
protected

◆ m_pWin

VclPtr<SwEditWin> SwDrawBase::m_pWin
protected

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