merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / inc / dlgsave.hxx
blob3bb882501e6ceac064a7458697af3d955fc75f87
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dlgsave.hxx,v $
10 * $Revision: 1.13 $
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"
36 #endif
37 #ifndef _DIALOG_HXX //autogen
38 #include <vcl/dialog.hxx>
39 #endif
40 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
41 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
42 #endif
43 #ifndef _SV_MSGBOX_HXX
44 #include <vcl/msgbox.hxx>
45 #endif
47 namespace com { namespace sun { namespace star {
48 namespace container {
49 class XNameAccess;
50 class XHierarchicalNameAccess;
52 namespace sdbc {
53 class XDatabaseMetaData;
54 class XConnection;
56 }}}
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
66 class Button;
67 class Edit;
68 namespace dbaui
70 class OSaveAsDlgImpl;
71 class IObjectNameCheck;
72 class OSaveAsDlg : public ModalDialog
74 private:
75 OSaveAsDlgImpl* m_pImpl;
76 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB;
77 public:
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;
96 private:
97 DECL_LINK(ButtonClickHdl, Button *);
98 DECL_LINK(EditModifyHdl, Edit * );
100 void implInitOnlyTitle(const String& _rLabel);
101 void implInit();
105 #endif // DBAUI_DLGSAVE_HXX