LibreOffice Module framework (master) 1
dockingareadefaultacceptor.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <com/sun/star/ui/XDockingAreaAcceptor.hpp>
23#include <com/sun/star/frame/XFrame.hpp>
24
27
28namespace framework{
29
30class DockingAreaDefaultAcceptor final : public ::cppu::WeakImplHelper< css::ui::XDockingAreaAcceptor >
31{
32 public:
33
34 // constructor / destructor
35
36 /*-****************************************************************************************************
37 @short constructor to initialize this instance
38 @descr A docking area acceptor
39 But we need an instance to create more than one enumerations to the same tasklist!
40
41 @seealso class Desktop
42 @seealso class OTasksEnumeration
43
44 @param "xOwner" is a reference to our owner and must be the desktop!
45 @param "pTasks" is a pointer to the taskcontainer of the desktop. We need it to create a new enumeration.
46 @onerror Do nothing and reset this object to default with an empty list.
47 *//*-*****************************************************************************************************/
48
49 DockingAreaDefaultAcceptor( const css::uno::Reference< css::frame::XFrame >& xOwner );
50 virtual ~DockingAreaDefaultAcceptor() override;
51
52 // XDockingAreaAcceptor
53
54 virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getContainerWindow() override;
55 virtual sal_Bool SAL_CALL requestDockingAreaSpace( const css::awt::Rectangle& RequestedSpace ) override;
56 virtual void SAL_CALL setDockingAreaSpace( const css::awt::Rectangle& BorderSpace ) override;
57
58 // variables
59 // (should be private everyway!)
60
61 private:
62
63 css::uno::WeakReference< css::frame::XFrame > m_xOwner;
64};
65
66} // namespace framework
67
68/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setDockingAreaSpace(const css::awt::Rectangle &BorderSpace) override
css::uno::WeakReference< css::frame::XFrame > m_xOwner
virtual sal_Bool SAL_CALL requestDockingAreaSpace(const css::awt::Rectangle &RequestedSpace) override
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getContainerWindow() override
DockingAreaDefaultAcceptor(const css::uno::Reference< css::frame::XFrame > &xOwner)
unsigned char sal_Bool