xref: /aoo42x/main/sd/source/ui/inc/fuhhconv.hxx (revision 67e470da)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SD_FUHHCONV_HXX
25 #define _SD_FUHHCONV_HXX
26 
27 #ifndef _SD_FUPOOR_HXX
28 #include "fupoor.hxx"
29 #endif
30 
31 namespace sd {
32 
33 class Outliner;
34 
35 
36 class FuHangulHanjaConversion : public FuPoor
37 {
38  public:
39 	TYPEINFO();
40 
41 	static FunctionReference Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq );
42 
43     void StartConversion( sal_Int16 nSourceLanguage,  sal_Int16 nTargetLanguage,
44                           const Font *pTargetFont, sal_Int32 nOptions, sal_Bool bIsInteractive );
45 
46 	void StartChineseConversion();
47 
48     void ConvertStyles( sal_Int16 nTargetLanguage, const Font *pTargetFont );
49 
GetOutliner() const50 	Outliner* GetOutliner() const { return pSdOutliner; }
51 
52  protected:
53 	~FuHangulHanjaConversion();
54 
55 	Outliner* 	pSdOutliner;
56 	sal_Bool			bOwnOutliner;
57 
58 private:
59 	FuHangulHanjaConversion (
60         ViewShell* pViewSh,
61         ::sd::Window* pWin,
62         ::sd::View* pView,
63         SdDrawDocument* pDoc,
64         SfxRequest& rReq );
65 
66 };
67 
68 #endif // _SD_FUHHCONV_HXX
69 
70 
71 } // end of namespace sd
72