LibreOffice Module dbaccess (master) 1
linkeddocuments.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 "AppElementType.hxx"
23
24#include <com/sun/star/container/XNameAccess.hpp>
25#include <com/sun/star/uno/XComponentContext.hpp>
26#include <com/sun/star/lang/XComponent.hpp>
27#include <com/sun/star/sdbc/XConnection.hpp>
28#include <com/sun/star/sdb/application/XDatabaseDocumentUI.hpp>
30
31namespace weld { class Window; }
32namespace dbaui
33{
34
35 // OLinkedDocumentsAccess
37 {
38 css::uno::Reference< css::uno::XComponentContext >
40 css::uno::Reference< css::container::XNameAccess >
42 css::uno::Reference< css::sdbc::XConnection>
44 css::uno::Reference< css::sdb::application::XDatabaseDocumentUI >
48
49 public:
51 weld::Window* pDialogParent,
52 const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI >& i_rDocumentUI,
53 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
54 const css::uno::Reference< css::container::XNameAccess >& _rxContainer,
55 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
56 OUString _sDataSourceName
57 );
59
60 bool isConnected() const { return m_xConnection.is(); }
61
62 css::uno::Reference< css::lang::XComponent>
63 open(
64 const OUString& _rLinkName,
65 css::uno::Reference< css::lang::XComponent>& _xDefinition,
66 ElementOpenMode _eOpenMode,
67 const ::comphelper::NamedValueCollection& _rAdditionalArgs
68 );
69
70 css::uno::Reference< css::lang::XComponent >
72 sal_Int32 i_nActionID,
73 const ::comphelper::NamedValueCollection& i_rCreationArgs,
74 css::uno::Reference< css::lang::XComponent >& o_rDefinition
75 );
76
78 const sal_Int32 _nCommandType,
79 const OUString& _rObjectName
80 );
82 const sal_Int32 _nCommandType,
83 const OUString& _rObjectName
84 );
85 void newQueryWithPilot();
86 void newTableWithPilot();
87
88 private:
89 css::uno::Reference< css::lang::XComponent >
91 const OUString& _rLinkName,
92 css::uno::Reference< css::lang::XComponent >& _xDefinition,
93 ElementOpenMode _eOpenMode,
94 const ::comphelper::NamedValueCollection& _rAdditionalArgs
95 );
96
97 void
99 const char* _pWizardService,
100 const sal_Int32 _nCommandType,
101 const OUString& _rObjectName
102 );
103
104 };
105
106} // namespace dbaui
107
108/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::uno::XComponentContext > m_xContext
css::uno::Reference< css::lang::XComponent > impl_open(const OUString &_rLinkName, css::uno::Reference< css::lang::XComponent > &_xDefinition, ElementOpenMode _eOpenMode, const ::comphelper::NamedValueCollection &_rAdditionalArgs)
void newFormWithPilot(const sal_Int32 _nCommandType, const OUString &_rObjectName)
css::uno::Reference< css::container::XNameAccess > m_xDocumentContainer
css::uno::Reference< css::sdbc::XConnection > m_xConnection
css::uno::Reference< css::lang::XComponent > newDocument(sal_Int32 i_nActionID, const ::comphelper::NamedValueCollection &i_rCreationArgs, css::uno::Reference< css::lang::XComponent > &o_rDefinition)
void newReportWithPilot(const sal_Int32 _nCommandType, const OUString &_rObjectName)
css::uno::Reference< css::lang::XComponent > open(const OUString &_rLinkName, css::uno::Reference< css::lang::XComponent > &_xDefinition, ElementOpenMode _eOpenMode, const ::comphelper::NamedValueCollection &_rAdditionalArgs)
void impl_newWithPilot(const char *_pWizardService, const sal_Int32 _nCommandType, const OUString &_rObjectName)
OLinkedDocumentsAccess(weld::Window *pDialogParent, const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &i_rDocumentUI, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const css::uno::Reference< css::container::XNameAccess > &_rxContainer, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, OUString _sDataSourceName)
css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > m_xDocumentUI