build fix
[LibreOffice.git] / basic / qa / cppunit / basictest.hxx
blobd435489846fbf349342a1425adb5d01af100f8be
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/.
8 */
9 #ifndef INCLUDED_BASIC_QA_CPPUNIT_BASICTEST_HXX
10 #define INCLUDED_BASIC_QA_CPPUNIT_BASICTEST_HXX
12 #include <sal/types.h>
13 #include <cppunit/TestFixture.h>
14 #include <cppunit/extensions/HelperMacros.h>
15 #include <cppunit/plugin/TestPlugIn.h>
16 #include <test/bootstrapfixture.hxx>
17 #include <basic/sbstar.hxx>
18 #include <basic/basrdll.hxx>
19 #include <basic/sbmod.hxx>
20 #include <basic/sbmeth.hxx>
21 #include <basic/sbuno.hxx>
23 class MacroSnippet
25 private:
26 bool mbError;
27 BasicDLL maDll; // we need a dll instance for resource manager etc.
28 SbModuleRef mpMod;
29 StarBASICRef mpBasic;
31 void InitSnippet();
32 void MakeModule( const OUString& sSource );
34 public:
35 explicit MacroSnippet( const OUString& sSource );
36 MacroSnippet();
38 void LoadSourceFromFile( const OUString& sMacroFileURL );
40 SbxVariableRef Run( const css::uno::Sequence< css::uno::Any >& rArgs );
42 SbxVariableRef Run();
44 bool Compile();
46 DECL_LINK( BasicErrorHdl, StarBASIC *, bool );
48 bool HasError();
51 #endif
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */