summaryrefslogtreecommitdiff
path: root/sd/source/ui/presenter/PresenterTextView.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-03 13:08:55 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-03 13:08:55 +0000
commit6b9920c1a6d6e9b64892c4f59e6050bcfd979087 (patch)
tree29c0d25bf79c9f34e611d936d977b161bf6b0327 /sd/source/ui/presenter/PresenterTextView.hxx
parent8eb793ffe72fd43af88db95dbb64105e5452076d (diff)
INTEGRATION: CWS presenterview (1.1.2); FILE ADDED
2007/12/12 12:45:02 af 1.1.2.1: #i18486# Initial revision.
Diffstat (limited to 'sd/source/ui/presenter/PresenterTextView.hxx')
-rw-r--r--sd/source/ui/presenter/PresenterTextView.hxx97
1 files changed, 97 insertions, 0 deletions
diff --git a/sd/source/ui/presenter/PresenterTextView.hxx b/sd/source/ui/presenter/PresenterTextView.hxx
new file mode 100644
index 000000000000..97a41dcd3ff3
--- /dev/null
+++ b/sd/source/ui/presenter/PresenterTextView.hxx
@@ -0,0 +1,97 @@
+/*************************************************************************
+ *
+ * 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