LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
sd::CustomAnimationList Class Reference

#include <CustomAnimationList.hxx>

Inheritance diagram for sd::CustomAnimationList:
[legend]
Collaboration diagram for sd::CustomAnimationList:
[legend]

Public Member Functions

 CustomAnimationList (std::unique_ptr< weld::TreeView > xTreeView, std::unique_ptr< weld::Label > xLabel, std::unique_ptr< weld::Widget > xScrolledWindow)
 
virtual ~CustomAnimationList ()
 
void select (const CustomAnimationEffectPtr &pEffect)
 selects or deselects the given effect. More...
 
void update (const MainSequencePtr &pMainSequence)
 populates the list with all effects from the given MainSequence More...
 
void update ()
 
EffectSequence getSelection () const
 
void onSelectionChanged (const css::uno::Any &rSelection)
 
void Select ()
 
virtual void notify_change () override
 
bool isExpanded (const CustomAnimationEffectPtr &pEffect) const
 
bool isVisible (const CustomAnimationEffectPtr &pEffect) const
 
void clear ()
 
void setController (ICustomAnimationListController *pController)
 
sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt)
 
sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
 
void set_sensitive (bool bSensitive)
 
int get_height_rows (int nRows)
 
int get_approximate_digit_width () const
 
void set_size_request (int nWidth, int nHeight)
 
void unselect_all ()
 
weld::TreeViewget_widget ()
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (ExpandHdl, const weld::TreeIter &, bool)
 
 DECL_LINK (PostExpandHdl, void *, void)
 
 DECL_LINK (CollapseHdl, const weld::TreeIter &, bool)
 
 DECL_LINK (PostCollapseHdl, void *, void)
 
virtual void notify_change ()=0
 

Private Member Functions

 DECL_LINK (SelectHdl, weld::TreeView &, void)
 
 DECL_LINK (CommandHdl, const CommandEvent &, bool)
 
 DECL_LINK (DoubleClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (DragBeginHdl, bool &, bool)
 
 DECL_STATIC_LINK (CustomAnimationList, CustomRenderHdl, weld::TreeView::render_args, void)
 
 DECL_STATIC_LINK (CustomAnimationList, CustomGetSizeHdl, weld::TreeView::get_size_args, Size)
 
void ExecuteContextMenuAction (const OUString &rSelectedPopupEntry)
 
void append (CustomAnimationEffectPtr pEffect)
 appends the given effect to the list More...
 

Private Attributes

std::unique_ptr< weld::TreeViewmxTreeView
 
CustomAnimationListDropTarget maDropTargetHelper
 
std::unique_ptr< weld::LabelmxEmptyLabel
 
std::unique_ptr< weld::WidgetmxEmptyLabelParent
 
std::vector< std::unique_ptr< CustomAnimationListEntryItem > > mxEntries
 
std::vector< std::unique_ptr< weld::TreeIter > > lastSelectedEntries
 
bool mbIgnorePaint
 
ICustomAnimationListControllermpController
 
MainSequencePtr mpMainSequence
 
css::uno::Reference< css::drawing::XShape > mxLastTargetShape
 
sal_Int32 mnLastGroupId
 
ImplSVEventmnPostExpandEvent
 
ImplSVEventmnPostCollapseEvent
 
std::unique_ptr< weld::TreeItermxLastParentEntry
 
std::unique_ptr< weld::TreeItermxDndEffectDragging
 
std::vector< std::unique_ptr< weld::TreeIter > > mDndEffectsSelected
 

Friends

class CustomAnimationListEntryItem
 
struct stl_append_effect_func
 

Additional Inherited Members

- Protected Member Functions inherited from sd::ISequenceListener
 ~ISequenceListener ()
 

Detailed Description

Definition at line 63 of file CustomAnimationList.hxx.

Constructor & Destructor Documentation

◆ CustomAnimationList()

sd::CustomAnimationList::CustomAnimationList ( std::unique_ptr< weld::TreeView xTreeView,
std::unique_ptr< weld::Label xLabel,
std::unique_ptr< weld::Widget xScrolledWindow 
)
explicit

Definition at line 427 of file CustomAnimationList.cxx.

References LINK, mpController, mxEmptyLabel, and mxTreeView.

◆ ~CustomAnimationList()

sd::CustomAnimationList::~CustomAnimationList ( )
virtual

Member Function Documentation

◆ AcceptDrop()

sal_Int8 sd::CustomAnimationList::AcceptDrop ( const AcceptDropEvent rEvt)

◆ append()

void sd::CustomAnimationList::append ( CustomAnimationEffectPtr  pEffect)
private

◆ clear()

void sd::CustomAnimationList::clear ( )

◆ DECL_LINK() [1/9]

sd::CustomAnimationList::DECL_LINK ( CollapseHdl  ,
const weld::TreeIter ,
bool   
)

◆ DECL_LINK() [2/9]

sd::CustomAnimationList::DECL_LINK ( CommandHdl  ,
const CommandEvent ,
bool   
)
private

◆ DECL_LINK() [3/9]

sd::CustomAnimationList::DECL_LINK ( DoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [4/9]

sd::CustomAnimationList::DECL_LINK ( DragBeginHdl  ,
bool &  ,
bool   
)
private

◆ DECL_LINK() [5/9]

sd::CustomAnimationList::DECL_LINK ( ExpandHdl  ,
const weld::TreeIter ,
bool   
)

◆ DECL_LINK() [6/9]

sd::CustomAnimationList::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)

◆ DECL_LINK() [7/9]

sd::CustomAnimationList::DECL_LINK ( PostCollapseHdl  ,
void *  ,
void   
)

◆ DECL_LINK() [8/9]

sd::CustomAnimationList::DECL_LINK ( PostExpandHdl  ,
void *  ,
void   
)

◆ DECL_LINK() [9/9]

sd::CustomAnimationList::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_STATIC_LINK() [1/2]

sd::CustomAnimationList::DECL_STATIC_LINK ( CustomAnimationList  ,
CustomGetSizeHdl  ,
weld::TreeView::get_size_args  ,
Size   
)
private

◆ DECL_STATIC_LINK() [2/2]

sd::CustomAnimationList::DECL_STATIC_LINK ( CustomAnimationList  ,
CustomRenderHdl  ,
weld::TreeView::render_args  ,
void   
)
private

◆ ExecuteContextMenuAction()

void sd::CustomAnimationList::ExecuteContextMenuAction ( const OUString &  rSelectedPopupEntry)
private

◆ ExecuteDrop()

sal_Int8 sd::CustomAnimationList::ExecuteDrop ( const ExecuteDropEvent rEvt)

◆ get_approximate_digit_width()

int sd::CustomAnimationList::get_approximate_digit_width ( ) const
inline

Definition at line 110 of file CustomAnimationList.hxx.

References mxTreeView.

◆ get_height_rows()

int sd::CustomAnimationList::get_height_rows ( int  nRows)
inline

Definition at line 109 of file CustomAnimationList.hxx.

References mxTreeView.

◆ get_widget()

weld::TreeView & sd::CustomAnimationList::get_widget ( )
inline

Definition at line 117 of file CustomAnimationList.hxx.

References mxTreeView.

Referenced by sd::CustomAnimationListDropTarget::AcceptDrop().

◆ getSelection()

EffectSequence sd::CustomAnimationList::getSelection ( ) const

◆ isExpanded()

bool sd::CustomAnimationList::isExpanded ( const CustomAnimationEffectPtr pEffect) const

◆ isVisible()

bool sd::CustomAnimationList::isVisible ( const CustomAnimationEffectPtr pEffect) const

◆ notify_change()

void sd::CustomAnimationList::notify_change ( )
overridevirtual

◆ onSelectionChanged()

void sd::CustomAnimationList::onSelectionChanged ( const css::uno::Any &  rSelection)

◆ Select()

void sd::CustomAnimationList::Select ( )

◆ select()

void sd::CustomAnimationList::select ( const CustomAnimationEffectPtr pEffect)

selects or deselects the given effect.

Selections of other effects are not changed

Definition at line 604 of file CustomAnimationList.cxx.

References append(), sd::CustomAnimationListEntryItem::getEffect(), mxTreeView, and select().

Referenced by select().

◆ set_sensitive()

void sd::CustomAnimationList::set_sensitive ( bool  bSensitive)
inline

Definition at line 108 of file CustomAnimationList.hxx.

References mxTreeView.

◆ set_size_request()

void sd::CustomAnimationList::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 111 of file CustomAnimationList.hxx.

References mxEmptyLabel, and mxTreeView.

◆ setController()

void sd::CustomAnimationList::setController ( ICustomAnimationListController pController)
inline

Definition at line 100 of file CustomAnimationList.hxx.

References mpController.

◆ unselect_all()

void sd::CustomAnimationList::unselect_all ( )
inline

Definition at line 116 of file CustomAnimationList.hxx.

References mxTreeView.

◆ update() [1/2]

void sd::CustomAnimationList::update ( )

◆ update() [2/2]

void sd::CustomAnimationList::update ( const MainSequencePtr pMainSequence)

populates the list with all effects from the given MainSequence

Definition at line 643 of file CustomAnimationList.cxx.

References mpMainSequence, and update().

Friends And Related Function Documentation

◆ CustomAnimationListEntryItem

friend class CustomAnimationListEntryItem
friend

Definition at line 65 of file CustomAnimationList.hxx.

◆ stl_append_effect_func

friend struct stl_append_effect_func
friend

Definition at line 66 of file CustomAnimationList.hxx.

Member Data Documentation

◆ lastSelectedEntries

std::vector<std::unique_ptr<weld::TreeIter> > sd::CustomAnimationList::lastSelectedEntries
private

Definition at line 131 of file CustomAnimationList.hxx.

◆ maDropTargetHelper

CustomAnimationListDropTarget sd::CustomAnimationList::maDropTargetHelper
private

Definition at line 127 of file CustomAnimationList.hxx.

◆ mbIgnorePaint

bool sd::CustomAnimationList::mbIgnorePaint
private

Definition at line 133 of file CustomAnimationList.hxx.

Referenced by Select(), and update().

◆ mDndEffectsSelected

std::vector<std::unique_ptr<weld::TreeIter> > sd::CustomAnimationList::mDndEffectsSelected
private

Definition at line 160 of file CustomAnimationList.hxx.

Referenced by ExecuteDrop().

◆ mnLastGroupId

sal_Int32 sd::CustomAnimationList::mnLastGroupId
private

Definition at line 152 of file CustomAnimationList.hxx.

Referenced by append().

◆ mnPostCollapseEvent

ImplSVEvent* sd::CustomAnimationList::mnPostCollapseEvent
private

Definition at line 154 of file CustomAnimationList.hxx.

Referenced by ~CustomAnimationList().

◆ mnPostExpandEvent

ImplSVEvent* sd::CustomAnimationList::mnPostExpandEvent
private

Definition at line 153 of file CustomAnimationList.hxx.

Referenced by ~CustomAnimationList().

◆ mpController

ICustomAnimationListController* sd::CustomAnimationList::mpController
private

◆ mpMainSequence

MainSequencePtr sd::CustomAnimationList::mpMainSequence
private

Definition at line 149 of file CustomAnimationList.hxx.

Referenced by ExecuteDrop(), update(), and ~CustomAnimationList().

◆ mxDndEffectDragging

std::unique_ptr<weld::TreeIter> sd::CustomAnimationList::mxDndEffectDragging
private

Definition at line 159 of file CustomAnimationList.hxx.

Referenced by AcceptDrop(), and ExecuteDrop().

◆ mxEmptyLabel

std::unique_ptr<weld::Label> sd::CustomAnimationList::mxEmptyLabel
private

Definition at line 128 of file CustomAnimationList.hxx.

Referenced by CustomAnimationList(), and set_size_request().

◆ mxEmptyLabelParent

std::unique_ptr<weld::Widget> sd::CustomAnimationList::mxEmptyLabelParent
private

Definition at line 129 of file CustomAnimationList.hxx.

Referenced by clear(), and update().

◆ mxEntries

std::vector<std::unique_ptr<CustomAnimationListEntryItem> > sd::CustomAnimationList::mxEntries
private

Definition at line 130 of file CustomAnimationList.hxx.

Referenced by append(), clear(), and update().

◆ mxLastParentEntry

std::unique_ptr<weld::TreeIter> sd::CustomAnimationList::mxLastParentEntry
private

Definition at line 156 of file CustomAnimationList.hxx.

Referenced by append(), clear(), and update().

◆ mxLastTargetShape

css::uno::Reference< css::drawing::XShape > sd::CustomAnimationList::mxLastTargetShape
private

Definition at line 151 of file CustomAnimationList.hxx.

Referenced by append(), and clear().

◆ mxTreeView

std::unique_ptr<weld::TreeView> sd::CustomAnimationList::mxTreeView
private

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