Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sd / source / ui / inc / SdUnoOutlineView.hxx
blobcfad20ac58299e0fd444c6b2b54699b281d6c746
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 #pragma once
22 #include "DrawSubController.hxx"
24 namespace sd {
26 class OutlineViewShell;
28 /** This class implements the OutlineViewShell specific part of the controller.
30 class SdUnoOutlineView final
31 : public DrawSubControllerInterfaceBase
33 public:
34 SdUnoOutlineView (OutlineViewShell& rViewShell) noexcept;
35 virtual ~SdUnoOutlineView() noexcept override;
37 // XSelectionSupplier
39 virtual sal_Bool SAL_CALL select (
40 const css::uno::Any& aSelection) override;
42 virtual css::uno::Any SAL_CALL getSelection() override;
44 virtual void SAL_CALL addSelectionChangeListener (
45 const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) override;
47 virtual void SAL_CALL removeSelectionChangeListener (
48 const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) override;
50 // XDrawView
52 virtual void SAL_CALL setCurrentPage (
53 const css::uno::Reference<css::drawing::XDrawPage >& xPage) override;
55 virtual css::uno::Reference<css::drawing::XDrawPage> SAL_CALL getCurrentPage() override;
57 // XFastPropertySet
59 virtual void SAL_CALL setFastPropertyValue (
60 sal_Int32 nHandle,
61 const css::uno::Any& rValue) override;
63 virtual css::uno::Any SAL_CALL getFastPropertyValue (
64 sal_Int32 nHandle) override;
66 // XServiceInfo
67 virtual OUString SAL_CALL getImplementationName( ) override;
68 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
69 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
71 private:
72 OutlineViewShell& mrOutlineViewShell;
75 } // end of namespace sd
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */