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 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
{
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
48 class IObjectNameCheck
;
49 class OSaveAsDlg
: public ModalDialog
52 OSaveAsDlgImpl
* m_pImpl
;
53 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> m_xContext
;
55 OSaveAsDlg( vcl::Window
* pParent
,const sal_Int32
& _rType
,
56 const ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>& _rxContext
,
57 const ::com::sun::star::uno::Reference
< ::com::sun::star::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 ::com::sun::star::uno::Reference
< ::com::sun::star::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() SAL_OVERRIDE
;
71 OUString
getName() const;
72 OUString
getCatalog() const;
73 OUString
getSchema() const;
75 DECL_LINK(ButtonClickHdl
, Button
*);
76 DECL_LINK(EditModifyHdl
, Edit
* );
78 void implInitOnlyTitle(const OUString
& _rLabel
);
83 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_DLGSAVE_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */