1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SD_PRESENTER_TEXT_VIEW_HXX
21 #define SD_PRESENTER_TEXT_VIEW_HXX
23 #include "tools/PropertySet.hxx"
24 #include <com/sun/star/beans/XPropertySet.hpp>
25 #include <com/sun/star/lang/XInitialization.hpp>
26 #include <cppuhelper/basemutex.hxx>
27 #include <cppuhelper/implbase1.hxx>
28 #include <boost/noncopyable.hpp>
29 #include <boost/scoped_ptr.hpp>
31 namespace sd
{ namespace presenter
{
34 typedef ::cppu::ImplInheritanceHelper1
<
36 css::lang::XInitialization
37 > PresenterTextViewInterfaceBase
;
41 /** Render text into bitmaps. An edit engine is used to render the text.
42 This service is used by the presenter screen to render the notes view.
44 class PresenterTextView
45 : private ::boost::noncopyable
,
46 public PresenterTextViewInterfaceBase
49 explicit PresenterTextView (const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
50 virtual ~PresenterTextView (void);
54 virtual void SAL_CALL
initialize (const css::uno::Sequence
<css::uno::Any
>& rArguments
)
55 throw (css::uno::Exception
, css::uno::RuntimeException
);
59 virtual void SAL_CALL
disposing (void);
61 virtual css::uno::Any
GetPropertyValue (
62 const OUString
& rsPropertyName
);
63 virtual css::uno::Any
SetPropertyValue (
64 const OUString
& rsPropertyName
,
65 const css::uno::Any
& rValue
);
69 ::boost::scoped_ptr
<Implementation
> mpImplementation
;
71 /** This method throws a DisposedException when the object has already been
74 void ThrowIfDisposed (void) throw (css::lang::DisposedException
);
77 } } // end of namespace ::sd::presenter
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */