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: dbnamdlg.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 SC_DBNAMDLG_HXX
32 #define SC_DBNAMDLG_HXX
34 #ifndef _COMBOBOX_HXX //autogen
35 #include <vcl/combobox.hxx>
38 #ifndef _FIXED_HXX //autogen
39 #include <vcl/fixed.hxx>
42 #ifndef _MOREBTN_HXX //autogen
43 #include <vcl/morebtn.hxx>
45 #include "anyrefdg.hxx"
46 #include "dbcolect.hxx"
47 #include "expftext.hxx"
53 //============================================================================
55 class ScDbNameDlg
: public ScAnyRefDlg
58 ScDbNameDlg( SfxBindings
* pB
, SfxChildWindow
* pCW
, Window
* pParent
,
59 ScViewData
* ptrViewData
);
62 virtual void SetReference( const ScRange
& rRef
, ScDocument
* pDoc
);
64 virtual BOOL
IsRefInputMode() const;
65 virtual void SetActive();
73 formula::RefEdit aEdAssign
;
74 formula::RefButton aRbAssign
;
80 CheckBox aBtnStripData
;
81 ScExpandedFixedText aFTSource
; //@18.09.97 erweiterter FixedText
82 FixedText aFTOperations
;
85 CancelButton aBtnCancel
;
88 PushButton aBtnRemove
;
94 const String aStrAdd
; // "Hinzufuegen"
95 const String aStrModify
; // "Aendern"
96 const String aStrNoName
; // "unbenannt"
97 const String aStrInvalid
;
100 String aStrOperations
;
102 ScViewData
* pViewData
;
105 ScAddress::Details aAddrDetails
;
107 ScDBCollection aLocalDbCol
;
115 void UpdateDBData( const String
& rStrName
);
116 void SetInfoStrings( const ScDBData
* pDBData
);
118 DECL_LINK( CancelBtnHdl
, void * );
119 DECL_LINK( OkBtnHdl
, void * );
120 DECL_LINK( AddBtnHdl
, void * );
121 DECL_LINK( RemoveBtnHdl
, void * );
122 DECL_LINK( NameModifyHdl
, void * );
123 DECL_LINK( AssModifyHdl
, void * );
129 #endif // SC_DBNAMDLG_HXX