19 #ifndef INCLUDED_SW_INC_SPLARGS_HXX
20 #define INCLUDED_SW_INC_SPLARGS_HXX
25 #include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
26 #include <com/sun/star/linguistic2/XSpellChecker1.hpp>
46 : pStartNode( pStart ), pStartIdx( &rStart ),
47 pEndNode( pEnd ), pEndIdx( &rEnd )
52 pStartNode = pStart; pStartIdx = &rStart ;
57 pEndNode = pEnd; pEndIdx = &rEnd ;
78 nConvSrcLang( nLang ),
81 pTargetFont( nullptr ),
82 bAllowImplicitChangesForNotConvertibleText( false )
88 css::uno::Reference< css::linguistic2::XSpellChecker1 >
xSpeller;
90 css::uno::Reference< css::linguistic2::XSpellAlternatives >
xSpellAlt;
95 css::linguistic2::XSpellChecker1 >
const &rxSplChk,
100 xSpeller( rxSplChk ),
101 bIsGrammarCheck( bGrammar )
113 css::uno::Reference<css::linguistic2::XHyphenatedWord>
m_xHyphWord;
125 : m_aCursorPos(rCursorPos)
128 , m_nWordStart(0), m_nWordLen(0)
133 return m_aCursorPos.X() || m_aCursorPos.Y() ? &m_aCursorPos :
nullptr;
135 void SetHyphWord(
const css::uno::Reference< css::linguistic2::XHyphenatedWord > &rxHW)
139 const css::uno::Reference< css::linguistic2::XHyphenatedWord >&
GetHyphWord()
const
148 typedef std::function<SwTextFrame*()>
Creator;
SwConversionArgs(LanguageType nLang, SwTextNode *pStart, SwIndex &rStart, SwTextNode *pEnd, SwIndex &rEnd)
Represents the visualization of a paragraph.
bool bAllowImplicitChangesForNotConvertibleText
std::function< SwTextFrame *()> Creator
css::uno::Reference< css::linguistic2::XSpellChecker1 > xSpeller
sal_Int32 m_nStart
input: requested range to hyphenate
Dialog to specify the properties of date form field.
const vcl::Font * pTargetFont
const Point * GetCursorPos() const
sal_Int32 m_nWordStart
output: found word
static LanguageType nLang
void SetEnd(SwTextNode *pEnd, SwIndex &rEnd)
const css::uno::Reference< css::linguistic2::XHyphenatedWord > & GetHyphWord() const
SwArgsBase(SwTextNode *pStart, SwIndex &rStart, SwTextNode *pEnd, SwIndex &rEnd)
SwSpellArgs(css::uno::Reference< css::linguistic2::XSpellChecker1 > const &rxSplChk, SwTextNode *pStart, SwIndex &rStart, SwTextNode *pEnd, SwIndex &rEnd, bool bGrammar)
LanguageType nConvTextLang
SwInterHyphInfo(const Point &rCursorPos)
LanguageType nConvSrcLang
Marks a character position inside a document model node.
LanguageType nConvTargetLang
SwTextNode is a paragraph in the document model.
css::uno::Reference< css::linguistic2::XSpellAlternatives > xSpellAlt
void SetHyphWord(const css::uno::Reference< css::linguistic2::XHyphenatedWord > &rxHW)
const Point m_aCursorPos
input: cursor point to locate the frame
css::uno::Reference< css::linguistic2::XHyphenatedWord > m_xHyphWord
output: hyphenated word
SwTextFrame * SwHyphIterCacheLastTextFrame(SwTextNode const *pNode, const sw::Creator &create)
void SetStart(SwTextNode *pStart, SwIndex &rStart)