2004-01-20 10:42:28 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 04:13:43 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-01-20 10:42:28 +00:00
|
|
|
*
|
2005-09-09 04:13:43 +00:00
|
|
|
* $RCSfile: SdUnoOutlineView.hxx,v $
|
2004-01-20 10:42:28 +00:00
|
|
|
*
|
2005-09-09 04:13:43 +00:00
|
|
|
* $Revision: 1.11 $
|
2004-01-20 10:42:28 +00:00
|
|
|
*
|
2005-09-09 04:13:43 +00:00
|
|
|
* last change: $Author: rt $ $Date: 2005-09-09 05:13:43 $
|
2004-01-20 10:42:28 +00:00
|
|
|
*
|
2005-09-09 04:13:43 +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:42:28 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 04:13:43 +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:42:28 +00:00
|
|
|
*
|
2005-09-09 04:13:43 +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:42:28 +00:00
|
|
|
*
|
2005-09-09 04:13:43 +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:42:28 +00:00
|
|
|
*
|
2005-09-09 04:13:43 +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:42:28 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SD_UNO_OUTLINE_VIEW_HXX
|
|
|
|
#define SD_UNO_OUTLINE_VIEW_HXX
|
|
|
|
|
2004-06-03 10:54:09 +00:00
|
|
|
#ifndef SD_DRAW_CONTROLLER_HXX
|
|
|
|
#include "DrawController.hxx"
|
2002-01-24 13:33:46 +00:00
|
|
|
#endif
|
|
|
|
|
2004-07-13 13:00:12 +00:00
|
|
|
class SdPage;
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2004-01-20 10:42:28 +00:00
|
|
|
namespace sd {
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2004-01-20 10:42:28 +00:00
|
|
|
class OutlineViewShell;
|
|
|
|
class View;
|
2002-01-24 13:33:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class implements the view component for a SdOutlineViewShell
|
|
|
|
*/
|
2004-01-20 10:42:28 +00:00
|
|
|
class SdUnoOutlineView
|
2004-06-03 10:54:09 +00:00
|
|
|
: public DrawController
|
2002-01-24 13:33:46 +00:00
|
|
|
{
|
|
|
|
public:
|
2004-07-13 13:00:12 +00:00
|
|
|
enum properties
|
|
|
|
{
|
2004-10-28 12:26:53 +00:00
|
|
|
PROPERTY__BEGIN = DrawController::PROPERTY__END,
|
2004-07-13 13:00:12 +00:00
|
|
|
PROPERTY_CURRENTPAGE = PROPERTY__BEGIN,
|
|
|
|
PROPERTY__END
|
|
|
|
};
|
2004-06-03 10:54:09 +00:00
|
|
|
SdUnoOutlineView (
|
|
|
|
ViewShellBase& rBase,
|
|
|
|
OutlineViewShell& rViewShell,
|
|
|
|
View& rView) throw();
|
2002-01-24 13:33:46 +00:00
|
|
|
virtual ~SdUnoOutlineView() throw();
|
|
|
|
|
2004-07-13 13:00:12 +00:00
|
|
|
virtual void FireSwitchCurrentPage (SdPage* pCurrentPage) throw();
|
2002-01-24 13:33:46 +00:00
|
|
|
|
|
|
|
// XTypeProvider
|
|
|
|
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// XServiceInfo
|
|
|
|
virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// XSelectionSupplier
|
|
|
|
virtual sal_Bool SAL_CALL select( const ::com::sun::star::uno::Any& aSelection ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual ::com::sun::star::uno::Any SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException);
|
2004-07-13 13:00:12 +00:00
|
|
|
|
2005-03-23 12:57:43 +00:00
|
|
|
// XDrawView
|
|
|
|
virtual void SAL_CALL setCurrentPage( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL getCurrentPage( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2004-07-13 13:00:12 +00:00
|
|
|
protected:
|
|
|
|
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;
|
2002-01-24 13:33:46 +00:00
|
|
|
|
|
|
|
private:
|
2004-07-13 13:00:12 +00:00
|
|
|
SdPage* mpCurrentPage;
|
|
|
|
|
2004-01-20 10:42:28 +00:00
|
|
|
/** This is a shortcut for accessing the view shell data member of
|
|
|
|
the base class casted to the correct class.
|
2004-12-09 15:10:48 +00:00
|
|
|
@return
|
|
|
|
The returned pointer may be NULL.
|
2004-01-20 10:42:28 +00:00
|
|
|
*/
|
2004-12-09 15:10:48 +00:00
|
|
|
OutlineViewShell* GetDrawViewShell (void) const;
|
2002-01-24 13:33:46 +00:00
|
|
|
};
|
|
|
|
|
2004-01-20 10:42:28 +00:00
|
|
|
} // end of namespace sd
|
|
|
|
|
2003-10-06 14:25:11 +00:00
|
|
|
#endif
|