Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : : #ifndef _IDERDLL2_HXX
21 : : #define _IDERDLL2_HXX
22 : :
23 : : class StarBASIC;
24 : : class SvxSearchItem;
25 : :
26 : : #include <tools/gen.hxx>
27 : : #include <tools/link.hxx>
28 : :
29 : : #include <bastypes.hxx>
30 : : #include <bastype2.hxx>
31 : :
32 : : #define INVPOSITION 0x7fff
33 : :
34 : : class BasicIDEData
35 : : {
36 : : private:
37 : : SvxSearchItem* pSearchItem;
38 : :
39 : : LibInfos aLibInfos;
40 : :
41 : : BasicEntryDescriptor m_aLastEntryDesc;
42 : :
43 : : String aAddLibPath;
44 : : String aAddLibFilter;
45 : :
46 : : sal_uInt16 nBasicDialogCount;
47 : :
48 : : bool bChoosingMacro;
49 : : bool bShellInCriticalSection;
50 : :
51 : : protected:
52 : : DECL_LINK( GlobalBasicBreakHdl, StarBASIC * );
53 : :
54 : : public:
55 : : BasicIDEData();
56 : : ~BasicIDEData();
57 : :
58 : 0 : LibInfos& GetLibInfos() { return aLibInfos; }
59 : :
60 : 0 : BasicEntryDescriptor& GetLastEntryDescriptor() { return m_aLastEntryDesc; }
61 : 0 : void SetLastEntryDescriptor( BasicEntryDescriptor& rDesc ) { m_aLastEntryDesc = rDesc; }
62 : :
63 : 0 : bool& ChoosingMacro() { return bChoosingMacro; }
64 : 0 : bool& ShellInCriticalSection() { return bShellInCriticalSection; }
65 : :
66 : : sal_uInt16 GetBasicDialogCount() const { return nBasicDialogCount; }
67 : : void IncBasicDialogCount() { nBasicDialogCount++; }
68 : : void DecBasicDialogCount() { nBasicDialogCount--; }
69 : :
70 : : SvxSearchItem& GetSearchItem() const;
71 : : void SetSearchItem( const SvxSearchItem& rItem );
72 : :
73 : 0 : const String& GetAddLibPath() const { return aAddLibPath; }
74 : 0 : void SetAddLibPath( const String& rPath ) { aAddLibPath = rPath; }
75 : :
76 : 0 : const String& GetAddLibFilter() const { return aAddLibFilter; }
77 : 0 : void SetAddLibFilter( const String& rFilter ) { aAddLibFilter = rFilter; }
78 : : };
79 : :
80 : :
81 : : #endif //_IDERDLL2_HXX
82 : :
83 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|