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