build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / dbaccess / source / ui / inc / dlgsave.hxx
blob257117f8a5772cfd37ee8833a42dfde059b97231
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>
28 #include <memory>
30 namespace com { namespace sun { namespace star {
31 namespace sdbc {
32 class XConnection;
34 }}}
37 #define SAD_DEFAULT 0x0000
38 #define SAD_ADDITIONAL_DESCRIPTION 0x0001
40 #define SAD_TITLE_STORE_AS 0x0000
41 #define SAD_TITLE_PASTE_AS 0x0100
42 #define SAD_TITLE_RENAME 0x0200
44 class Button;
45 class Edit;
46 namespace dbaui
48 class OSaveAsDlgImpl;
49 class IObjectNameCheck;
50 class OSaveAsDlg : public ModalDialog
52 private:
53 std::unique_ptr<OSaveAsDlgImpl> m_pImpl;
54 css::uno::Reference< css::uno::XComponentContext > m_xContext;
55 public:
56 OSaveAsDlg( vcl::Window * pParent, sal_Int32 _rType,
57 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
58 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
59 const OUString& rDefault,
60 const IObjectNameCheck& _rObjectNameCheck,
61 sal_Int32 _nFlags = SAD_DEFAULT | SAD_TITLE_STORE_AS);
63 OSaveAsDlg( vcl::Window* _pParent,
64 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
65 const OUString& _rDefault,
66 const OUString& _sLabel,
67 const IObjectNameCheck& _rObjectNameCheck,
68 sal_Int32 _nFlags = SAD_DEFAULT | SAD_TITLE_STORE_AS);
69 virtual ~OSaveAsDlg() override;
70 virtual void dispose() override;
72 const OUString& getName() const;
73 OUString getCatalog() const;
74 OUString getSchema() const;
75 private:
76 DECL_LINK(ButtonClickHdl, Button *, void);
77 DECL_LINK(EditModifyHdl, Edit&, void);
79 void implInitOnlyTitle(const OUString& _rLabel);
80 void implInit();
84 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_DLGSAVE_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */