unoviewcontainer.cxx (70f497fb) | unoviewcontainer.cxx (a72d41dc) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 37 unchanged lines hidden (view full) --- 46 } 47 48 bool UnoViewContainer::addView( const UnoViewSharedPtr& rView ) 49 { 50 // check whether same view is already added 51 const UnoViewVector::iterator aEnd( maViews.end() ); 52 53 // already added? | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 37 unchanged lines hidden (view full) --- 46 } 47 48 bool UnoViewContainer::addView( const UnoViewSharedPtr& rView ) 49 { 50 // check whether same view is already added 51 const UnoViewVector::iterator aEnd( maViews.end() ); 52 53 // already added? |
54 uno::Reference<presentation::XSlideShowView> rUnoView = rView->getUnoView(); |
|
54 if( ::std::find_if( maViews.begin(), 55 aEnd, 56 ::boost::bind( 57 ::std::equal_to< uno::Reference< presentation::XSlideShowView > >(), | 55 if( ::std::find_if( maViews.begin(), 56 aEnd, 57 ::boost::bind( 58 ::std::equal_to< uno::Reference< presentation::XSlideShowView > >(), |
58 ::boost::cref( rView->getUnoView() ), | 59 ::boost::cref( rUnoView ), |
59 ::boost::bind( 60 &UnoView::getUnoView, 61 _1 ) ) ) != aEnd ) 62 { 63 // yes, nothing to do 64 return false; 65 } 66 --- 79 unchanged lines hidden --- | 60 ::boost::bind( 61 &UnoView::getUnoView, 62 _1 ) ) ) != aEnd ) 63 { 64 // yes, nothing to do 65 return false; 66 } 67 --- 79 unchanged lines hidden --- |