1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dlgsave.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef DBAUI_DLGSAVE_HXX
32 #define DBAUI_DLGSAVE_HXX
34 #ifndef _DBASHARED_APITOOLS_HXX_
35 #include "apitools.hxx"
37 #ifndef _DIALOG_HXX //autogen
38 #include <vcl/dialog.hxx>
40 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
41 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
43 #ifndef _SV_MSGBOX_HXX
44 #include <vcl/msgbox.hxx>
47 namespace com
{ namespace sun
{ namespace star
{
50 class XHierarchicalNameAccess
;
53 class XDatabaseMetaData
;
59 #define SAD_DEFAULT 0x0000
60 #define SAD_ADDITIONAL_DESCRIPTION 0x0001
62 #define SAD_TITLE_STORE_AS 0x0000
63 #define SAD_TITLE_PASTE_AS 0x0100
64 #define SAD_TITLE_RENAME 0x0200
71 class IObjectNameCheck
;
72 class OSaveAsDlg
: public ModalDialog
75 OSaveAsDlgImpl
* m_pImpl
;
76 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> m_xORB
;
78 OSaveAsDlg( Window
* pParent
,const sal_Int32
& _rType
,
79 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
,
80 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _xConnection
,
81 const String
& rDefault
,
82 const IObjectNameCheck
& _rObjectNameCheck
,
83 sal_Int32 _nFlags
= SAD_DEFAULT
| SAD_TITLE_STORE_AS
);
85 OSaveAsDlg( Window
* _pParent
,
86 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
,
87 const String
& _rDefault
,
88 const String
& _sLabel
,
89 const IObjectNameCheck
& _rObjectNameCheck
,
90 sal_Int32 _nFlags
= SAD_DEFAULT
| SAD_TITLE_STORE_AS
);
91 virtual ~OSaveAsDlg();
93 String
getName() const;
94 String
getCatalog() const;
95 String
getSchema() const;
97 DECL_LINK(ButtonClickHdl
, Button
*);
98 DECL_LINK(EditModifyHdl
, Edit
* );
100 void implInitOnlyTitle(const String
& _rLabel
);
105 #endif // DBAUI_DLGSAVE_HXX