2010-10-27 12:53:26 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-01-20 10:42:28 +00:00
|
|
|
|
|
|
|
#ifndef SD_UNO_OUTLINE_VIEW_HXX
|
|
|
|
#define SD_UNO_OUTLINE_VIEW_HXX
|
|
|
|
|
2006-03-21 16:25:51 +00:00
|
|
|
#include "DrawSubController.hxx"
|
2008-04-03 12:56:02 +00:00
|
|
|
#include <cppuhelper/basemutex.hxx>
|
2006-03-21 16:25:51 +00:00
|
|
|
#include <com/sun/star/lang/EventObject.hpp>
|
2008-04-03 12:56:02 +00:00
|
|
|
|
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;
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2006-03-21 16:25:51 +00:00
|
|
|
/** This class implements the OutlineViewShell specific part of the controller.
|
|
|
|
*/
|
2004-01-20 10:42:28 +00:00
|
|
|
class SdUnoOutlineView
|
2008-04-03 12:56:02 +00:00
|
|
|
: private cppu::BaseMutex,
|
|
|
|
public DrawSubControllerInterfaceBase
|
2002-01-24 13:33:46 +00:00
|
|
|
{
|
|
|
|
public:
|
2004-06-03 10:54:09 +00:00
|
|
|
SdUnoOutlineView (
|
2012-09-11 11:22:17 +02:00
|
|
|
OutlineViewShell& rViewShell) throw();
|
2006-03-21 16:25:51 +00:00
|
|
|
virtual ~SdUnoOutlineView (void) throw();
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2008-04-03 12:56:02 +00:00
|
|
|
virtual void SAL_CALL disposing (void);
|
|
|
|
|
|
|
|
|
2002-01-24 13:33:46 +00:00
|
|
|
// XSelectionSupplier
|
2008-04-03 12:56:02 +00:00
|
|
|
|
|
|
|
virtual sal_Bool SAL_CALL select (
|
|
|
|
const css::uno::Any& aSelection)
|
|
|
|
throw(css::lang::IllegalArgumentException,
|
|
|
|
css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual css::uno::Any SAL_CALL getSelection (void)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2004-07-13 13:00:12 +00:00
|
|
|
|
2005-03-23 12:57:43 +00:00
|
|
|
// XDrawView
|
|
|
|
|
2008-04-03 12:56:02 +00:00
|
|
|
virtual void SAL_CALL setCurrentPage (
|
|
|
|
const css::uno::Reference<css::drawing::XDrawPage >& xPage)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL getCurrentPage (void)
|
|
|
|
throw(css::uno::RuntimeException);
|
|
|
|
|
|
|
|
|
|
|
|
// XFastPropertySet
|
|
|
|
|
|
|
|
virtual void SAL_CALL setFastPropertyValue (
|
2004-07-13 13:00:12 +00:00
|
|
|
sal_Int32 nHandle,
|
2008-04-03 12:56:02 +00:00
|
|
|
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);
|
2002-01-24 13:33:46 +00:00
|
|
|
|
2005-11-08 08:04:36 +00:00
|
|
|
// lang::XEventListener
|
|
|
|
virtual void SAL_CALL
|
|
|
|
disposing (const ::com::sun::star::lang::EventObject& rEventObject)
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2010-04-01 11:00:20 +02:00
|
|
|
// 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);
|
|
|
|
|
2002-01-24 13:33:46 +00:00
|
|
|
private:
|
2006-03-21 16:25:51 +00:00
|
|
|
OutlineViewShell& mrOutlineViewShell;
|
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
|
2010-10-27 12:53:26 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|