LibreOffice Module editeng (master) 1
edtdlg.hxx
Go to the documentation of this file.
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 INCLUDED_EDITENG_EDTDLG_HXX
20#define INCLUDED_EDITENG_EDTDLG_HXX
21
22#include <rtl/ustring.hxx>
24#include <i18nlangtag/lang.h>
25#include <vcl/abstdlg.hxx>
27
29{
30 class XThesaurus;
31 class XHyphenator;
32}
33
34template <typename Arg, typename Ret> class Link;
35
36class SvxSpellWrapper;
37class LinkParamNone;
38
39namespace weld { class Button; }
40namespace weld { class Toggleable; }
41
43{
44protected:
45 virtual ~AbstractThesaurusDialog() override = default;
46public:
47 virtual OUString GetWord() = 0;
48};
49
51{
52protected:
53 virtual ~AbstractHyphenWordDialog() override = default;
54};
55
57{
58protected:
59 virtual ~AbstractHangulHanjaConversionDialog() override = default;
60public:
61 virtual void EnableRubySupport( bool _bVal ) = 0;
62 virtual void SetByCharacter( bool _bByCharacter ) = 0;
63 virtual void SetConversionDirectionState( bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection ) = 0;
65 virtual void SetOptionsChangedHdl( const Link<LinkParamNone*,void>& _rHdl ) = 0;
66 virtual void SetIgnoreHdl( const Link<weld::Button&,void>& _rHdl ) = 0;
67 virtual void SetIgnoreAllHdl( const Link<weld::Button&,void>& _rHdl ) = 0;
68 virtual void SetChangeHdl( const Link<weld::Button&,void>& _rHdl ) = 0;
69 virtual void SetChangeAllHdl( const Link<weld::Button&,void>& _rHdl ) = 0;
70 virtual void SetClickByCharacterHdl( const Link<weld::Toggleable&,void>& _rHdl ) = 0;
72 virtual void SetFindHdl( const Link<weld::Button&,void>& _rHdl ) = 0;
73 virtual bool GetUseBothDirections() const= 0;
76 virtual void SetCurrentString(
77 const OUString& _rNewString,
78 const css::uno::Sequence< OUString >& _rSuggestions,
79 bool _bOriginatesFromDocument = true )=0;
80 virtual OUString GetCurrentString( ) const =0;
83 virtual void FocusSuggestion( )= 0;
84 virtual OUString GetCurrentSuggestion( ) const =0;
85};
86
88{
89public:
90 virtual ~EditAbstractDialogFactory() override; // needed for export of vtable
93 css::uno::Reference<css::linguistic2::XThesaurus> xThesaurus,
94 const OUString &rWord, LanguageType nLanguage) = 0;
95
97 const OUString &rWord, LanguageType nLang,
98 css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen,
99 SvxSpellWrapper* pWrapper) = 0;
101};
102
103#endif
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SetConversionDirectionState(bool _bTryBothDirections, editeng::HangulHanjaConversion::ConversionDirection _ePrimaryConversionDirection)=0
virtual void SetChangeAllHdl(const Link< weld::Button &, void > &_rHdl)=0
virtual OUString GetCurrentSuggestion() const =0
virtual editeng::HangulHanjaConversion::ConversionDirection GetDirection(editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection) const =0
virtual void SetIgnoreHdl(const Link< weld::Button &, void > &_rHdl)=0
virtual void SetByCharacter(bool _bByCharacter)=0
virtual OUString GetCurrentString() const =0
virtual void SetCurrentString(const OUString &_rNewString, const css::uno::Sequence< OUString > &_rSuggestions, bool _bOriginatesFromDocument=true)=0
virtual void SetClickByCharacterHdl(const Link< weld::Toggleable &, void > &_rHdl)=0
virtual void EnableRubySupport(bool _bVal)=0
virtual void SetConversionFormat(editeng::HangulHanjaConversion::ConversionFormat _eType)=0
virtual void SetIgnoreAllHdl(const Link< weld::Button &, void > &_rHdl)=0
virtual void SetFindHdl(const Link< weld::Button &, void > &_rHdl)=0
virtual editeng::HangulHanjaConversion::ConversionFormat GetConversionFormat() const =0
virtual void SetOptionsChangedHdl(const Link< LinkParamNone *, void > &_rHdl)=0
virtual void SetChangeHdl(const Link< weld::Button &, void > &_rHdl)=0
virtual ~AbstractHangulHanjaConversionDialog() override=default
virtual bool GetUseBothDirections() const =0
virtual void SetConversionFormatChangedHdl(const Link< weld::Toggleable &, void > &_rHdl)=0
virtual ~AbstractHyphenWordDialog() override=default
virtual OUString GetWord()=0
virtual ~AbstractThesaurusDialog() override=default
virtual VclPtr< AbstractThesaurusDialog > CreateThesaurusDialog(weld::Widget *, css::uno::Reference< css::linguistic2::XThesaurus > xThesaurus, const OUString &rWord, LanguageType nLanguage)=0
virtual VclPtr< AbstractHangulHanjaConversionDialog > CreateHangulHanjaConversionDialog(weld::Widget *pParent)=0
virtual VclPtr< AbstractHyphenWordDialog > CreateHyphenWordDialog(weld::Widget *, const OUString &rWord, LanguageType nLang, css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen, SvxSpellWrapper *pWrapper)=0
static VclAbstractDialogFactory * Create()
#define EDITENG_DLLPUBLIC
Definition: editengdllapi.h:28