fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / basctl / source / inc / propbrw.hxx
blob76020e6c0e576dffafafeb07affa93acd61094a7
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 #ifndef BASCTL_PROPBRW_HXX
21 #define BASCTL_PROPBRW_HXX
23 #include <com/sun/star/beans/XPropertySet.hpp>
24 #include <com/sun/star/frame/XFrame2.hpp>
25 #include <comphelper/stl_types.hxx>
26 #include <svl/lstner.hxx>
27 #include <svl/brdcst.hxx>
28 #include <svx/svdmark.hxx>
29 #include "bastypes.hxx"
31 class SfxBindings;
32 class SdrView;
33 class SfxViewShell;
35 namespace basctl
38 class DialogWindowLayout;
40 class PropBrw : public DockingWindow, public SfxListener, public SfxBroadcaster
42 private:
43 bool m_bInitialStateChange;
45 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame2 >
46 m_xMeAsFrame;
47 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
48 m_xBrowserController;
49 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >
50 m_xBrowserComponentWindow;
51 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >
52 m_xContextDocument;
54 DialogWindowLayout& rLayout;
56 protected:
57 SdrView* pView;
58 virtual void Resize();
59 virtual sal_Bool Close();
61 DECLARE_STL_VECTOR(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>, InterfaceArray);
63 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >
64 CreateMultiSelectionSequence( const SdrMarkList& _rMarkList );
65 void implSetNewObjectSequence( const ::com::sun::star::uno::Sequence
66 < ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >& _rObjectSeq );
68 void implSetNewObject(
69 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject);
71 OUString GetHeadlineName(
72 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject);
74 public:
75 explicit PropBrw (DialogWindowLayout&);
76 virtual ~PropBrw();
77 using Window::Update;
78 // note: changing the Context document to an instance other than the one given in the ctor is not supported
79 // currently
80 void Update( const SfxViewShell* pShell );
81 SdrView* GetCurView() const { return pView; }
83 private:
84 void ImplUpdate( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& _rxContextDocument, SdrView* pView );
85 void ImplDestroyController();
86 void ImplReCreateController();
89 } // namespace basctl
91 #endif // BASCTL_PROPBRW_HXX
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */