LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::SlideTransitionPane Class Referencefinal

#include <SlideTransitionPane.hxx>

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

Public Member Functions

 SlideTransitionPane (weld::Widget *pParent, ViewShellBase &rBase)
 
virtual ~SlideTransitionPane () override
 
virtual css::ui::LayoutSize GetHeightForWidth (const sal_Int32 nWidth) override
 
void onSelectionChanged ()
 
void onChangeCurrentPage ()
 
- Public Member Functions inherited from PanelLayout
 PanelLayout (weld::Widget *pParent, const OUString &rID, const OUString &rUIXMLDescription)
 
void SetPanel (sfx2::sidebar::Panel *pPanel)
 
virtual ~PanelLayout ()
 
Size get_preferred_size () const
 
void queue_resize ()
 

Private Member Functions

void updateControls ()
 
void updateControlState ()
 
void updateVariants (size_t nPresetOffset)
 we use an integer offset into the list of transition presets More...
 
void updateSoundList ()
 
void openSoundFileDialog ()
 
impl::TransitionEffect getTransitionEffectFromControls () const
 
void applyToSelectedPages (bool bPreview)
 
void playCurrentEffect ()
 
void addListener ()
 
void removeListener ()
 
::sd::slidesorter::SharedPageSelection getSelectedPages () const
 
void Initialize (SdDrawDocument *pDoc)
 
 DECL_LINK (ApplyToAllButtonClicked, weld::Button &, void)
 
 DECL_LINK (PlayButtonClicked, weld::Button &, void)
 
 DECL_LINK (AutoPreviewClicked, weld::Toggleable &, void)
 
 DECL_LINK (TransitionSelected, ValueSet *, void)
 
 DECL_LINK (AdvanceSlideRadioButtonToggled, weld::Toggleable &, void)
 
 DECL_LINK (AdvanceTimeModified, weld::MetricSpinButton &, void)
 
 DECL_LINK (VariantListBoxSelected, weld::ComboBox &, void)
 
 DECL_LINK (DurationModifiedHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (DurationLoseFocusHdl, weld::Widget &, void)
 
 DECL_LINK (SoundListBoxSelected, weld::ComboBox &, void)
 
 DECL_LINK (LoopSoundBoxChecked, weld::Toggleable &, void)
 
 DECL_LINK (EventMultiplexerListener, tools::EventMultiplexerEvent &, void)
 
 DECL_LINK (LateInitCallback, Timer *, void)
 

Private Attributes

ViewShellBasemrBase
 
SdDrawDocumentmpDrawDoc
 
std::unique_ptr< TransitionPanemxVS_TRANSITION_ICONS
 
std::unique_ptr< weld::CustomWeldmxVS_TRANSITION_ICONSWin
 
std::unique_ptr< weld::ComboBoxmxLB_VARIANT
 
std::unique_ptr< weld::MetricSpinButtonmxCBX_duration
 
std::unique_ptr< weld::LabelmxFT_SOUND
 
std::unique_ptr< weld::ComboBoxmxLB_SOUND
 
std::unique_ptr< weld::CheckButtonmxCB_LOOP_SOUND
 
std::unique_ptr< weld::RadioButtonmxRB_ADVANCE_ON_MOUSE
 
std::unique_ptr< weld::RadioButtonmxRB_ADVANCE_AUTO
 
std::unique_ptr< weld::MetricSpinButtonmxMF_ADVANCE_AUTO_AFTER
 
std::unique_ptr< weld::ButtonmxPB_APPLY_TO_ALL
 
std::unique_ptr< weld::ButtonmxPB_PLAY
 
std::unique_ptr< weld::CheckButtonmxCB_AUTO_PREVIEW
 
css::uno::Reference< css::drawing::XDrawView > mxView
 
css::uno::Reference< css::frame::XModel > mxModel
 
bool mbHasSelection
 
bool mbUpdatingControls
 
bool mbIsMainViewChangePending
 
std::vector< OUString > maSoundList
 
OUString maCurrentSoundFile
 
std::map< OUString, intm_aNumVariants
 
Timer maLateInitTimer
 

Additional Inherited Members

- Protected Member Functions inherited from PanelLayout
virtual void DataChanged (const DataChangedEvent &rEvent)
 
virtual void DumpAsPropertyTree (tools::JsonWriter &)
 
virtual weld::WindowGetFrameWeld () const
 
- Protected Attributes inherited from PanelLayout
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 
sfx2::sidebar::Panelm_pPanel
 

Detailed Description

Definition at line 48 of file SlideTransitionPane.hxx.

Constructor & Destructor Documentation

◆ SlideTransitionPane()

sd::SlideTransitionPane::SlideTransitionPane ( weld::Widget pParent,
ViewShellBase rBase 
)
explicit

Definition at line 392 of file SlideTransitionPane.cxx.

References Initialize(), and mpDrawDoc.

◆ ~SlideTransitionPane()

sd::SlideTransitionPane::~SlideTransitionPane ( )
overridevirtual

Member Function Documentation

◆ addListener()

void sd::SlideTransitionPane::addListener ( )
private

Definition at line 905 of file SlideTransitionPane.cxx.

References LINK.

Referenced by Initialize().

◆ applyToSelectedPages()

void sd::SlideTransitionPane::applyToSelectedPages ( bool  bPreview = true)
private

◆ DECL_LINK() [1/13]

sd::SlideTransitionPane::DECL_LINK ( AdvanceSlideRadioButtonToggled  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/13]

sd::SlideTransitionPane::DECL_LINK ( AdvanceTimeModified  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [3/13]

sd::SlideTransitionPane::DECL_LINK ( ApplyToAllButtonClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/13]

sd::SlideTransitionPane::DECL_LINK ( AutoPreviewClicked  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [5/13]

sd::SlideTransitionPane::DECL_LINK ( DurationLoseFocusHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [6/13]

sd::SlideTransitionPane::DECL_LINK ( DurationModifiedHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [7/13]

sd::SlideTransitionPane::DECL_LINK ( EventMultiplexerListener  ,
tools::EventMultiplexerEvent ,
void   
)
private

◆ DECL_LINK() [8/13]

sd::SlideTransitionPane::DECL_LINK ( LateInitCallback  ,
Timer ,
void   
)
private

◆ DECL_LINK() [9/13]

sd::SlideTransitionPane::DECL_LINK ( LoopSoundBoxChecked  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [10/13]

sd::SlideTransitionPane::DECL_LINK ( PlayButtonClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [11/13]

sd::SlideTransitionPane::DECL_LINK ( SoundListBoxSelected  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [12/13]

sd::SlideTransitionPane::DECL_LINK ( TransitionSelected  ,
ValueSet ,
void   
)
private

◆ DECL_LINK() [13/13]

sd::SlideTransitionPane::DECL_LINK ( VariantListBoxSelected  ,
weld::ComboBox ,
void   
)
private

◆ GetHeightForWidth()

css::ui::LayoutSize sd::SlideTransitionPane::GetHeightForWidth ( const sal_Int32  nWidth)
overridevirtual

Definition at line 406 of file SlideTransitionPane.cxx.

References PanelLayout::get_preferred_size(), and Size::Height().

◆ getSelectedPages()

sd::slidesorter::SharedPageSelection sd::SlideTransitionPane::getSelectedPages ( ) const
private

◆ getTransitionEffectFromControls()

impl::TransitionEffect sd::SlideTransitionPane::getTransitionEffectFromControls ( ) const
private

◆ Initialize()

void sd::SlideTransitionPane::Initialize ( SdDrawDocument pDoc)
private

◆ onChangeCurrentPage()

void sd::SlideTransitionPane::onChangeCurrentPage ( )

Definition at line 504 of file SlideTransitionPane.cxx.

References updateControls().

◆ onSelectionChanged()

void sd::SlideTransitionPane::onSelectionChanged ( )

Definition at line 499 of file SlideTransitionPane.cxx.

References updateControls().

◆ openSoundFileDialog()

void sd::SlideTransitionPane::openSoundFileDialog ( )
private

◆ playCurrentEffect()

void sd::SlideTransitionPane::playCurrentEffect ( )
private

Definition at line 895 of file SlideTransitionPane.cxx.

References mxView.

◆ removeListener()

void sd::SlideTransitionPane::removeListener ( )
private

Definition at line 911 of file SlideTransitionPane.cxx.

References LINK.

Referenced by ~SlideTransitionPane().

◆ updateControls()

void sd::SlideTransitionPane::updateControls ( )
private

◆ updateControlState()

void sd::SlideTransitionPane::updateControlState ( )
private

◆ updateSoundList()

void sd::SlideTransitionPane::updateSoundList ( )
private

◆ updateVariants()

void sd::SlideTransitionPane::updateVariants ( size_t  nPresetOffset)
private

we use an integer offset into the list of transition presets

Definition at line 1005 of file SlideTransitionPane.cxx.

References sd::TransitionPreset::getTransitionPresetList(), and sd::nNoneId.

Referenced by updateControls().

Member Data Documentation

◆ m_aNumVariants

std::map< OUString, int > sd::SlideTransitionPane::m_aNumVariants
private

Definition at line 126 of file SlideTransitionPane.hxx.

◆ maCurrentSoundFile

OUString sd::SlideTransitionPane::maCurrentSoundFile
mutableprivate

Definition at line 123 of file SlideTransitionPane.hxx.

Referenced by openSoundFileDialog(), and updateControls().

◆ maLateInitTimer

Timer sd::SlideTransitionPane::maLateInitTimer
private

Definition at line 128 of file SlideTransitionPane.hxx.

Referenced by Initialize(), and ~SlideTransitionPane().

◆ maSoundList

std::vector<OUString> sd::SlideTransitionPane::maSoundList
private

Definition at line 122 of file SlideTransitionPane.hxx.

Referenced by openSoundFileDialog(), updateControls(), and updateSoundList().

◆ mbHasSelection

bool sd::SlideTransitionPane::mbHasSelection
private

Definition at line 118 of file SlideTransitionPane.hxx.

Referenced by updateControls(), and updateControlState().

◆ mbIsMainViewChangePending

bool sd::SlideTransitionPane::mbIsMainViewChangePending
private

Definition at line 120 of file SlideTransitionPane.hxx.

◆ mbUpdatingControls

bool sd::SlideTransitionPane::mbUpdatingControls
private

Definition at line 119 of file SlideTransitionPane.hxx.

Referenced by updateControls().

◆ mpDrawDoc

SdDrawDocument* sd::SlideTransitionPane::mpDrawDoc
private

Definition at line 99 of file SlideTransitionPane.hxx.

Referenced by SlideTransitionPane().

◆ mrBase

ViewShellBase& sd::SlideTransitionPane::mrBase
private

Definition at line 98 of file SlideTransitionPane.hxx.

Referenced by getSelectedPages().

◆ mxCB_AUTO_PREVIEW

std::unique_ptr<weld::CheckButton> sd::SlideTransitionPane::mxCB_AUTO_PREVIEW
private

◆ mxCB_LOOP_SOUND

std::unique_ptr<weld::CheckButton> sd::SlideTransitionPane::mxCB_LOOP_SOUND
private

◆ mxCBX_duration

std::unique_ptr<weld::MetricSpinButton> sd::SlideTransitionPane::mxCBX_duration
private

◆ mxFT_SOUND

std::unique_ptr<weld::Label> sd::SlideTransitionPane::mxFT_SOUND
private

Definition at line 105 of file SlideTransitionPane.hxx.

Referenced by Initialize(), updateControls(), and ~SlideTransitionPane().

◆ mxLB_SOUND

std::unique_ptr<weld::ComboBox> sd::SlideTransitionPane::mxLB_SOUND
private

◆ mxLB_VARIANT

std::unique_ptr<weld::ComboBox> sd::SlideTransitionPane::mxLB_VARIANT
private

◆ mxMF_ADVANCE_AUTO_AFTER

std::unique_ptr<weld::MetricSpinButton> sd::SlideTransitionPane::mxMF_ADVANCE_AUTO_AFTER
private

◆ mxModel

css::uno::Reference< css::frame::XModel > sd::SlideTransitionPane::mxModel
private

Definition at line 116 of file SlideTransitionPane.hxx.

Referenced by Initialize().

◆ mxPB_APPLY_TO_ALL

std::unique_ptr<weld::Button> sd::SlideTransitionPane::mxPB_APPLY_TO_ALL
private

Definition at line 111 of file SlideTransitionPane.hxx.

Referenced by Initialize(), updateControlState(), and ~SlideTransitionPane().

◆ mxPB_PLAY

std::unique_ptr<weld::Button> sd::SlideTransitionPane::mxPB_PLAY
private

◆ mxRB_ADVANCE_AUTO

std::unique_ptr<weld::RadioButton> sd::SlideTransitionPane::mxRB_ADVANCE_AUTO
private

◆ mxRB_ADVANCE_ON_MOUSE

std::unique_ptr<weld::RadioButton> sd::SlideTransitionPane::mxRB_ADVANCE_ON_MOUSE
private

◆ mxView

css::uno::Reference< css::drawing::XDrawView > sd::SlideTransitionPane::mxView
private

Definition at line 115 of file SlideTransitionPane.hxx.

Referenced by getSelectedPages(), and Initialize().

◆ mxVS_TRANSITION_ICONS

std::unique_ptr<TransitionPane> sd::SlideTransitionPane::mxVS_TRANSITION_ICONS
private

◆ mxVS_TRANSITION_ICONSWin

std::unique_ptr<weld::CustomWeld> sd::SlideTransitionPane::mxVS_TRANSITION_ICONSWin
private

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