xref: /aoo42x/main/sw/source/ui/lingu/sdrhhcwrap.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SDRHHCWRAP_HXX_
28 #define _SDRHHCWRAP_HXX_
29 
30 #include <svx/svdoutl.hxx>
31 
32 class SwView;
33 class SdrTextObj;
34 class OutlinerView;
35 class SdrObjListIter;
36 
37 //////////////////////////////////////////////////////////////////////
38 
39 class SdrHHCWrapper : public SdrOutliner
40 {
41     // modified version of SdrSpeller
42 
43 	SwView* 			pView;
44 	SdrTextObj* 		pTextObj;
45 	OutlinerView*		pOutlView;
46     sal_Int32           nOptions;
47     sal_uInt16          nDocIndex;
48     LanguageType        nSourceLang;
49     LanguageType        nTargetLang;
50     const Font*         pTargetFont;
51     sal_Bool            bIsInteractive;
52 
53 public:
54     SdrHHCWrapper( SwView* pVw,
55                    LanguageType nSourceLanguage, LanguageType nTargetLanguage,
56                    const Font* pTargetFnt,
57                    sal_Int32 nConvOptions, sal_Bool bInteractive );
58 
59     virtual ~SdrHHCWrapper();
60 
61     virtual sal_Bool ConvertNextDocument();
62     void    StartTextConversion();
63 };
64 
65 //////////////////////////////////////////////////////////////////////
66 
67 #endif
68 
69