2004-01-20 10:43:23 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 04:14:11 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
2005-09-09 04:14:11 +00:00
|
|
|
* $RCSfile: SdUnoSlideView.hxx,v $
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
2008-04-03 12:56:33 +00:00
|
|
|
* $Revision: 1.10 $
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
2008-04-03 12:56:33 +00:00
|
|
|
* last change: $Author: kz $ $Date: 2008-04-03 13:56:33 $
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
2005-09-09 04:14:11 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 04:14:11 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
2005-09-09 04:14:11 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
2005-09-09 04:14:11 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
2005-09-09 04:14:11 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2004-01-20 10:43:23 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SD_UNO_SLIDE_VIEW_HXX
|
|
|
|
#define SD_UNO_SLIDE_VIEW_HXX
|
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
#include "DrawSubController.hxx"
|
2008-04-03 12:56:33 +00:00
|
|
|
#include <cppuhelper/basemutex.hxx>
|
2006-03-21 16:26:46 +00:00
|
|
|
#include <com/sun/star/drawing/XDrawPage.hpp>
|
2008-04-03 12:56:33 +00:00
|
|
|
|
|
|
|
namespace css = ::com::sun::star;
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
namespace sd { namespace slidesorter {
|
2008-04-03 12:56:33 +00:00
|
|
|
class SlideSorter;
|
2006-03-21 16:26:46 +00:00
|
|
|
} }
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
namespace sd { namespace slidesorter { namespace controller {
|
|
|
|
class PageSelector;
|
|
|
|
} } }
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2004-01-20 10:43:23 +00:00
|
|
|
namespace sd {
|
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
class DrawController;
|
2004-01-20 10:43:23 +00:00
|
|
|
class SlideViewShell;
|
2004-06-03 10:54:39 +00:00
|
|
|
class View;
|
2004-01-20 10:43:23 +00:00
|
|
|
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2008-04-03 12:56:33 +00:00
|
|
|
/** This class implements the SlideSorter specific part of the
|
2006-03-21 16:26:46 +00:00
|
|
|
controller.
|
2002-01-24 13:33:46 +00:00
|
|
|
*/
|
2004-01-20 10:43:23 +00:00
|
|
|
class SdUnoSlideView
|
2008-04-03 12:56:33 +00:00
|
|
|
: private cppu::BaseMutex,
|
|
|
|
public DrawSubControllerInterfaceBase
|
2002-01-24 13:33:46 +00:00
|
|
|
{
|
|
|
|
public:
|
2004-06-03 10:54:39 +00:00
|
|
|
SdUnoSlideView (
|
2006-03-21 16:26:46 +00:00
|
|
|
DrawController& rController,
|
2008-04-03 12:56:33 +00:00
|
|
|
slidesorter::SlideSorter& rSlideSorter,
|
2004-06-03 10:54:39 +00:00
|
|
|
View& rView) throw();
|
2006-03-21 16:26:46 +00:00
|
|
|
virtual ~SdUnoSlideView (void) throw();
|
|
|
|
|
|
|
|
// XSelectionSupplier
|
2008-04-03 12:56:33 +00:00
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
virtual sal_Bool SAL_CALL select (const ::com::sun::star::uno::Any& aSelection)
|
|
|
|
throw(::com::sun::star::lang::IllegalArgumentException,
|
|
|
|
::com::sun::star::uno::RuntimeException);
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
virtual ::com::sun::star::uno::Any SAL_CALL getSelection (void)
|
|
|
|
throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2008-04-03 12:56:33 +00:00
|
|
|
virtual void SAL_CALL addSelectionChangeListener (
|
|
|
|
const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual void SAL_CALL removeSelectionChangeListener (
|
|
|
|
const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
|
|
|
|
// XDrawView
|
2008-04-03 12:56:33 +00:00
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
virtual void SAL_CALL setCurrentPage (
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage)
|
|
|
|
throw(::com::sun::star::uno::RuntimeException);
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2006-03-21 16:26:46 +00:00
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL
|
|
|
|
getCurrentPage (void)
|
2004-01-20 10:43:23 +00:00
|
|
|
throw(::com::sun::star::uno::RuntimeException);
|
2004-07-13 13:00:27 +00:00
|
|
|
|
2008-04-03 12:56:33 +00:00
|
|
|
|
|
|
|
// XFastPropertySet
|
|
|
|
|
|
|
|
virtual void SAL_CALL setFastPropertyValue (
|
|
|
|
sal_Int32 nHandle,
|
|
|
|
const css::uno::Any& rValue)
|
|
|
|
throw(css::beans::UnknownPropertyException,
|
|
|
|
css::beans::PropertyVetoException,
|
|
|
|
css::lang::IllegalArgumentException,
|
|
|
|
css::lang::WrappedTargetException,
|
|
|
|
css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual css::uno::Any SAL_CALL getFastPropertyValue (
|
|
|
|
sal_Int32 nHandle)
|
|
|
|
throw(css::beans::UnknownPropertyException,
|
|
|
|
css::lang::WrappedTargetException,
|
|
|
|
css::uno::RuntimeException);
|
|
|
|
|
2004-07-13 13:00:27 +00:00
|
|
|
private:
|
2006-03-21 16:26:46 +00:00
|
|
|
DrawController& mrController;
|
2008-04-03 12:56:33 +00:00
|
|
|
slidesorter::SlideSorter& mrSlideSorter;
|
2006-03-21 16:26:46 +00:00
|
|
|
sd::View& mrView;
|
2008-04-03 12:56:33 +00:00
|
|
|
/*
|
2006-03-21 16:26:46 +00:00
|
|
|
virtual void FillPropertyTable (
|
|
|
|
::std::vector< ::com::sun::star::beans::Property>& rProperties);
|
|
|
|
virtual sal_Bool SAL_CALL convertFastPropertyValue(
|
|
|
|
::com::sun::star::uno::Any & rConvertedValue,
|
|
|
|
::com::sun::star::uno::Any & rOldValue,
|
|
|
|
sal_Int32 nHandle,
|
|
|
|
const ::com::sun::star::uno::Any& rValue )
|
|
|
|
throw (::com::sun::star::lang::IllegalArgumentException);
|
|
|
|
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
|
|
|
|
sal_Int32 nHandle,
|
|
|
|
const ::com::sun::star::uno::Any& rValue )
|
|
|
|
throw (::com::sun::star::uno::Exception);
|
|
|
|
virtual void SAL_CALL getFastPropertyValue(
|
|
|
|
::com::sun::star::uno::Any& rValue,
|
|
|
|
sal_Int32 nHandle ) const;
|
2008-04-03 12:56:33 +00:00
|
|
|
*/
|
2002-01-24 13:33:46 +00:00
|
|
|
};
|
|
|
|
|
2004-01-20 10:43:23 +00:00
|
|
|
} // end of namespace sd
|
|
|
|
|
2003-10-06 14:25:38 +00:00
|
|
|
#endif
|