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 .
22 #include <com/sun/star/ui/XDockingAreaAcceptor.hpp>
23 #include <com/sun/star/frame/XFrame.hpp>
25 #include <cppuhelper/implbase.hxx>
26 #include <cppuhelper/weakref.hxx>
30 class DockingAreaDefaultAcceptor final
: public ::cppu::WeakImplHelper
< css::ui::XDockingAreaAcceptor
>
34 // constructor / destructor
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!
41 @seealso class Desktop
42 @seealso class OTasksEnumeration
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 *//*-*****************************************************************************************************/
49 DockingAreaDefaultAcceptor( const css::uno::Reference
< css::frame::XFrame
>& xOwner
);
50 virtual ~DockingAreaDefaultAcceptor() override
;
52 // XDockingAreaAcceptor
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
;
59 // (should be private everyway!)
63 css::uno::WeakReference
< css::frame::XFrame
> m_xOwner
; /// weak reference to our frame object!
66 } // namespace framework
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */