Bump for 3.6-28
[LibreOffice.git] / extensions / source / propctrlr / MasterDetailLinkDialog.hxx
blobd0b68fc18e2af4d1e51f7cdecdedcb5922265b14
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef PROPCTRLR_MASTERDETAILLINKDIALOG_HXX
29 #define PROPCTRLR_MASTERDETAILLINKDIALOG_HXX
30 #include <svtools/genericunodialog.hxx>
31 #include "modulepcr.hxx"
32 //........................................................................
33 namespace pcr
35 //........................................................................
37 class MasterDetailLinkDialog;
38 typedef ::svt::OGenericUnoDialog MasterDetailLinkDialog_DBase;
39 typedef ::comphelper::OPropertyArrayUsageHelper< MasterDetailLinkDialog > MasterDetailLinkDialog_PBase;
41 //========================================================================
42 //= MasterDetailLinkDialog
43 //========================================================================
44 class MasterDetailLinkDialog : public MasterDetailLinkDialog_DBase
45 ,public MasterDetailLinkDialog_PBase
46 ,public PcrClient
48 public:
49 MasterDetailLinkDialog(const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& _rxContext);
51 // XServiceInfo - static methods
52 static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException );
53 static ::rtl::OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException );
54 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
55 SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&);
56 private:
57 // XTypeProvider
58 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
60 // XServiceInfo
61 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
62 virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
64 // XPropertySet
65 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
66 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
68 // OPropertyArrayUsageHelper
69 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
71 // OGenericUnoDialog overridables
72 virtual Dialog* createDialog(Window* _pParent);
73 virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
75 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xDetail;
76 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xMaster;
77 ::rtl::OUString m_sExplanation;
78 ::rtl::OUString m_sDetailLabel;
79 ::rtl::OUString m_sMasterLabel;
82 //........................................................................
83 } // namespace pcr
84 //........................................................................
85 #endif // PROPCTRLR_MASTERDETAILLINKDIALOG_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */