2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +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 .
|
|
|
|
*/
|
2014-04-18 20:41:29 +02:00
|
|
|
#ifndef INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_MASTERDETAILLINKDIALOG_HXX
|
|
|
|
#define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_MASTERDETAILLINKDIALOG_HXX
|
2018-05-27 14:07:43 +02:00
|
|
|
|
|
|
|
#include <comphelper/proparrhlp.hxx>
|
2008-03-05 16:09:23 +00:00
|
|
|
#include <svtools/genericunodialog.hxx>
|
|
|
|
#include "modulepcr.hxx"
|
2014-02-25 18:36:00 +01:00
|
|
|
|
2008-03-05 16:09:23 +00:00
|
|
|
namespace pcr
|
|
|
|
{
|
2014-02-25 18:36:00 +01:00
|
|
|
|
2008-03-05 16:09:23 +00:00
|
|
|
|
|
|
|
class MasterDetailLinkDialog;
|
|
|
|
typedef ::svt::OGenericUnoDialog MasterDetailLinkDialog_DBase;
|
|
|
|
typedef ::comphelper::OPropertyArrayUsageHelper< MasterDetailLinkDialog > MasterDetailLinkDialog_PBase;
|
|
|
|
|
|
|
|
class MasterDetailLinkDialog : public MasterDetailLinkDialog_DBase
|
|
|
|
,public MasterDetailLinkDialog_PBase
|
|
|
|
{
|
|
|
|
public:
|
2015-10-18 07:53:51 +02:00
|
|
|
explicit MasterDetailLinkDialog(const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
|
2008-03-05 16:09:23 +00:00
|
|
|
|
|
|
|
// XServiceInfo - static methods
|
2017-01-19 17:57:50 +01:00
|
|
|
/// @throws css::uno::RuntimeException
|
2017-01-26 12:28:58 +01:00
|
|
|
static css::uno::Sequence< OUString > getSupportedServiceNames_static();
|
2017-01-19 17:57:50 +01:00
|
|
|
/// @throws css::uno::RuntimeException
|
2017-01-26 12:28:58 +01:00
|
|
|
static OUString getImplementationName_static();
|
2015-09-30 11:48:44 +02:00
|
|
|
static css::uno::Reference< css::uno::XInterface >
|
No need to keep these whitelisted functions decorated with SAL_CALL
The only effect SAL_CALL effectively has on LO-internal code is to change non-
static member functions from __thiscall to __cdecl in MSVC (where all other
functions are __cdecl by default, anyway). (For 3rd-party code, it could be
argued that SAL_CALL is useful on function declarations in the URE stable
interface other than non-static member functions, too, in case 3rd-party code
uses a compiler switch to change the default calling convention to something
other than __cdecl. But loplugin:salcall exempts the URE stable interface,
anyway.)
One could argue that SAL_CALL, even if today it effectively only affects non-
static member functions in MSVC, could be extended in the future to affect more
functions on more platforms. However, the current code would already not
support that. For example, 3af500580b1c82eabd60335c9ebc458a3f68850c
"loplugin:salcall fix functions" changed FrameControl_createInstance in
UnoControls/source/base/registercontrols.cxx to no longer be SAL_CALL, even
though its address (in ctl_component_getFacrory, in the same file) is passed to
cppuhelper::createSingleFactory as an argument of type
cppu::ComponentInstantiation, which is a pointer to SAL_CALL function.
Change-Id: I3acbf7314a3d7868ed70e35bb5c47bc11a0b7ff6
Reviewed-on: https://gerrit.libreoffice.org/46436
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-14 08:45:02 +01:00
|
|
|
Create(const css::uno::Reference< css::uno::XComponentContext >&);
|
2008-03-05 16:09:23 +00:00
|
|
|
private:
|
|
|
|
// XTypeProvider
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) override;
|
2008-03-05 16:09:23 +00:00
|
|
|
|
|
|
|
// XServiceInfo
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual OUString SAL_CALL getImplementationName() override;
|
|
|
|
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
|
2008-03-05 16:09:23 +00:00
|
|
|
|
|
|
|
// XPropertySet
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
|
2008-03-05 16:09:23 +00:00
|
|
|
|
|
|
|
// OPropertyArrayUsageHelper
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
|
2008-03-05 16:09:23 +00:00
|
|
|
|
|
|
|
// OGenericUnoDialog overridables
|
2019-09-15 20:41:25 +01:00
|
|
|
virtual std::unique_ptr<weld::DialogController> createDialog(const css::uno::Reference<css::awt::XWindow>& rParent) override;
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void implInitialize(const css::uno::Any& _rValue) override;
|
2008-03-05 16:09:23 +00:00
|
|
|
|
2015-09-30 11:48:44 +02:00
|
|
|
css::uno::Reference< css::beans::XPropertySet> m_xDetail;
|
|
|
|
css::uno::Reference< css::beans::XPropertySet> m_xMaster;
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString m_sExplanation;
|
|
|
|
OUString m_sDetailLabel;
|
|
|
|
OUString m_sMasterLabel;
|
2008-03-05 16:09:23 +00:00
|
|
|
};
|
|
|
|
|
2014-02-25 18:36:00 +01:00
|
|
|
|
2008-03-05 16:09:23 +00:00
|
|
|
} // namespace pcr
|
2014-02-25 18:36:00 +01:00
|
|
|
|
2014-04-18 20:41:29 +02:00
|
|
|
#endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_MASTERDETAILLINKDIALOG_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|