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: iderdll2.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 ************************************************************************/
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
50 Accelerator
* pAccelerator
;
51 SvxSearchItem
* pSearchItem
;
55 BasicEntryDescriptor m_aLastEntryDesc
;
63 USHORT nBasicDialogCount
;
65 BOOL OLD_bRelMacroRecording
;
67 BOOL bShellInCriticalSection
;
70 DECL_LINK( GlobalBasicBreakHdl
, StarBASIC
* );
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