LibreOffice Module sd (master) 1
|
#include <fumorph.hxx>
Public Member Functions | |
virtual void | DoExecute (SfxRequest &rReq) override |
Public Member Functions inherited from sd::FuPoor | |
virtual void | DoExecute (SfxRequest &rReq) |
void | SetMouseButtonCode (sal_uInt16 nNew) |
sal_uInt16 | GetMouseButtonCode () const |
DrawDocShell * | GetDocSh () |
virtual void | DoCut () |
Cut object to clipboard. More... | |
virtual void | DoCopy () |
Copy object to clipboard. More... | |
virtual void | DoPaste () |
Paste object from clipboard. More... | |
virtual void | DoPasteUnformatted () |
Paste unformatted text from clipboard. More... | |
virtual bool | KeyInput (const KeyEvent &rKEvt) |
handle keyboard events More... | |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) |
virtual bool | Command (const CommandEvent &rCEvt) |
virtual bool | RequestHelp (const HelpEvent &rHEvt) |
virtual void | ReceiveRequest (SfxRequest &rReq) |
virtual void | Activate () |
activates the function More... | |
virtual void | Deactivate () |
deactivates the function More... | |
void | SetWindow (::sd::Window *pWin) |
virtual void | SelectionHasChanged () |
sal_uInt16 | GetSlotID () const |
void | StartDelayToScrollTimer () |
virtual rtl::Reference< SdrObject > | CreateDefaultObject (const sal_uInt16 nID, const ::tools::Rectangle &rRectangle) |
virtual bool | cancel () |
is called when the current function should be aborted. More... | |
virtual bool | doConstructOrthogonal () const |
Decide if the object to be created should be created orthogonal. More... | |
Public Member Functions inherited from sd::SimpleReferenceComponent | |
SimpleReferenceComponent () | |
void | acquire () |
@ATTENTION The results are undefined if, for any individual instance of SimpleReferenceComponent, the total number of calls to acquire() exceeds the total number of calls to release() by a platform dependent amount (which, hopefully, is quite large). More... | |
void | release () |
void | Dispose () |
bool | isDisposed () const |
Static Public Member Functions | |
static rtl::Reference< FuPoor > | Create (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) |
Private Types | |
typedef ::std::vector< ::basegfx::B2DPolyPolygon > | B2DPolyPolygonList_impl |
Private Member Functions | |
FuMorph (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
void | ImpInsertPolygons (B2DPolyPolygonList_impl &rPolyPolyList3D, bool bAttributeFade, const SdrObject *pObj1, const SdrObject *pObj2) |
create group object with morphed polygons More... | |
Static Private Member Functions | |
::basegfx::B2DPolyPolygon | ImpCreateMorphedPolygon (const ::basegfx::B2DPolyPolygon &rPolyPolyStart, const ::basegfx::B2DPolyPolygon &rPolyPolyEnd, double fMorphingFactor) |
create single morphed PolyPolygon More... | |
static void | ImpMorphPolygons (const ::basegfx::B2DPolyPolygon &rPolyPoly1, const ::basegfx::B2DPolyPolygon &rPolyPoly2, const sal_uInt16 nSteps, B2DPolyPolygonList_impl &rPolyPolyList3D) |
create morphed PolyPolygons More... | |
static void | ImpAddPolys (::basegfx::B2DPolyPolygon &rSmaller, const ::basegfx::B2DPolyPolygon &rBigger) |
add to a point reduced polys until count is same More... | |
static void | ImpEqualizePolyPointCount (::basegfx::B2DPolygon &rSmall, const ::basegfx::B2DPolygon &rBig) |
make the point count of the polygons equal in adding points More... | |
static sal_uInt32 | ImpGetNearestIndex (const ::basegfx::B2DPolygon &rPoly, const ::basegfx::B2DPoint &rPos) |
Additional Inherited Members | |
Static Public Attributes inherited from sd::FuPoor | |
static const int | HITPIX = 2 |
static const int | HITLOG = 53 |
static const int | DRGLOG = 53 |
Protected Member Functions inherited from sd::FuPoor | |
FuPoor (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
virtual | ~FuPoor () override |
DECL_LINK (DelayHdl, Timer *, void) | |
void | SwitchLayer (sal_Int32 nOffset) |
Switch to another layer. More... | |
DECL_LINK (ScrollHdl, Timer *, void) | |
void | ForceScroll (const Point &aPixPos) |
scroll when approached the border of the window; is called by MouseMove More... | |
DECL_LINK (DragHdl, Timer *, void) | |
Protected Member Functions inherited from sd::SimpleReferenceComponent | |
virtual void | disposing () |
virtual | ~SimpleReferenceComponent () |
Static Protected Member Functions inherited from sd::FuPoor | |
static void | ImpForceQuadratic (::tools::Rectangle &rRect) |
Protected Attributes inherited from sd::FuPoor | |
::sd::View * | mpView |
ViewShell * | mpViewShell |
VclPtr< ::sd::Window > | mpWindow |
DrawDocShell * | mpDocSh |
SdDrawDocument * | mpDoc |
sal_uInt16 | nSlotId |
Timer | aScrollTimer |
for auto-scrolling More... | |
Timer | aDragTimer |
for Drag&Drop More... | |
bool | bIsInDragMode |
Point | aMDPos |
position of MouseButtonDown More... | |
bool | bNoScrollUntilInside |
Flag to prevent auto-scrolling until one drags from outside into the window. More... | |
Timer | aDelayToScrollTimer |
timer to delay scrolling (~ 1 sec) when dragging out of the window More... | |
bool | bScrollable |
bool | bDelayActive |
bool | bFirstMouseMove |
Definition at line 34 of file fumorph.hxx.
|
private |
Definition at line 43 of file fumorph.hxx.
|
private |
Definition at line 51 of file fumorph.cxx.
Referenced by Create().
|
static |
Definition at line 61 of file fumorph.cxx.
References FuMorph().
Referenced by sd::DrawViewShell::FuTemporary().
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 74 of file fumorph.cxx.
References a, basegfx::B2DPolyPolygon::append(), SdrEditView::BegUndo(), SdrObject::CloneSdrObject(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), SdAbstractDialogFactory::Create(), SdAbstractDialogFactory::CreateMorphDlg(), SdrEditView::EndUndo(), basegfx::B2DPolyPolygon::flip(), basegfx::B2DPolyPolygon::getB2DPolygon(), SdrMarkView::GetDescriptionOfMarkedObjects(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::getSdrModelFromSdrObject(), ImpAddPolys(), ImpEqualizePolyPointCount(), ImpInsertPolygons(), ImpMorphPolygons(), SdrObjListIter::IsMore(), sd::FuPoor::mpView, sd::FuPoor::mpWindow, SdrObjListIter::Next(), basegfx::B2DPolyPolygon::removeDoublePoints(), RET_OK, SdResId(), and basegfx::B2DPolyPolygon::setB2DPolygon().
|
staticprivate |
add to a point reduced polys until count is same
Definition at line 287 of file fumorph.cxx.
References a, basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), basegfx::B2DPolyPolygon::count(), and basegfx::B2DPolyPolygon::getB2DPolygon().
Referenced by DoExecute().
|
staticprivate |
create single morphed PolyPolygon
Definition at line 438 of file fumorph.cxx.
References a, basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), nCount, and basegfx::B2DPolygon::setClosed().
Referenced by ImpMorphPolygons().
|
staticprivate |
make the point count of the polygons equal in adding points
Definition at line 229 of file fumorph.cxx.
References a, basegfx::B2DPolygon::append(), basegfx::utils::createTranslateB2DHomMatrix(), basegfx::B2DPolygon::getB2DPoint(), sd::ImpGetExpandedPolygon(), ImpGetNearestIndex(), basegfx::B2DHomMatrix::scale(), basegfx::B2DPolygon::setB2DPoint(), basegfx::B2DPolygon::setClosed(), and basegfx::B2DHomMatrix::translate().
Referenced by DoExecute().
|
staticprivate |
Definition at line 262 of file fumorph.cxx.
References a, and basegfx::B2DVector::getLength().
Referenced by ImpEqualizePolyPointCount().
|
private |
create group object with morphed polygons
Definition at line 317 of file fumorph.cxx.
References SdrObject::CloneSdrObject(), SdrView::DeleteMarked(), EE_ITEMS_END(), EE_ITEMS_START(), SfxItemSet::Get(), Color::getBColor(), SdrObject::GetMergedItemSet(), SdrObject::GetObjectItemPool(), SdrObject::getSdrModelFromSdrObject(), SdrPaintView::getSdrModelFromSdrView(), SdrPaintView::GetSdrPageView(), i, SdrObjList::InsertObject(), SdrEditView::InsertObjectAtView(), basegfx::interpolate(), sd::FuPoor::mpView, nCount, SfxItemSet::Put(), SDRATTR_NOTPERSIST_FIRST(), SDRATTR_START(), XATTR_FILLCOLOR(), XATTR_FILLSTYLE(), XATTR_LINECOLOR(), XATTR_LINESTYLE(), and XATTR_LINEWIDTH().
Referenced by DoExecute().
|
staticprivate |
create morphed PolyPolygons
Definition at line 471 of file fumorph.cxx.
References basegfx::utils::createTranslateB2DHomMatrix(), i, ImpCreateMorphedPolygon(), and basegfx::B2DPolyPolygon::transform().
Referenced by DoExecute().