Files
libreoffice/dbaccess/source/ui/inc/exsrcbrw.hxx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

106 lines
4.4 KiB
C++
Raw Normal View History

2010-10-27 12:33:13 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2012-06-14 17:39:53 +01:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-10-26 13:46:14 +00:00
#ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_EXSRCBRW_HXX
#define INCLUDED_DBACCESS_SOURCE_UI_INC_EXSRCBRW_HXX
2000-10-26 13:46:14 +00:00
#include "brwctrlr.hxx"
2000-10-26 13:46:14 +00:00
#include <comphelper/uno3.hxx>
// SbaExternalSourceBrowser
2000-10-26 13:46:14 +00:00
namespace dbaui
{
class SbaXFormAdapter;
class SbaExternalSourceBrowser final
2000-10-26 13:46:14 +00:00
:public SbaXDataBrowserController
,public css::util::XModifyBroadcaster
2000-10-26 13:46:14 +00:00
{
::comphelper::OInterfaceContainerHelper2 m_aModifyListeners;
2000-10-26 13:46:14 +00:00
// for multiplexing the modify events
SbaXFormAdapter* m_pDataSourceImpl;
bool m_bInQueryDispatch;
2000-10-26 13:46:14 +00:00
// our queryDispatch will ask our frame, which first will ask our queryDispatch, so we need to protect against
// recursion
public:
SbaExternalSourceBrowser(const css::uno::Reference< css::uno::XComponentContext >& _rM);
2000-10-26 13:46:14 +00:00
/// @throws css::uno::RuntimeException
static OUString getImplementationName_Static();
/// @throws css::uno::RuntimeException
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
static css::uno::Reference< css::uno::XInterface >
Create(const css::uno::Reference< css::lang::XMultiServiceFactory >&);
2000-10-26 13:46:14 +00:00
// UNO
DECLARE_UNO3_DEFAULTS(SbaExternalSourceBrowser, SbaXDataBrowserController)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& _rType) override;
// virtual css::uno::Sequence< css::uno::Reference< css::reflection::XIdlClass > > getIdlClasses();
2000-10-26 13:46:14 +00:00
// static css::uno::Reference< css::reflection::XIdlClass > getStaticIdlClass();
2000-10-26 13:46:14 +00:00
// css::frame::XDispatch
virtual void SAL_CALL dispatch(const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue>& aArgs) override;
2000-10-26 13:46:14 +00:00
// css::frame::XDispatchProvider
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags) override;
2000-10-26 13:46:14 +00:00
// css::util::XModifyListener
virtual void SAL_CALL modified(const css::lang::EventObject& aEvent) override;
2000-10-26 13:46:14 +00:00
// css::util::XModifyBroadcaster
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > & aListener) override;
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > & aListener) override;
2000-10-26 13:46:14 +00:00
// css::lang::XComponent
virtual void SAL_CALL disposing() override;
2000-10-26 13:46:14 +00:00
// css::form::XLoadListener
virtual void SAL_CALL unloading(const css::lang::EventObject& aEvent) override;
2000-10-26 13:46:14 +00:00
// css::lang::XEventListener
virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
2000-10-26 13:46:14 +00:00
// XServiceInfo
virtual OUString SAL_CALL getImplementationName() override;
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
2000-10-26 13:46:14 +00:00
private:
virtual ~SbaExternalSourceBrowser() override;
2000-10-26 13:46:14 +00:00
virtual css::uno::Reference< css::sdbc::XRowSet > CreateForm() override;
virtual bool InitializeForm( const css::uno::Reference< css::beans::XPropertySet >& i_formProperties ) override;
2000-10-26 13:46:14 +00:00
virtual bool LoadForm() override;
2000-10-26 13:46:14 +00:00
void Attach(const css::uno::Reference< css::sdbc::XRowSet > & xMaster);
2000-10-26 13:46:14 +00:00
void ClearView();
void startListening();
void stopListening();
};
}
#endif // INCLUDED_DBACCESS_SOURCE_UI_INC_EXSRCBRW_HXX
2010-10-27 12:33:13 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */