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 BASCTL_IDERDLL2_HXX
21 : #define BASCTL_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 : #include <boost/scoped_ptr.hpp>
33 :
34 : namespace basctl
35 : {
36 :
37 : class ExtraData
38 : {
39 : private:
40 : boost::scoped_ptr<SvxSearchItem> pSearchItem;
41 :
42 : LibInfos aLibInfos;
43 :
44 : EntryDescriptor m_aLastEntryDesc;
45 :
46 : String aAddLibPath;
47 : String aAddLibFilter;
48 :
49 : sal_uInt16 nBasicDialogCount;
50 :
51 : bool bChoosingMacro;
52 : bool bShellInCriticalSection;
53 :
54 : protected:
55 : DECL_LINK( GlobalBasicBreakHdl, StarBASIC * );
56 :
57 : public:
58 : ExtraData();
59 : ~ExtraData();
60 :
61 0 : LibInfos& GetLibInfos () { return aLibInfos; }
62 :
63 0 : EntryDescriptor& GetLastEntryDescriptor () { return m_aLastEntryDesc; }
64 0 : void SetLastEntryDescriptor (EntryDescriptor& rDesc) { m_aLastEntryDesc = rDesc; }
65 :
66 0 : bool& ChoosingMacro() { return bChoosingMacro; }
67 0 : bool& ShellInCriticalSection() { return bShellInCriticalSection; }
68 :
69 : sal_uInt16 GetBasicDialogCount() const { return nBasicDialogCount; }
70 : void IncBasicDialogCount() { nBasicDialogCount++; }
71 : void DecBasicDialogCount() { nBasicDialogCount--; }
72 :
73 0 : SvxSearchItem& GetSearchItem() const { return *pSearchItem; }
74 : void SetSearchItem( const SvxSearchItem& rItem );
75 :
76 0 : const String& GetAddLibPath() const { return aAddLibPath; }
77 0 : void SetAddLibPath( const String& rPath ) { aAddLibPath = rPath; }
78 :
79 0 : const String& GetAddLibFilter() const { return aAddLibFilter; }
80 0 : void SetAddLibFilter( const String& rFilter ) { aAddLibFilter = rFilter; }
81 : };
82 :
83 : } // namespace basctl
84 :
85 : #endif // BASCTL_IDERDLL2_HXX
86 :
87 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|