bump product version to 5.0.4.1
[LibreOffice.git] / basctl / source / basicide / iderdll2.hxx
blobe64b6a01ae4e79893d14f6195c22b59126b67710
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_BASCTL_SOURCE_BASICIDE_IDERDLL2_HXX
21 #define INCLUDED_BASCTL_SOURCE_BASICIDE_IDERDLL2_HXX
23 class StarBASIC;
24 class SvxSearchItem;
27 #include <bastypes.hxx>
28 #include <bastype2.hxx>
30 #include <boost/scoped_ptr.hpp>
32 namespace basctl
35 class ExtraData
37 private:
38 boost::scoped_ptr<SvxSearchItem> pSearchItem;
40 LibInfos aLibInfos;
42 EntryDescriptor m_aLastEntryDesc;
44 OUString aAddLibPath;
45 OUString aAddLibFilter;
47 sal_uInt16 nBasicDialogCount;
49 bool bChoosingMacro;
50 bool bShellInCriticalSection;
52 protected:
53 DECL_STATIC_LINK_TYPED( ExtraData, GlobalBasicBreakHdl, StarBASIC *, sal_uInt16 );
55 public:
56 ExtraData();
57 ~ExtraData();
59 LibInfos& GetLibInfos () { return aLibInfos; }
61 EntryDescriptor& GetLastEntryDescriptor () { return m_aLastEntryDesc; }
62 void SetLastEntryDescriptor (EntryDescriptor& rDesc) { m_aLastEntryDesc = rDesc; }
64 bool& ChoosingMacro() { return bChoosingMacro; }
65 bool& ShellInCriticalSection() { return bShellInCriticalSection; }
67 sal_uInt16 GetBasicDialogCount() const { return nBasicDialogCount; }
68 void IncBasicDialogCount() { nBasicDialogCount++; }
69 void DecBasicDialogCount() { nBasicDialogCount--; }
71 SvxSearchItem& GetSearchItem() const { return *pSearchItem; }
72 void SetSearchItem( const SvxSearchItem& rItem );
74 const OUString& GetAddLibPath() const { return aAddLibPath; }
75 void SetAddLibPath( const OUString& rPath ) { aAddLibPath = rPath; }
77 const OUString& GetAddLibFilter() const { return aAddLibFilter; }
78 void SetAddLibFilter( const OUString& rFilter ) { aAddLibFilter = rFilter; }
81 } // namespace basctl
83 #endif // INCLUDED_BASCTL_SOURCE_BASICIDE_IDERDLL2_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */