1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 DBAUI_DLGSAVE_HXX
21 #define DBAUI_DLGSAVE_HXX
23 #include "apitools.hxx"
24 #include <vcl/dialog.hxx>
25 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
26 #include <vcl/msgbox.hxx>
28 namespace com
{ namespace sun
{ namespace star
{
35 #define SAD_DEFAULT 0x0000
36 #define SAD_ADDITIONAL_DESCRIPTION 0x0001
38 #define SAD_TITLE_STORE_AS 0x0000
39 #define SAD_TITLE_PASTE_AS 0x0100
40 #define SAD_TITLE_RENAME 0x0200
47 class IObjectNameCheck
;
48 class OSaveAsDlg
: public ModalDialog
51 OSaveAsDlgImpl
* m_pImpl
;
52 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> m_xContext
;
54 OSaveAsDlg( Window
* pParent
,const sal_Int32
& _rType
,
55 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
,
56 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _xConnection
,
57 const String
& rDefault
,
58 const IObjectNameCheck
& _rObjectNameCheck
,
59 sal_Int32 _nFlags
= SAD_DEFAULT
| SAD_TITLE_STORE_AS
);
61 OSaveAsDlg( Window
* _pParent
,
62 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
,
63 const String
& _rDefault
,
64 const String
& _sLabel
,
65 const IObjectNameCheck
& _rObjectNameCheck
,
66 sal_Int32 _nFlags
= SAD_DEFAULT
| SAD_TITLE_STORE_AS
);
67 virtual ~OSaveAsDlg();
69 String
getName() const;
70 String
getCatalog() const;
71 String
getSchema() const;
73 DECL_LINK(ButtonClickHdl
, Button
*);
74 DECL_LINK(EditModifyHdl
, Edit
* );
76 void implInitOnlyTitle(const String
& _rLabel
);
81 #endif // DBAUI_DLGSAVE_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */