25 #include <com/sun/star/linguistic2/XLinguProperties.hpp>
30 #include <strings.hrc>
34 #define PSH (&pView->GetWrtShell())
40 uno::Reference< linguistic2::XHyphenator >
const &rxHyph,
41 bool bStart,
bool bOther,
bool bSelect ) :
46 bInSelection( bSelect ),
50 bAutomatic = xProp.is() && xProp->getIsHyphAuto();
55 if( SvxSpellArea::Other == eSpell &&
nPageCount )
67 std::unique_ptr<SwWait> pWait;
70 PSH->StartAllAction();
74 uno::Reference< uno::XInterface > xHyphWord =
bInSelection ?
75 PSH->HyphContinue(
nullptr,
nullptr ) :
118 VclMessageType::Info, VclButtonsType::Ok,
SwHyphWrapper(SwView *pVw, css::uno::Reference< css::linguistic2::XHyphenator > const &rxHyph, bool bStart, bool bOther, bool bSelect)
void EndProgress(SwDocShell const *pDocShell)
virtual void SpellContinue() override
weld::Window * GetFrameWeld() const
static void InsertSoftHyph(const sal_Int32 nHyphPos)
For Inserting SoftHyphen. Position is offset within the syllabificated word.
virtual ~SwHyphWrapper() override
virtual void SpellEnd() override
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
virtual bool SpellMore() override
void SetLast(const css::uno::Reference< css::uno::XInterface > &xNewLast)
OUString SwResId(const char *pId)
SwDocShell * GetDocShell()
virtual void SpellStart(SvxSpellArea eSpell) override
SAL_DLLPRIVATE void HyphStart(SvxSpellArea eSpell)
static bool IsHeadlessModeEnabled()
virtual void InsertHyphen(const sal_Int32 nPos) override
uno::Reference< linguistic2::XLinguProperties > GetLinguPropertySet()
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, bool bMobile=false)