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

Public Types

enum  Mode {
  ALL ,
  FROM ,
  CUSTOM ,
  PREVIEW
}
 

Public Member Functions

 AnimationSlideController (Reference< XIndexAccess > const &xSlides, Mode eMode)
 
void setStartSlideNumber (sal_Int32 nSlideNumber)
 
sal_Int32 getStartSlideIndex () const
 
sal_Int32 getCurrentSlideNumber () const
 
sal_Int32 getCurrentSlideIndex () const
 
sal_Int32 getSlideIndexCount () const
 
sal_Int32 getSlideNumberCount () const
 
sal_Int32 getSlideNumber (sal_Int32 nSlideIndex) const
 
void insertSlideNumber (sal_Int32 nSlideNumber, bool bVisible=true)
 
void setPreviewNode (const Reference< XAnimationNode > &xPreviewNode)
 
bool jumpToSlideIndex (sal_Int32 nNewSlideIndex)
 
bool jumpToSlideNumber (sal_Int32 nNewSlideIndex)
 
bool nextSlide ()
 
bool previousSlide ()
 
void displayCurrentSlide (const Reference< XSlideShow > &xShow, const Reference< XDrawPagesSupplier > &xDrawPages, const bool bSkipAllMainSequenceEffects)
 
sal_Int32 getNextSlideIndex () const
 
sal_Int32 getPreviousSlideIndex () const
 
bool isVisibleSlideNumber (sal_Int32 nSlideNumber) const
 
Reference< XDrawPage > getSlideByNumber (sal_Int32 nSlideNumber) const
 
sal_Int32 getNextSlideNumber () const
 
bool hasSlides () const
 

Private Member Functions

bool getSlideAPI (sal_Int32 nSlideNumber, Reference< XDrawPage > &xSlide, Reference< XAnimationNode > &xAnimNode)
 
sal_Int32 findSlideIndex (sal_Int32 nSlideNumber) const
 
bool isValidIndex (sal_Int32 nIndex) const
 
bool isValidSlideNumber (sal_Int32 nSlideNumber) const
 

Private Attributes

Mode meMode
 
sal_Int32 mnStartSlideNumber
 
std::vector< sal_Int32 > maSlideNumbers
 
std::vector< bool > maSlideVisible
 
std::vector< bool > maSlideVisited
 
Reference< XAnimationNode > mxPreviewNode
 
sal_Int32 mnSlideCount
 
sal_Int32 mnCurrentSlideIndex
 
sal_Int32 mnHiddenSlideNumber
 
Reference< XIndexAccess > mxSlides
 

Detailed Description

Definition at line 124 of file slideshowimpl.cxx.

Member Enumeration Documentation

◆ Mode

Enumerator
ALL 
FROM 
CUSTOM 
PREVIEW 

Definition at line 127 of file slideshowimpl.cxx.

Constructor & Destructor Documentation

◆ AnimationSlideController()

sd::AnimationSlideController::AnimationSlideController ( Reference< XIndexAccess > const &  xSlides,
Mode  eMode 
)

Definition at line 210 of file slideshowimpl.cxx.

References eMode, meMode, mnSlideCount, and mxSlides.

Member Function Documentation

◆ displayCurrentSlide()

void sd::AnimationSlideController::displayCurrentSlide ( const Reference< XSlideShow > &  xShow,
const Reference< XDrawPagesSupplier > &  xDrawPages,
const bool  bSkipAllMainSequenceEffects 
)

◆ findSlideIndex()

sal_Int32 sd::AnimationSlideController::findSlideIndex ( sal_Int32  nSlideNumber) const
private

Definition at line 336 of file slideshowimpl.cxx.

References maSlideNumbers, nCount, and nIndex.

Referenced by isVisibleSlideNumber(), and jumpToSlideNumber().

◆ getCurrentSlideIndex()

sal_Int32 sd::AnimationSlideController::getCurrentSlideIndex ( ) const

Definition at line 249 of file slideshowimpl.cxx.

References mnCurrentSlideIndex, and mnHiddenSlideNumber.

◆ getCurrentSlideNumber()

sal_Int32 sd::AnimationSlideController::getCurrentSlideNumber ( ) const

Definition at line 239 of file slideshowimpl.cxx.

References maSlideNumbers, mnCurrentSlideIndex, and mnHiddenSlideNumber.

Referenced by displayCurrentSlide().

◆ getNextSlideIndex()

sal_Int32 sd::AnimationSlideController::getNextSlideIndex ( ) const

◆ getNextSlideNumber()

sal_Int32 sd::AnimationSlideController::getNextSlideNumber ( ) const

Definition at line 388 of file slideshowimpl.cxx.

References getNextSlideIndex(), isValidIndex(), and maSlideNumbers.

Referenced by displayCurrentSlide().

◆ getPreviousSlideIndex()

sal_Int32 sd::AnimationSlideController::getPreviousSlideIndex ( ) const

Definition at line 406 of file slideshowimpl.cxx.

References ALL, isValidIndex(), maSlideVisible, maSlideVisited, meMode, mnCurrentSlideIndex, and PREVIEW.

Referenced by previousSlide().

◆ getSlideAPI()

bool sd::AnimationSlideController::getSlideAPI ( sal_Int32  nSlideNumber,
Reference< XDrawPage > &  xSlide,
Reference< XAnimationNode > &  xAnimNode 
)
private

◆ getSlideByNumber()

Reference< XDrawPage > sd::AnimationSlideController::getSlideByNumber ( sal_Int32  nSlideNumber) const

Definition at line 187 of file slideshowimpl.cxx.

References mxSlides.

◆ getSlideIndexCount()

sal_Int32 sd::AnimationSlideController::getSlideIndexCount ( ) const
inline

Definition at line 138 of file slideshowimpl.cxx.

References maSlideNumbers.

◆ getSlideNumber()

sal_Int32 sd::AnimationSlideController::getSlideNumber ( sal_Int32  nSlideIndex) const

Definition at line 291 of file slideshowimpl.cxx.

References isValidIndex(), and maSlideNumbers.

◆ getSlideNumberCount()

sal_Int32 sd::AnimationSlideController::getSlideNumberCount ( ) const
inline

Definition at line 139 of file slideshowimpl.cxx.

References mnSlideCount.

◆ getStartSlideIndex()

sal_Int32 sd::AnimationSlideController::getStartSlideIndex ( ) const

Definition at line 222 of file slideshowimpl.cxx.

References maSlideNumbers, mnStartSlideNumber, nCount, and nIndex.

◆ hasSlides()

bool sd::AnimationSlideController::hasSlides ( ) const
inline

Definition at line 165 of file slideshowimpl.cxx.

References maSlideNumbers.

◆ insertSlideNumber()

void sd::AnimationSlideController::insertSlideNumber ( sal_Int32  nSlideNumber,
bool  bVisible = true 
)

◆ isValidIndex()

bool sd::AnimationSlideController::isValidIndex ( sal_Int32  nIndex) const
inlineprivate

◆ isValidSlideNumber()

bool sd::AnimationSlideController::isValidSlideNumber ( sal_Int32  nSlideNumber) const
inlineprivate

Definition at line 172 of file slideshowimpl.cxx.

References mnSlideCount.

Referenced by getSlideAPI(), and insertSlideNumber().

◆ isVisibleSlideNumber()

bool sd::AnimationSlideController::isVisibleSlideNumber ( sal_Int32  nSlideNumber) const

Definition at line 195 of file slideshowimpl.cxx.

References findSlideIndex(), maSlideVisible, and nIndex.

◆ jumpToSlideIndex()

bool sd::AnimationSlideController::jumpToSlideIndex ( sal_Int32  nNewSlideIndex)

◆ jumpToSlideNumber()

bool sd::AnimationSlideController::jumpToSlideNumber ( sal_Int32  nNewSlideIndex)

◆ nextSlide()

bool sd::AnimationSlideController::nextSlide ( )

Definition at line 401 of file slideshowimpl.cxx.

References getNextSlideIndex(), and jumpToSlideIndex().

◆ previousSlide()

bool sd::AnimationSlideController::previousSlide ( )

Definition at line 437 of file slideshowimpl.cxx.

References getPreviousSlideIndex(), and jumpToSlideIndex().

◆ setPreviewNode()

void sd::AnimationSlideController::setPreviewNode ( const Reference< XAnimationNode > &  xPreviewNode)

Definition at line 205 of file slideshowimpl.cxx.

References mxPreviewNode.

◆ setStartSlideNumber()

void sd::AnimationSlideController::setStartSlideNumber ( sal_Int32  nSlideNumber)
inline

Definition at line 132 of file slideshowimpl.cxx.

References mnStartSlideNumber.

Member Data Documentation

◆ maSlideNumbers

std::vector< sal_Int32 > sd::AnimationSlideController::maSlideNumbers
private

◆ maSlideVisible

std::vector< bool > sd::AnimationSlideController::maSlideVisible
private

◆ maSlideVisited

std::vector< bool > sd::AnimationSlideController::maSlideVisited
private

Definition at line 179 of file slideshowimpl.cxx.

Referenced by getPreviousSlideIndex(), insertSlideNumber(), and jumpToSlideIndex().

◆ meMode

Mode sd::AnimationSlideController::meMode
private

Definition at line 175 of file slideshowimpl.cxx.

Referenced by getNextSlideIndex(), getPreviousSlideIndex(), and getSlideAPI().

◆ mnCurrentSlideIndex

sal_Int32 sd::AnimationSlideController::mnCurrentSlideIndex
private

◆ mnHiddenSlideNumber

sal_Int32 sd::AnimationSlideController::mnHiddenSlideNumber
private

◆ mnSlideCount

sal_Int32 sd::AnimationSlideController::mnSlideCount
private

◆ mnStartSlideNumber

sal_Int32 sd::AnimationSlideController::mnStartSlideNumber
private

Definition at line 176 of file slideshowimpl.cxx.

Referenced by getStartSlideIndex(), and setStartSlideNumber().

◆ mxPreviewNode

Reference< XAnimationNode > sd::AnimationSlideController::mxPreviewNode
private

Definition at line 180 of file slideshowimpl.cxx.

Referenced by getSlideAPI(), and setPreviewNode().

◆ mxSlides

Reference< XIndexAccess > sd::AnimationSlideController::mxSlides
private

Definition at line 184 of file slideshowimpl.cxx.

Referenced by AnimationSlideController(), getSlideAPI(), and getSlideByNumber().


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