23#include <com/sun/star/uno/Reference.h>
24#include <com/sun/star/uno/Sequence.hxx>
61 const sal_Int32 nUnitEnd );
64 std::u16string_view rOrigText,
65 const css::uno::Sequence< sal_Int32 > *pOffsets,
74 bool _bAllowImplicitChangesForNotConvertibleText )
override;
76 const sal_Int32 nUnitEnd )
override;
78 const sal_Int32 nUnitStart,
const sal_Int32 nUnitEnd,
79 const OUString& rOrigText,
80 const OUString& rReplaceWith,
81 const css::uno::Sequence< sal_Int32 > &rOffsets,
89 const vcl::Font *pFont, sal_uInt16 nFontWhichId );
94 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
95 const css::lang::Locale& rSourceLocale,
96 const css::lang::Locale& rTargetLocale,
TextConvWrapper & operator=(const TextConvWrapper &)=delete
virtual ~TextConvWrapper() override
virtual void ReplaceUnit(const sal_Int32 nUnitStart, const sal_Int32 nUnitEnd, const OUString &rOrigText, const OUString &rReplaceWith, const css::uno::Sequence< sal_Int32 > &rOffsets, ReplacementAction eAction, LanguageType *pNewUnitLanguage) override
replaces a text unit within a text portion with a new text
virtual bool HasRubySupport() const override
specifies if rubies are supported by the document implementing this class.
TextConvWrapper(const TextConvWrapper &)=delete
void ConvStart_impl(SvxSpellArea eSpell)
void SetLanguageAndFont(const ESelection &rESel, LanguageType nLang, sal_uInt16 nLangWhichId, const vcl::Font *pFont, sal_uInt16 nFontWhichId)
void SelectNewUnit_impl(const sal_Int32 nUnitStart, const sal_Int32 nUnitEnd)
virtual void GetNextPortion(OUString &rNextPortion, LanguageType &rLangOfPortion, bool _bAllowImplicitChangesForNotConvertibleText) override
retrieves the next text portion which is to be analyzed
virtual void HandleNewUnit(const sal_Int32 nUnitStart, const sal_Int32 nUnitEnd) override
announces a new "current unit"
void ChangeText_impl(const OUString &rNewText, bool bKeepAttributes)
LanguageType m_nConvTextLang
TextConvWrapper(weld::Widget *pWindow, const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::lang::Locale &rSourceLocale, const css::lang::Locale &rTargetLocale, const vcl::Font *pTargetFont, sal_Int32 nOptions, bool bIsInteractive, bool bIsStart, EditView *pView)
void ChangeText(const OUString &rNewText, std::u16string_view rOrigText, const css::uno::Sequence< sal_Int32 > *pOffsets, ESelection *pESelection)
encapsulates Hangul-Hanja conversion functionality