LibreOffice Module dbaccess (master) 1
exsrcbrw.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 "brwctrlr.hxx"
23
25#include <comphelper/uno3.hxx>
26
27// SbaExternalSourceBrowser
28
29namespace dbaui
30{
31 class SbaXFormAdapter;
34 ,public css::util::XModifyBroadcaster
35 {
37 // for multiplexing the modify events
40 // our queryDispatch will ask our frame, which first will ask our queryDispatch, so we need to protect against
41 // recursion
42
43 public:
44 SbaExternalSourceBrowser(const css::uno::Reference< css::uno::XComponentContext >& _rM);
45
46 // UNO
48 virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& _rType) override;
49 // virtual css::uno::Sequence< css::uno::Reference< css::reflection::XIdlClass > > getIdlClasses();
50
51 // static css::uno::Reference< css::reflection::XIdlClass > getStaticIdlClass();
52
53 // css::frame::XDispatch
54 virtual void SAL_CALL dispatch(const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue>& aArgs) override;
55
56 // css::frame::XDispatchProvider
57 virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags) override;
58
59 // css::util::XModifyListener
60 virtual void SAL_CALL modified(const css::lang::EventObject& aEvent) override;
61
62 // css::util::XModifyBroadcaster
63 virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > & aListener) override;
64 virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > & aListener) override;
65
66 // css::lang::XComponent
67 virtual void SAL_CALL disposing() override;
68
69 // css::form::XLoadListener
70 virtual void SAL_CALL unloading(const css::lang::EventObject& aEvent) override;
71
72 // css::lang::XEventListener
73 virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
74
75 // XServiceInfo
76 virtual OUString SAL_CALL getImplementationName() override;
77 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
78
79 private:
80 virtual ~SbaExternalSourceBrowser() override;
81
82 virtual css::uno::Reference< css::sdbc::XRowSet > CreateForm() override;
83 virtual bool InitializeForm( const css::uno::Reference< css::beans::XPropertySet >& i_formProperties ) override;
84
85 virtual bool LoadForm() override;
86
87 void Attach(const css::uno::Reference< css::sdbc::XRowSet > & xMaster);
88
89 void ClearView();
90
91 void startListening();
92 void stopListening();
93 };
94}
95
96/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: exsrcbrw.cxx:73
virtual void SAL_CALL dispatch(const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
Definition: exsrcbrw.cxx:110
virtual void SAL_CALL unloading(const css::lang::EventObject &aEvent) override
Definition: exsrcbrw.cxx:292
virtual ~SbaExternalSourceBrowser() override
Definition: exsrcbrw.cxx:69
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
Definition: exsrcbrw.cxx:101
void Attach(const css::uno::Reference< css::sdbc::XRowSet > &xMaster)
Definition: exsrcbrw.cxx:302
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override
Definition: exsrcbrw.cxx:217
virtual bool InitializeForm(const css::uno::Reference< css::beans::XPropertySet > &i_formProperties) override
Definition: exsrcbrw.cxx:89
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: exsrcbrw.cxx:282
virtual void SAL_CALL disposing() override
Definition: exsrcbrw.cxx:270
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: exsrcbrw.cxx:287
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &_rType) override
Definition: exsrcbrw.cxx:50
virtual css::uno::Reference< css::sdbc::XRowSet > CreateForm() override
Definition: exsrcbrw.cxx:83
SbaExternalSourceBrowser(const css::uno::Reference< css::uno::XComponentContext > &_rM)
Definition: exsrcbrw.cxx:61
virtual OUString SAL_CALL getImplementationName() override
Definition: exsrcbrw.cxx:78
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > m_aModifyListeners
Definition: exsrcbrw.hxx:36
rtl::Reference< SbaXFormAdapter > m_pDataSourceImpl
Definition: exsrcbrw.hxx:38
virtual bool LoadForm() override
Definition: exsrcbrw.cxx:94
URL aURL
Definition: intercept.cxx:87
#define DECLARE_UNO3_DEFAULTS(classname, baseclass)