Update ooo320-m1
[ooovba.git] / basctl / source / basicide / iderdll2.hxx
blob8b0d15620afb68e1fbc4a8e28187097987cc1b05
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: iderdll2.hxx,v $
10 * $Revision: 1.6 $
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 _IDERDLL2_HXX
32 #define _IDERDLL2_HXX
34 class StarBASIC;
35 class SvxSearchItem;
36 class Accelerator;
38 #include <tools/string.hxx>
39 #include <tools/gen.hxx>
40 #include <tools/link.hxx>
42 #include <bastypes.hxx>
43 #include <bastype2.hxx>
45 #define INVPOSITION 0x7fff
47 class BasicIDEData
49 private:
50 Accelerator* pAccelerator;
51 SvxSearchItem* pSearchItem;
53 LibInfos aLibInfos;
55 BasicEntryDescriptor m_aLastEntryDesc;
57 Point aObjCatPos;
58 Size aObjCatSize;
60 String aAddLibPath;
61 String aAddLibFilter;
63 USHORT nBasicDialogCount;
65 BOOL OLD_bRelMacroRecording;
66 BOOL bChoosingMacro;
67 BOOL bShellInCriticalSection;
69 protected:
70 DECL_LINK( GlobalBasicBreakHdl, StarBASIC * );
72 public:
73 BasicIDEData();
74 ~BasicIDEData();
76 LibInfos& GetLibInfos() { return aLibInfos; }
78 BasicEntryDescriptor& GetLastEntryDescriptor() { return m_aLastEntryDesc; }
79 void SetLastEntryDescriptor( BasicEntryDescriptor& rDesc ) { m_aLastEntryDesc = rDesc; }
81 BOOL& ChoosingMacro() { return bChoosingMacro; }
82 BOOL& ShellInCriticalSection() { return bShellInCriticalSection; }
84 USHORT GetBasicDialogCount() const { return nBasicDialogCount; }
85 void IncBasicDialogCount() { nBasicDialogCount++; }
86 void DecBasicDialogCount() { nBasicDialogCount--; }
88 SvxSearchItem& GetSearchItem() const;
89 void SetSearchItem( const SvxSearchItem& rItem );
91 void SetObjectCatalogPos( const Point& rPnt )
92 { aObjCatPos = rPnt; }
93 const Point& GetObjectCatalogPos() const
94 { return aObjCatPos; }
96 void SetObjectCatalogSize( const Size& rSize )
97 { aObjCatSize = rSize; }
98 const Size& GetObjectCatalogSize() const
99 { return aObjCatSize; }
101 const String& GetAddLibPath() const { return aAddLibPath; }
102 void SetAddLibPath( const String& rPath ) { aAddLibPath = rPath; }
104 const String& GetAddLibFilter() const { return aAddLibFilter; }
105 void SetAddLibFilter( const String& rFilter ) { aAddLibFilter = rFilter; }
107 DECL_LINK( ExecuteMacroEvent, void * );
111 #endif //_IDERDLL2_HXX