Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / dbaccess / source / ui / inc / dlgsave.hxx
blobe20cec77768c6c0ea2025c8c5c54ac9bafb4efb7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_DLGSAVE_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_INC_DLGSAVE_HXX
23 #include "apitools.hxx"
24 #include <vcl/dialog.hxx>
25 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 #include <vcl/msgbox.hxx>
29 namespace com { namespace sun { namespace star {
30 namespace sdbc {
31 class XConnection;
33 }}}
36 #define SAD_DEFAULT 0x0000
37 #define SAD_ADDITIONAL_DESCRIPTION 0x0001
39 #define SAD_TITLE_STORE_AS 0x0000
40 #define SAD_TITLE_PASTE_AS 0x0100
41 #define SAD_TITLE_RENAME 0x0200
43 class Button;
44 class Edit;
45 namespace dbaui
47 class OSaveAsDlgImpl;
48 class IObjectNameCheck;
49 class OSaveAsDlg : public ModalDialog
51 private:
52 OSaveAsDlgImpl* m_pImpl;
53 css::uno::Reference< css::uno::XComponentContext > m_xContext;
54 public:
55 OSaveAsDlg( vcl::Window * pParent, sal_Int32 _rType,
56 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
57 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
58 const OUString& rDefault,
59 const IObjectNameCheck& _rObjectNameCheck,
60 sal_Int32 _nFlags = SAD_DEFAULT | SAD_TITLE_STORE_AS);
62 OSaveAsDlg( vcl::Window* _pParent,
63 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
64 const OUString& _rDefault,
65 const OUString& _sLabel,
66 const IObjectNameCheck& _rObjectNameCheck,
67 sal_Int32 _nFlags = SAD_DEFAULT | SAD_TITLE_STORE_AS);
68 virtual ~OSaveAsDlg();
69 virtual void dispose() override;
71 const OUString& getName() const;
72 OUString getCatalog() const;
73 OUString getSchema() const;
74 private:
75 DECL_LINK_TYPED(ButtonClickHdl, Button *, void);
76 DECL_LINK_TYPED(EditModifyHdl, Edit&, void);
78 void implInitOnlyTitle(const OUString& _rLabel);
79 void implInit();
83 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_DLGSAVE_HXX
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */