Use basegfx::rad2deg() instead of *57.29577951308
[LibreOffice.git] / include / editeng / edtdlg.hxx
blob68783dc2d8b635b776e4b5cb35ef506fd542f26e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_EDITENG_EDTDLG_HXX
20 #define INCLUDED_EDITENG_EDTDLG_HXX
22 #include <rtl/ustring.hxx>
23 #include <editeng/editengdllapi.h>
24 #include <i18nlangtag/lang.h>
25 #include <vcl/abstdlg.hxx>
26 #include <editeng/hangulhanja.hxx>
28 namespace com::sun::star::linguistic2
30 class XThesaurus;
31 class XHyphenator;
34 template <typename Arg, typename Ret> class Link;
36 class SvxSpellWrapper;
37 class LinkParamNone;
39 namespace weld { class Button; }
40 namespace weld { class Toggleable; }
42 class AbstractThesaurusDialog : public VclAbstractDialog
44 protected:
45 virtual ~AbstractThesaurusDialog() override = default;
46 public:
47 virtual OUString GetWord() = 0;
50 class AbstractHyphenWordDialog : public VclAbstractDialog
52 protected:
53 virtual ~AbstractHyphenWordDialog() override = default;
56 class AbstractHangulHanjaConversionDialog : public VclAbstractTerminatedDialog
58 protected:
59 virtual ~AbstractHangulHanjaConversionDialog() override = default;
60 public:
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;
64 virtual void SetConversionFormat( editeng::HangulHanjaConversion::ConversionFormat _eType ) = 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;
71 virtual void SetConversionFormatChangedHdl( const Link<weld::Toggleable&,void>& _rHdl ) = 0;
72 virtual void SetFindHdl( const Link<weld::Button&,void>& _rHdl ) = 0;
73 virtual bool GetUseBothDirections() const= 0;
74 virtual editeng::HangulHanjaConversion::ConversionDirection
75 GetDirection( editeng::HangulHanjaConversion::ConversionDirection _eDefaultDirection ) 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;
81 virtual editeng::HangulHanjaConversion::ConversionFormat
82 GetConversionFormat( ) const =0;
83 virtual void FocusSuggestion( )= 0;
84 virtual OUString GetCurrentSuggestion( ) const =0;
87 class EDITENG_DLLPUBLIC EditAbstractDialogFactory : virtual public VclAbstractDialogFactory
89 public:
90 virtual ~EditAbstractDialogFactory() override; // needed for export of vtable
91 static EditAbstractDialogFactory* Create();
92 virtual VclPtr<AbstractThesaurusDialog> CreateThesaurusDialog(weld::Widget*,
93 css::uno::Reference<css::linguistic2::XThesaurus> xThesaurus,
94 const OUString &rWord, LanguageType nLanguage) = 0;
96 virtual VclPtr<AbstractHyphenWordDialog> CreateHyphenWordDialog(weld::Widget*,
97 const OUString &rWord, LanguageType nLang,
98 css::uno::Reference< css::linguistic2::XHyphenator > &xHyphen,
99 SvxSpellWrapper* pWrapper) = 0;
100 virtual VclPtr<AbstractHangulHanjaConversionDialog> CreateHangulHanjaConversionDialog(weld::Widget* pParent) = 0;
103 #endif
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */