Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef _EDT_ABSTDLG_HXX
20 : #define _EDT_ABSTDLG_HXX
21 :
22 : #include <tools/solar.h>
23 : #include <tools/string.hxx>
24 : #include <editeng/editengdllapi.h>
25 : #include <i18npool/lang.h>
26 : #include <com/sun/star/uno/Reference.hxx>
27 : #include <vcl/abstdlg.hxx>
28 : #include <editeng/hangulhanja.hxx>
29 :
30 : namespace com { namespace sun { namespace star { namespace linguistic2
31 : {
32 : class XThesaurus;
33 : class XHyphenator;
34 : } } } }
35 :
36 : class Window;
37 : class ResId;
38 : class Link;
39 : class SvxSpellWrapper;
40 :
41 0 : class AbstractThesaurusDialog : public VclAbstractDialog
42 : {
43 : public:
44 : virtual String GetWord() = 0;
45 : virtual sal_uInt16 GetLanguage() const = 0;
46 : virtual Window* GetWindow() = 0;
47 : };
48 :
49 0 : class AbstractHyphenWordDialog : public VclAbstractDialog
50 : {
51 : public:
52 : virtual void SelLeft() = 0;
53 : virtual void SelRight() = 0;
54 : virtual Window* GetWindow() = 0;
55 : };
56 :
57 0 : class AbstractHangulHanjaConversionDialog : public VclAbstractTerminatedDialog
58 : {
59 : public:
60 : virtual void EnableRubySupport( sal_Bool _bVal ) = 0;
61 : virtual void SetByCharacter( sal_Bool _bByCharacter ) = 0;
62 : virtual void SetConversionDirectionState( sal_Bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) = 0;
63 : virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) = 0;
64 : virtual void SetOptionsChangedHdl( const Link& _rHdl ) = 0;
65 : virtual void SetIgnoreHdl( const Link& _rHdl ) = 0;
66 : virtual void SetIgnoreAllHdl( const Link& _rHdl ) = 0;
67 : virtual void SetChangeHdl( const Link& _rHdl ) = 0;
68 : virtual void SetChangeAllHdl( const Link& _rHdl ) = 0;
69 : virtual void SetClickByCharacterHdl( const Link& _rHdl ) = 0;
70 : virtual void SetConversionFormatChangedHdl( const Link& _rHdl ) = 0;
71 : virtual void SetFindHdl( const Link& _rHdl ) = 0;
72 : virtual sal_Bool GetUseBothDirections( ) const= 0;
73 : virtual editeng::HangulHanjaConversion::ConversionDirection GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) const = 0;
74 : virtual void SetCurrentString(
75 : const String& _rNewString,
76 : const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
77 : bool _bOriginatesFromDocument = true )=0;
78 : virtual String GetCurrentString( ) const =0;
79 : virtual editeng::HangulHanjaConversion::ConversionFormat GetConversionFormat( ) const =0;
80 : virtual void FocusSuggestion( )= 0;
81 : virtual String GetCurrentSuggestion( ) const =0;
82 : };
83 :
84 1 : class EDITENG_DLLPUBLIC EditAbstractDialogFactory : virtual public VclAbstractDialogFactory
85 : {
86 : public:
87 : virtual ~EditAbstractDialogFactory(); // needed for export of vtable
88 : static EditAbstractDialogFactory* Create();
89 : virtual AbstractThesaurusDialog* CreateThesaurusDialog( Window*, ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus > xThesaurus,
90 : const String &rWord, sal_Int16 nLanguage ) = 0;
91 :
92 : virtual AbstractHyphenWordDialog* CreateHyphenWordDialog( Window*,
93 : const String &rWord, LanguageType nLang,
94 : ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator > &xHyphen,
95 : SvxSpellWrapper* pWrapper ) = 0;
96 : virtual AbstractHangulHanjaConversionDialog * CreateHangulHanjaConversionDialog( Window* _pParent,
97 : editeng::HangulHanjaConversion::ConversionDirection _ePrimaryDirection ) = 0;
98 : };
99 :
100 : #endif
101 :
102 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|