LibreOffice Module sw (master) 1
|
#include <concustomshape.hxx>
Public Member Functions | |
ConstCustomShape (SwWrtShell *pSh, SwEditWin *pWin, SwView *pView, SfxRequest const &rReq) | |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual void | Activate (const sal_uInt16 nSlotId) override |
const OUString & | GetShapeType () const |
virtual void | CreateDefaultObject () override |
virtual void | CreateDefaultObjectAtPosWithSize (Point aPos, Size aSize) override |
virtual bool | doConstructOrthogonal () const override |
Public Member Functions inherited from SwDrawBase | |
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 |
Static Public Member Functions | |
static OUString | GetShapeTypeFromRequest (SfxRequest const &rReq) |
Private Member Functions | |
void | SetAttributes (SdrObject *pObj) |
Private Attributes | |
OUString | m_aCustomShape |
Additional Inherited Members | |
Protected Member Functions inherited from SwDrawBase | |
Point | GetDefaultCenterPos () const |
Protected Attributes inherited from SwDrawBase | |
SwView * | m_pView |
SwWrtShell * | m_pSh |
VclPtr< SwEditWin > | m_pWin |
Point | m_aStartPos |
sal_uInt16 | m_nSlotId |
bool | m_bCreateObj:1 |
bool | m_bInsForm:1 |
Definition at line 30 of file concustomshape.hxx.
ConstCustomShape::ConstCustomShape | ( | SwWrtShell * | pSh, |
SwEditWin * | pWin, | ||
SwView * | pView, | ||
SfxRequest const & | rReq | ||
) |
Definition at line 41 of file concustomshape.cxx.
References GetShapeTypeFromRequest(), and m_aCustomShape.
|
overridevirtual |
Reimplemented from SwDrawBase.
Definition at line 90 of file concustomshape.cxx.
References SwDrawBase::Activate(), and SwDrawBase::m_pWin.
|
overridevirtual |
Reimplemented from SwDrawBase.
Definition at line 158 of file concustomshape.cxx.
References SwDrawBase::CreateDefaultObject(), SwViewShell::GetDrawView(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SwDrawBase::m_pSh, and SetAttributes().
Reimplemented from SwDrawBase.
Definition at line 174 of file concustomshape.cxx.
References SwDrawBase::CreateDefaultObjectAtPosWithSize(), SwViewShell::GetDrawView(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SwDrawBase::m_pSh, and SetAttributes().
|
overridevirtual |
Reimplemented from SwDrawBase.
Definition at line 191 of file concustomshape.cxx.
References SdrObjCustomShape::doConstructOrthogonal(), and m_aCustomShape.
const OUString & ConstCustomShape::GetShapeType | ( | ) | const |
Definition at line 47 of file concustomshape.cxx.
References m_aCustomShape.
Referenced by SwView::ExecDraw().
|
static |
Definition at line 52 of file concustomshape.cxx.
References SfxItemSet::Get(), SfxRequest::GetArgs(), SfxRequest::GetSlot(), and CntUnencodedStringItem::GetValue().
Referenced by ConstCustomShape(), and SwView::ExecDraw().
|
overridevirtual |
Reimplemented from SwDrawBase.
Definition at line 64 of file concustomshape.cxx.
References SdrCreateView::GetCreateObj(), SwViewShell::GetDrawView(), SfxShell::GetPool(), SwDrawBase::m_pSh, SwDrawBase::m_pView, SwDrawBase::MouseButtonDown(), SfxItemSet::Put(), SetAttributes(), and SdrObject::SetMergedItemSet().
|
private |
Definition at line 99 of file concustomshape.cxx.
References aObjList, tools::Rectangle::Center(), EE_ITEMS_END(), EE_ITEMS_START(), equalsIgnoreAsciiCase(), GalleryExplorer::FillObjListTitle(), SfxItemPool::FreezeIdRanges(), GALLERY_THEME_POWERPOINT, SdrModel::GetItemPool(), SdrObject::GetMergedItemSet(), SdrObjList::GetObj(), SdrModel::GetPage(), SdrObject::GetRotateAngle(), SdrObject::getSdrModelFromSdrObject(), GalleryExplorer::GetSdrObj(), GalleryExplorer::GetSdrObjCount(), SdrObject::GetSnapRect(), i, m_aCustomShape, makeSdrTextAutoGrowHeightItem(), SdrObject::NbcRotate(), RES_PARATR_ADJUST(), SDRATTR_CUSTOMSHAPE_LAST(), SDRATTR_GRAF_FIRST(), SDRATTR_MISC_FIRST(), SDRATTR_MISC_LAST(), SDRATTR_SHADOW_LAST(), SDRATTR_START(), SDRATTR_TEXTDIRECTION(), SDRTEXTHORZADJUST_BLOCK, SDRTEXTVERTADJUST_CENTER, SdrObject::SetMergedItem(), and SdrObject::SetMergedItemSet().
Referenced by CreateDefaultObject(), CreateDefaultObjectAtPosWithSize(), and MouseButtonDown().
|
private |
Definition at line 33 of file concustomshape.hxx.
Referenced by ConstCustomShape(), doConstructOrthogonal(), GetShapeType(), and SetAttributes().