6b9920c1a6
2007/12/12 12:45:02 af 1.1.2.1: #i18486# Initial revision.
97 lines
3.1 KiB
C++
97 lines
3.1 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: PresenterTextView.hxx,v $
|
|
*
|
|
* $Revision: 1.2 $
|
|
*
|
|
* last change: $Author: kz $ $Date: 2008-04-03 14:08:55 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* 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.
|
|
*
|
|
* 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.
|
|
*
|
|
* 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
|
|
*
|
|
************************************************************************/
|
|
|
|
#ifndef SD_PRESENTER_TEXT_VIEW_HXX
|
|
#define SD_PRESENTER_TEXT_VIEW_HXX
|
|
|
|
#include "tools/PropertySet.hxx"
|
|
#include <com/sun/star/beans/XPropertySet.hpp>
|
|
#include <com/sun/star/lang/XInitialization.hpp>
|
|
#include <cppuhelper/basemutex.hxx>
|
|
#include <cppuhelper/implbase1.hxx>
|
|
#include <boost/noncopyable.hpp>
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
namespace css = ::com::sun::star;
|
|
|
|
namespace sd { namespace presenter {
|
|
|
|
namespace {
|
|
typedef ::cppu::ImplInheritanceHelper1 <
|
|
tools::PropertySet,
|
|
css::lang::XInitialization
|
|
> PresenterTextViewInterfaceBase;
|
|
}
|
|
|
|
|
|
/** Render text into bitmaps. An edit engine is used to render the text.
|
|
This service is used by the presenter screen to render the notes view.
|
|
*/
|
|
class PresenterTextView
|
|
: private ::boost::noncopyable,
|
|
public PresenterTextViewInterfaceBase
|
|
{
|
|
public:
|
|
explicit PresenterTextView (const css::uno::Reference<css::uno::XComponentContext>& rxContext);
|
|
virtual ~PresenterTextView (void);
|
|
|
|
// XInitialization
|
|
|
|
virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments)
|
|
throw (css::uno::Exception, css::uno::RuntimeException);
|
|
|
|
|
|
protected:
|
|
virtual void SAL_CALL disposing (void);
|
|
|
|
virtual css::uno::Any GetPropertyValue (
|
|
const ::rtl::OUString& rsPropertyName);
|
|
virtual css::uno::Any SetPropertyValue (
|
|
const ::rtl::OUString& rsPropertyName,
|
|
const css::uno::Any& rValue);
|
|
|
|
private:
|
|
class Implementation;
|
|
::boost::scoped_ptr<Implementation> mpImplementation;
|
|
|
|
/** This method throws a DisposedException when the object has already been
|
|
disposed.
|
|
*/
|
|
void ThrowIfDisposed (void) throw (css::lang::DisposedException);
|
|
};
|
|
|
|
} } // end of namespace ::sd::presenter
|
|
|
|
#endif
|