merge the formfield patch from ooo-build
[ooovba.git] / tools / win / inc / toolsdll.hxx
blob91e90af48d7af94a99cbfe5ad3de86a2d7912ef0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: toolsdll.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _TOOLSDLL_HXX
32 #define _TOOLSDLL_HXX
34 #ifdef WIN
36 #ifndef _STRING_H
37 #include <string.h>
38 #endif
39 #include <tools/svwin.h>
40 #include <tools/solar.h>
41 #include <tools/shl.hxx>
43 // ----------------
44 // - MemMgr-Daten -
45 // ----------------
47 // Anzahl Freispeicherlisten
48 #define MEM_FREELIST_COUNT 15
51 // --------------
52 // - Tools-Data -
53 // --------------
55 struct SVDATA;
56 struct FreeBlock;
58 struct MemData
60 FreeBlock* pFirstBlocks[MEM_FREELIST_COUNT]; // Erste Bloecke in Freispeicherlisten
61 void* pNewHandler; // New-Handler
62 int nMultiThread; // MultiThread an/aus
65 struct ToolsData
67 // !!! SVDATA muss in jedem Fall ganz vorne in der Struktur stehen !!!
68 SVDATA* pSVData; // Pointer auf StarView-Daten
69 HANDLE hMem; // Handler der Tools-Daten
70 MemData aMemD; // Daten der Speicherverwaltung
71 void* aAppData[SHL_COUNT]; // Daten fuer andere Shared Libs
75 // ----------------------
76 // - Zugriffsfunktionen -
77 // ----------------------
79 // IN APPDATA.ASM
80 extern "C"
82 ToolsData* FAR PASCAL ImpGetAppData();
83 void FAR PASCAL ImpSetAppData( ToolsData* pData );
86 // IN TOOLSDLL.CXX
87 ToolsData* ImpGetToolsData();
89 #endif
91 #endif // _DLL_HXX