update dev300-m58
[ooovba.git] / sw / source / ui / inc / swrenamexnameddlg.hxx
blobd9f2845a9770c035f5224c908e9437464a8e9b94
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: swrenamexnameddlg.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
30 #ifndef _SWRENAMEXNAMEDDLG_HXX
31 #define _SWRENAMEXNAMEDDLG_HXX
34 #include <vcl/dialog.hxx>
35 #include <vcl/fixed.hxx>
36 #include <vcl/edit.hxx>
37 #ifndef _SV_BUTTON_HXX //autogen
38 #include <vcl/button.hxx>
39 #endif
40 #include <actctrl.hxx>
41 #include <com/sun/star/frame/XController.hpp>
42 #include <com/sun/star/text/XTextCursor.hpp>
43 #include <com/sun/star/container/XNameAccess.hpp>
44 #include <com/sun/star/awt/XControl.hpp>
45 #include <com/sun/star/container/XNamed.hpp>
46 #include <tools/resary.hxx>
47 #include <swunodef.hxx>
51 /* -----------------09.06.99 14:36-------------------
53 * --------------------------------------------------*/
54 class SwRenameXNamedDlg : public ModalDialog
56 FixedText aNewNameFT;
57 NoSpaceEdit aNewNameED;
58 FixedLine aNameFL;
59 OKButton aOk;
60 CancelButton aCancel;
61 HelpButton aHelp;
63 String sRemoveWarning;
65 STAR_REFERENCE( container::XNamed ) & xNamed;
66 STAR_REFERENCE( container::XNameAccess ) & xNameAccess;
67 STAR_REFERENCE( container::XNameAccess ) xSecondAccess;
68 STAR_REFERENCE( container::XNameAccess ) xThirdAccess;
70 DECL_LINK(OkHdl, OKButton*);
71 DECL_LINK(ModifyHdl, NoSpaceEdit*);
73 public:
74 SwRenameXNamedDlg( Window* pParent,
75 STAR_REFERENCE( container::XNamed ) & xNamed,
76 STAR_REFERENCE( container::XNameAccess ) & xNameAccess );
78 void SetForbiddenChars( const String& rSet )
79 { aNewNameED.SetForbiddenChars( rSet ); }
81 void SetAlternativeAccess(
82 STAR_REFERENCE( container::XNameAccess ) & xSecond,
83 STAR_REFERENCE( container::XNameAccess ) & xThird )
85 xSecondAccess = xSecond;
86 xThirdAccess = xThird;
90 #endif