summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/slide/slideimpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/slide/slideimpl.cxx')
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx45
1 files changed, 21 insertions, 24 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index c81dfff0d10a..ab1214538af3 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -688,37 +688,34 @@ SlideBitmapSharedPtr SlideImpl::createCurrentSlideBitmap( const UnoViewSharedPtr
return std::make_shared<SlideBitmap>( pBitmap );
}
-namespace
+class MainSequenceSearcher
{
- class MainSequenceSearcher
+public:
+ MainSequenceSearcher()
{
- public:
- MainSequenceSearcher()
- {
- maSearchKey.Name = "node-type";
- maSearchKey.Value <<= presentation::EffectNodeType::MAIN_SEQUENCE;
- }
-
- void operator()( const uno::Reference< animations::XAnimationNode >& xChildNode )
- {
- uno::Sequence< beans::NamedValue > aUserData( xChildNode->getUserData() );
+ maSearchKey.Name = "node-type";
+ maSearchKey.Value <<= presentation::EffectNodeType::MAIN_SEQUENCE;
+ }
- if( findNamedValue( aUserData, maSearchKey ) )
- {
- maMainSequence = xChildNode;
- }
- }
+ void operator()( const uno::Reference< animations::XAnimationNode >& xChildNode )
+ {
+ uno::Sequence< beans::NamedValue > aUserData( xChildNode->getUserData() );
- const uno::Reference< animations::XAnimationNode >& getMainSequence() const
+ if( findNamedValue( aUserData, maSearchKey ) )
{
- return maMainSequence;
+ maMainSequence = xChildNode;
}
+ }
- private:
- beans::NamedValue maSearchKey;
- uno::Reference< animations::XAnimationNode > maMainSequence;
- };
-}
+ const uno::Reference< animations::XAnimationNode >& getMainSequence() const
+ {
+ return maMainSequence;
+ }
+
+private:
+ beans::NamedValue maSearchKey;
+ uno::Reference< animations::XAnimationNode > maMainSequence;
+};
bool SlideImpl::implPrefetchShow()
{