LibreOffice Module basctl (master) 1
propbrw.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 <sal/config.h>
23
24#include <vector>
25
26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/frame/XFrame2.hpp>
28#include <svl/lstner.hxx>
30#include <svx/svdmark.hxx>
31#include "bastypes.hxx"
32
33class SfxBindings;
34class SdrView;
35class SfxViewShell;
36
37namespace basctl
38{
39
40class DialogWindowLayout;
41
42class PropBrw final : public DockingWindow, public SfxListener, public SfxBroadcaster
43{
44private:
47
48 css::uno::Reference< css::frame::XFrame2 >
50 css::uno::Reference< css::beans::XPropertySet >
52 css::uno::Reference< css::frame::XModel >
54
56 virtual bool Close() override;
57
58 typedef std::vector< css::uno::Reference< css::uno::XInterface> > InterfaceArray;
59
60 static css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >
61 CreateMultiSelectionSequence( const SdrMarkList& _rMarkList );
62 void implSetNewObjectSequence( const css::uno::Sequence
63 < css::uno::Reference< css::uno::XInterface > >& _rObjectSeq );
64
65 void implSetNewObject( const css::uno::Reference< css::beans::XPropertySet >& _rxObject);
66
67 static OUString GetHeadlineName( const css::uno::Reference< css::beans::XPropertySet >& _rxObject);
68
69public:
70 explicit PropBrw (DialogWindowLayout&);
71 virtual ~PropBrw() override;
72 virtual void dispose() override;
73 // note: changing the Context document to an instance other than the one given in the ctor is not supported
74 // currently
75 void Update( const SfxViewShell* pShell );
76
77private:
78 void ImplUpdate( const css::uno::Reference< css::frame::XModel >& _rxContextDocument, SdrView* pView );
81};
82
83} // namespace basctl
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void ImplDestroyController()
Definition: propbrw.cxx:204
virtual ~PropBrw() override
Definition: propbrw.cxx:190
PropBrw(DialogWindowLayout &)
Definition: propbrw.cxx:85
static OUString GetHeadlineName(const css::uno::Reference< css::beans::XPropertySet > &_rxObject)
bool m_bInitialStateChange
Definition: propbrw.hxx:46
css::uno::Reference< css::beans::XPropertySet > m_xBrowserController
Definition: propbrw.hxx:51
static css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > CreateMultiSelectionSequence(const SdrMarkList &_rMarkList)
Definition: propbrw.cxx:235
std::vector< css::uno::Reference< css::uno::XInterface > > InterfaceArray
Definition: propbrw.hxx:58
virtual bool Close() override
Definition: propbrw.cxx:227
virtual void dispose() override
Definition: propbrw.cxx:195
void ImplReCreateController()
Definition: propbrw.cxx:120
void Update(const SfxViewShell *pShell)
Definition: propbrw.cxx:59
css::uno::Reference< css::frame::XFrame2 > m_xMeAsFrame
Definition: propbrw.hxx:49
VclPtr< vcl::Window > m_xContentArea
Definition: propbrw.hxx:45
void ImplUpdate(const css::uno::Reference< css::frame::XModel > &_rxContextDocument, SdrView *pView)
Definition: propbrw.cxx:425
void implSetNewObject(const css::uno::Reference< css::beans::XPropertySet > &_rxObject)
css::uno::Reference< css::frame::XModel > m_xContextDocument
Definition: propbrw.hxx:53
SdrView * pView
Definition: propbrw.hxx:55
void implSetNewObjectSequence(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > &_rObjectSeq)
Definition: propbrw.cxx:277