20 #include <com/sun/star/i18n/WordType.hpp>
21 #include <com/sun/star/linguistic2/XThesaurus.hpp>
66 #include <inputwin.hxx>
72 #include <strings.hrc>
81 #include <com/sun/star/container/XNameContainer.hpp>
82 #include <com/sun/star/beans/XPropertySet.hpp>
83 #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
84 #include <com/sun/star/uno/Any.hxx>
85 #include <com/sun/star/linguistic2/ProofreadingResult.hpp>
86 #include <com/sun/star/linguistic2/XDictionary.hpp>
87 #include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
90 #include <drawdoc.hxx>
95 #include <uiitems.hxx>
103 #include <bookmark.hxx>
124 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
125 SID_HTML_MODE, SID_HTML_MODE,
126 SID_ATTR_CHAR_WIDTH_FIT_TO_LINE, SID_ATTR_CHAR_WIDTH_FIT_TO_LINE,
131 bool bSelectionPut =
false;
142 bSelectionPut =
true;
165 else if (nSlot == SID_CHAR_DLG_EFFECT)
167 else if (nSlot == SID_CHAR_DLG_POSITION)
169 else if (nSlot == SID_CHAR_DLG_FOR_PARAGRAPH)
181 std::shared_ptr<SfxRequest> pRequest;
184 pRequest = std::make_shared<SfxRequest>(*pReq);
187 pDlg->StartExecuteAsync([pDlg, &rWrtSh, pCoreSet, bSel, bSelectionPut, pRequest](sal_Int32 nResult){
207 bool bInsert =
false;
208 sal_Int32 nInsert = 0;
213 OUString sInsert = pSelectionItem->
GetValue();
214 bInsert = !sInsert.isEmpty();
217 nInsert = sInsert.getLength();
259 std::unique_ptr<weld::MessageDialog> xQBox(xBuilder->weld_message_dialog(
"QueryRedlineDialog"));
273 const bool bUndoNeeded( pSet->
Count() ||
285 if ( !pDropTextItem->GetValue().isEmpty() )
309 sal_uInt16 nNumStart = USHRT_MAX;
333 ::std::optional<sal_uInt16> oPageNumber,
334 const OUString& rTemplateName, std::optional<SwLineBreakClear> oClear)
346 if( !rTemplateName.isEmpty() )
368 const auto& rAuthorityField = *
static_cast<const SwAuthorityField*
>(pField);
369 SwAuthEntry* pAuthEntry = rAuthorityField.GetAuthEntry();
383 bool bUseDialog =
true;
387 const sal_uInt16 nSlot = rReq.
GetSlot();
392 case SID_UNICODE_NOTATION_TOGGLE:
395 sal_Int32 nSelLength = rWrtSh.
GetSelText().getLength();
397 nMaxUnits = nSelLength;
405 if( !sReplacement.isEmpty() )
410 auto xInfo(std::make_unique<weld::GenericDialogController>(
412 "InfoReadonlyDialog"));
429 rWrtSh.
Insert2( sReplacement );
435 case SID_LANGUAGE_STATUS:
438 OUString aNewLangText;
448 if (aNewLangText ==
"*")
466 if (!aNewLangText.isEmpty())
468 static const OUStringLiteral aSelectionLangPrefix(
u"Current_");
469 static const OUStringLiteral aParagraphLangPrefix(
u"Paragraph_");
470 static const OUStringLiteral aDocumentLangPrefix(
u"Default_");
478 bool bForSelection =
true;
479 bool bForParagraph =
false;
480 if (-1 != (nPos = aNewLangText.indexOf( aSelectionLangPrefix )))
483 aNewLangText = aNewLangText.replaceAt(nPos, aSelectionLangPrefix.getLength(),
u"");
484 bForSelection =
true;
486 else if (-1 != (nPos = aNewLangText.indexOf(aParagraphLangPrefix)))
489 aNewLangText = aNewLangText.replaceAt(nPos, aParagraphLangPrefix.getLength(),
u"");
490 bForSelection =
true;
491 bForParagraph =
true;
493 else if (-1 != (nPos = aNewLangText.indexOf(aDocumentLangPrefix)))
496 aNewLangText = aNewLangText.replaceAt(nPos, aDocumentLangPrefix.getLength(),
u"");
497 bForSelection =
false;
500 if (bForParagraph || !bForSelection)
516 if (aNewLangText ==
"LANGUAGE_NONE")
518 else if (aNewLangText ==
"RESET_LANGUAGES")
524 if (bForParagraph || !bForSelection)
544 OUString aReplaceText;
548 if (!aReplaceText.isEmpty())
560 InsertSymbol( rReq );
571 bool bFont = pFont && !pFont->
GetValue().isEmpty();
593 pDlg->SetHelpId(GetStaticInterface()->GetSlot(nSlot)->GetCommand());
594 if ( pDlg->Execute() ==
RET_OK )
597 SfxRequest aReq( GetView().GetViewFrame(), nId );
598 if ( !pDlg->GetStr().isEmpty() )
600 if ( !pDlg->GetFontName().isEmpty() )
611 GetView().ExecFormatFootnote();
616 GetView().ExecuteInsertDoc( rReq, pItem );
619 case FN_FORMAT_RESET:
626 constexpr std::pair<sal_uInt16, sal_uInt16> aResetableSetRange[] = {
638 for (
const auto& [nBegin, nEnd] : aResetableSetRange)
640 for (sal_uInt16
i = nBegin;
i <= nEnd; ++
i)
646 GetView().GetDocShell()->GetFEShell()->UpdateTableStyleFormatting(
nullptr,
true);
655 ::std::optional<sal_uInt16> oPageNumber;
656 std::optional<SwLineBreakClear> oClear;
657 OUString aTemplateName;
663 aTemplateName = pTemplate->
GetValue();
664 if ( pNumber && pIsNumberFilled && pIsNumberFilled->GetValue() )
665 oPageNumber = pNumber->GetValue();
667 InsertBreak(rWrtSh, nKind, oPageNumber, aTemplateName, oClear);
674 std::shared_ptr<weld::DialogController> pDialogController(pAbstractDialog->getDialogController());
677 [pAbstractDialog, &rWrtSh] (sal_Int32 nResult) {
680 sal_uInt16 nKind = pAbstractDialog->GetKind();
681 OUString aTemplateName = pAbstractDialog->GetTemplateName();
682 ::std::optional<sal_uInt16> oPageNumber = pAbstractDialog->GetPageNumber();
683 std::optional<SwLineBreakClear> oClear = pAbstractDialog->GetClear();
685 InsertBreak(rWrtSh, nKind, oPageNumber, aTemplateName, oClear);
704 aContext.maEndDialogFn = [](sal_Int32){};
710 case FN_DELETE_BOOKMARK:
715 pMarkAccess->
deleteMark(pMarkAccess->
findMark(static_cast<const SfxStringItem*>(pItem)->GetValue()),
false);
723 std::vector< OUString > vNavMarkNames;
729 vNavMarkNames.push_back((*ppMark)->GetName());
731 std::sort(vNavMarkNames.begin(), vNavMarkNames.end());
763 xDlg->AcceptAll(
true);
771 xDlg->AcceptAll(
false);
800 GetView().GetViewFrame()->GetBindings().Invalidate( nSlot );
825 GetView().ExecNumberingOutline(GetPool());
832 pTransfer->CalculateAndCopy();
842 rWrtSh.SwCursorShell::GotoRefMark( static_cast<SwGetRefField*>(pField)->GetSetRefName(),
843 static_cast<SwGetRefField*>(pField)->GetSubType(),
844 static_cast<SwGetRefField*>(pField)->GetSeqNo() );
852 const sal_uInt16
nId = SwInputChild::GetChildWindowId();
879 else if( !sFormula.isEmpty() )
918 case SID_EDIT_HYPERLINK:
919 GetView().GetViewFrame()->SetChildWindow(SID_HYPERLINK_DIALOG,
true);
921 case SID_REMOVE_HYPERLINK:
940 case SID_ATTR_BRUSH_CHAR :
941 case SID_ATTR_CHAR_SCALEWIDTH :
942 case SID_ATTR_CHAR_ROTATED :
946 const sal_uInt16 nWhich = GetPool().GetWhich( nSlot );
947 if ( pArgs && pArgs->
GetItemState( nWhich ) == SfxItemState::SET )
952 case SID_CHAR_DLG_EFFECT:
953 case SID_CHAR_DLG_POSITION:
958 case SID_CHAR_DLG_FOR_PARAGRAPH:
966 case SID_ATTR_LRSPACE :
967 case SID_ATTR_ULSPACE :
968 case SID_ATTR_BRUSH :
969 case SID_PARA_VERTALIGN :
970 case SID_ATTR_PARA_NUMRULE :
971 case SID_ATTR_PARA_REGISTER :
972 case SID_ATTR_PARA_PAGENUM :
978 case SID_ATTR_PARA_LRSPACE:
980 const sal_uInt16 nWhich = GetPool().GetWhich( nSlot );
981 if ( pArgs && pArgs->
GetItemState( nWhich ) == SfxItemState::SET )
987 SwPaM* pPaM =
nullptr;
1002 bool bApplyCharUnit =
::HasCharUnit( dynamic_cast<SwWebView*>( &GetView()) !=
nullptr );
1010 SID_ATTR_TABSTOP_DEFAULTS, SID_ATTR_TABSTOP_OFFSET,
1011 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
1012 SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
1016 SID_COLOR_TABLE, SID_PATTERN_LIST,
1017 SID_HTML_MODE, SID_HTML_MODE,
1018 SID_ATTR_PARA_PAGENUM, SID_ATTR_PARA_PAGENUM,
1019 FN_PARAM_1, FN_PARAM_1,
1043 const sal_uInt16 nDefDist = o3tl::narrowing<sal_uInt16>(
::GetTabDist( rDefTabs ));
1044 SfxUInt16Item aDefDistItem( SID_ATTR_TABSTOP_DEFAULTS, nDefDist );
1045 aCoreSet.Put( aDefDistItem );
1049 aCoreSet.Put( aTabPos );
1056 aCoreSet.Put( aOff );
1068 aCoreSet.Put(aStart);
1071 aCoreSet.Put(aStartAt);
1087 if ( nSlot == SID_ATTR_PARA_LRSPACE)
1089 SvxLRSpaceItem aParaMargin(static_cast<const SvxLRSpaceItem&>(pArgs->
Get(nSlot)));
1091 aCoreSet.Put(aParaMargin);
1100 auto pRequest = std::make_shared<SfxRequest>(rReq);
1103 auto vCursors = CopyPaMRing(*pPaM);
1104 pDlg->StartExecuteAsync([pDlg, &rWrtSh, pDrawModel, pRequest, nDefDist, vCursors](sal_Int32 nResult){
1109 sal_uInt16 nNewDist;
1111 if (pDefaultsItem && nDefDist != (nNewDist = pDefaultsItem->
GetValue()) )
1116 pSet->
ClearItem( SID_ATTR_TABSTOP_DEFAULTS );
1120 if (SfxItemState::SET == pSet->
GetItemState(FN_PARAM_1,
false, &pItem2))
1129 if (pDropItem->GetCharFormat())
1130 sCharStyleName = pDropItem->GetCharFormat()->GetName();
1135 if (pTempGradItem && pTempGradItem->
GetName().isEmpty())
1144 if (pTempHatchItem && pTempHatchItem->
GetName().isEmpty())
1153 pDlg->disposeOnce();
1160 OUString sContinuedListId;
1186 case SID_DEC_INDENT:
1187 case SID_INC_INDENT:
1204 rWrtSh.
NumUpDown( SID_INC_INDENT == nSlot );
1221 case SID_ATTR_CHAR_COLOR2:
1225 bool bHasItem =
false;
1232 else if (pArgs && (pColorStringItem = pArgs->
GetItemIfSet(SID_ATTR_COLOR_STR,
false)))
1241 SwEditWin& rEditWin = GetView().GetEditWin();
1247 if(!pApply || pApply->
nColor != SID_ATTR_CHAR_COLOR_EXT)
1256 case SID_ATTR_CHAR_COLOR_BACKGROUND:
1257 case SID_ATTR_CHAR_COLOR_BACKGROUND_EXT:
1258 case SID_ATTR_CHAR_COLOR_EXT:
1263 if (pArgs && (pColorStringItem = pArgs->
GetItemIfSet(SID_ATTR_COLOR_STR,
false)))
1266 if (sColor ==
"transparent")
1276 SwEditWin& rEdtWin = GetView().GetEditWin();
1277 if (nSlot != SID_ATTR_CHAR_COLOR_EXT)
1286 if (nSlot != SID_ATTR_CHAR_COLOR_EXT)
1294 if ( aSet == rBrushItem.
GetColor() )
1303 else if (nSlot == SID_ATTR_CHAR_COLOR_BACKGROUND)
1305 if (!pApply || pApply->
nColor != SID_ATTR_CHAR_COLOR_BACKGROUND_EXT)
1307 aTempl.
nColor = SID_ATTR_CHAR_COLOR_BACKGROUND_EXT;
1313 if(!pApply || pApply->
nColor != nSlot)
1333 case SID_RUBY_DIALOG:
1334 case SID_HYPERLINK_DIALOG:
1337 GetView().GetViewFrame()->ExecuteSlot( aReq);
1343 if(pArgs && pArgs->
Count())
1345 OUString sStyleName;
1349 if( SfxItemState::SET == pArgs->
GetItemState(FN_PARAM_1,
false, &pItem))
1350 bOn = static_cast<const SfxBoolItem*>(pItem)->GetValue();
1367 if( pArgs && SfxItemState::SET == pArgs->
GetItemState(nSlot,
false, &pItem))
1368 bSetBlockMode = static_cast<const SfxBoolItem*>(pItem)->GetValue();
1373 SfxBindings &rBnd = GetView().GetViewFrame()->GetBindings();
1378 case SID_OPEN_HYPERLINK:
1379 case SID_COPY_HYPERLINK_LOCATION:
1386 if( nSlot == SID_COPY_HYPERLINK_LOCATION )
1388 OUString hyperlinkLocation = rINetFormat.
GetValue();
1389 ::uno::Reference< datatransfer::clipboard::XClipboard > xClipboard = GetView().GetEditWin().GetClipboard();
1401 const auto& rAuthorityField = *
static_cast<const SwAuthorityField*
>(pField);
1402 if (rAuthorityField.HasURL())
1405 const OUString& rURL
1415 OUString aLocalURL = GetLocalURL(rWrtSh);
1416 if (!aLocalURL.isEmpty())
1422 case SID_OPEN_XML_FILTERSETTINGS:
1424 HandleOpenXmlFilterSettings(rReq);
1449 GetView().UpdateWordCount(
this, nSlot);
1459 rIDSA.
set(aSettingId, !rIDSA.
get(aSettingId));
1466 case SID_FM_CTL_PROPERTIES:
1473 pFieldBM =
GetShell().getIDocumentMarkAccess()->getFieldmarkFor(aPos);
1502 SfxRequest aReq( GetView().GetViewFrame(), SID_FM_CTL_PROPERTIES );
1508 case SID_SPELLCHECK_IGNORE:
1515 case SID_SPELLCHECK_IGNORE_ALL:
1517 OUString sApplyText;
1522 if(sApplyText ==
"Grammar")
1524 linguistic2::ProofreadingResult aGrammarCheckRes;
1525 sal_Int32 nErrorInResult = -1;
1526 uno::Sequence< OUString > aSuggestions;
1527 sal_Int32 nErrorPosInText = -1;
1529 bool bCorrectionRes = rWrtSh.
GetGrammarCorrection( aGrammarCheckRes, nErrorPosInText, nErrorInResult, aSuggestions,
nullptr, aToFill );
1534 aGrammarCheckRes.xProofreader->ignoreRule(
1535 aGrammarCheckRes.aErrors[ nErrorInResult ].aRuleIdentifier,
1536 aGrammarCheckRes.aLocale );
1542 xDictionary->setActive(
false);
1543 xDictionary->setActive(
true);
1545 catch(
const uno::Exception& )
1550 else if (sApplyText ==
"Spelling")
1553 uno::Reference<linguistic2::XSpellAlternatives> xSpellAlt(rWrtSh.
GetCorrection(
nullptr, aToFill));
1554 if (!xSpellAlt.is())
1557 OUString sWord(xSpellAlt->getWord());
1559 sWord,
false, OUString() );
1567 case SID_SPELLCHECK_APPLY_SUGGESTION:
1569 OUString sApplyText;
1574 static const OUStringLiteral sSpellingRule(
u"Spelling_");
1575 static const OUStringLiteral sGrammarRule(
u"Grammar_");
1577 bool bGrammar =
false;
1579 uno::Reference< linguistic2::XSpellAlternatives > xSpellAlt;
1580 if(-1 != (nPos = sApplyText.indexOf( sGrammarRule )))
1582 sApplyText = sApplyText.replaceAt(nPos, sGrammarRule.getLength(),
u"");
1585 else if (-1 != (nPos = sApplyText.indexOf( sSpellingRule )))
1587 sApplyText = sApplyText.replaceAt(nPos, sSpellingRule.getLength(),
u"");
1593 if (!bGrammar && !xSpellAlt.is())
1599 OUString aTmp( sApplyText );
1600 OUString aOrig( bGrammar ? OUString() : xSpellAlt->getWord() );
1604 if (!aTmp.isEmpty() && !aOrig.isEmpty() &&
1605 aOrig.endsWith(
".") &&
1606 !aTmp.endsWith(
"."))
1616 OUString aTmpStr =
SwResId(STR_START_QUOTE) +
1617 aTmp +
SwResId(STR_END_QUOTE);
1632 OSL_ENSURE(
false,
"wrong dispatcher");
1651 case SID_LANGUAGE_STATUS:
1654 OUString aScriptTypesInUse( OUString::number( static_cast<int>(rSh.
GetScriptType()) ) );
1657 OUString aKeyboardLang;
1658 SwEditWin& rEditWin = GetView().GetEditWin();
1664 OUString aCurrentLang =
"*";
1673 aCurrentLang +=
";-";
1683 uno::Sequence< OUString >
aSeq{ aCurrentLang,
1703 const sal_Int16 nWordType = ::i18n::WordType::DICTIONARY_WORD;
1705 if (bValid && bWord)
1710 const lang::Locale& aLocale( aLanguageTag.
getLocale());
1713 uno::Reference< linguistic2::XThesaurus > xThes( ::
GetThesaurus() );
1714 if (aText.isEmpty() ||
1715 !xThes.is() || nLang ==
LANGUAGE_NONE || !xThes->hasLocale( aLocale ))
1720 OUString aStatusVal = aText +
"#" + aLanguageTag.
getBcp47();
1736 case SID_EMOJI_CONTROL:
1737 case SID_CHARMAP_CONTROL:
1806 case SID_DEC_INDENT:
1807 case SID_INC_INDENT:
1815 if ( ( nLevel == (
MAXLEVEL - 1 ) && nWhich == SID_INC_INDENT )
1816 || ( nLevel == 0 && nWhich == SID_DEC_INDENT ) )
1823 sal_uInt16 nHtmlMode =
::GetHtmlMode( GetView().GetDocShell() );
1837 sal_uInt16 nHtmlMode =
::GetHtmlMode(GetView().GetDocShell());
1846 case SID_ATTR_CHAR_COLOR2:
1851 rSet.
Put( aColorItem.CloneSetWhich(SID_ATTR_CHAR_COLOR2) );
1854 case SID_ATTR_CHAR_COLOR_BACKGROUND:
1871 case SID_ATTR_CHAR_COLOR_BACKGROUND_EXT:
1872 case SID_ATTR_CHAR_COLOR_EXT:
1874 SwEditWin& rEdtWin = GetView().GetEditWin();
1888 case FN_INSERT_BREAK:
1909 bool bState =
false;
1910 bool bAllState =
true;
1911 bool bIsPhysical =
false;
1913 OUString aStyleName;
1914 std::vector<OUString> aList;
1915 static const OUStringLiteral sPhysical(
u"IsPhysical");
1916 static const OUStringLiteral
sDisplay(
u"DisplayName");
1917 const OUString sHeaderOn(nWhich ==
FN_INSERT_PAGEHEADER ? OUString(
"HeaderIsOn") : OUString(
"FooterIsOn"));
1919 uno::Reference< XStyleFamiliesSupplier > xSupplier(GetView().GetDocShell()->GetBaseModel(), uno::UNO_QUERY);
1922 uno::Reference< XNameContainer > xContainer;
1923 uno::Reference< XNameAccess > xFamilies = xSupplier->getStyleFamilies();
1924 if (xFamilies->getByName(
"PageStyles") >>= xContainer)
1926 const uno::Sequence< OUString > aSeqNames = xContainer->getElementNames();
1927 for (
const auto& rName : aSeqNames)
1930 uno::Reference<XPropertySet> xPropSet(xContainer->getByName(aStyleName), uno::UNO_QUERY);
1931 if (xPropSet.is() && (xPropSet->getPropertyValue(sPhysical) >>= bIsPhysical) && bIsPhysical)
1933 xPropSet->getPropertyValue(sDisplay) >>= aStyleName;
1934 if ((xPropSet->getPropertyValue(sHeaderOn)>>= bState) && bState)
1935 aList.push_back(aStyleName);
1940 bAllState &= bState;
1943 bIsPhysical =
false;
1948 if (bAllState && aList.size() > 1)
1949 aList.push_back(
"_ALL_");
1965 case SID_RUBY_DIALOG:
1970 GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich,
false );
1974 GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich,
true );
1978 case SID_HYPERLINK_DIALOG:
1980 || ( !GetView().GetViewFrame()->HasChildWindow(nWhich)
1988 rSet.
Put(
SfxBoolItem( nWhich,
nullptr != GetView().GetViewFrame()->GetChildWindow( nWhich ) ));
1992 case SID_EDIT_HYPERLINK:
1993 case SID_COPY_HYPERLINK_LOCATION:
2003 case SID_REMOVE_HYPERLINK:
2017 case SID_TRANSLITERATE_HALFWIDTH:
2018 case SID_TRANSLITERATE_FULLWIDTH:
2019 case SID_TRANSLITERATE_HIRAGANA:
2020 case SID_TRANSLITERATE_KATAKANA:
2024 GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich,
false );
2028 GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich,
true );
2043 case SID_OPEN_HYPERLINK:
2048 bool bAuthorityFieldURL =
false;
2053 const auto& rAuthorityField = *
static_cast<const SwAuthorityField*
>(pField);
2054 bAuthorityFieldURL = rAuthorityField.
HasURL();
2057 && !bAuthorityFieldURL)
2063 if (GetLocalURL(rSh).isEmpty())
2069 case SID_OPEN_SMARTTAGMENU:
2071 std::vector< OUString > aSmartTagTypes;
2072 uno::Sequence< uno::Reference< container::XStringKeyMap > > aStringKeyMaps;
2073 uno::Reference<text::XTextRange> xRange;
2077 if ( xRange.is() && !aSmartTagTypes.empty() )
2079 uno::Sequence < uno::Sequence< uno::Reference< smarttags::XSmartTagAction > > > aActionComponentsSequence;
2080 uno::Sequence < uno::Sequence< sal_Int32 > > aActionIndicesSequence;
2084 aActionComponentsSequence,
2085 aActionIndicesSequence );
2087 uno::Reference <frame::XController>
xController = GetView().GetController();
2090 const OUString aRangeText = xRange->getString();
2093 aActionComponentsSequence,
2094 aActionIndicesSequence,
2109 case FN_NUM_NUMBERING_ON:
2113 case FN_NUM_BULLET_ON:
2122 case FN_BUL_NUM_RULE_INDEX:
2123 case FN_NUM_NUM_RULE_INDEX:
2124 case FN_OUTLINE_RULE_INDEX:
2129 sal_uInt16 nActNumLvl =
GetShell().GetNumLevel();
2132 nActNumLvl = 1<<nActNumLvl;
2139 NBOTypeMgrBase* pBullets = NBOutlineTypeMgrFact::CreateInstance(NBOType::Bullets);
2145 }
else if (
GetShell().HasNumber() )
2149 NBOTypeMgrBase* pNumbering = NBOutlineTypeMgrFact::CreateInstance(NBOType::Numbering);
2157 if ( nWhich == FN_OUTLINE_RULE_INDEX )
2160 NBOTypeMgrBase* pOutline = NBOutlineTypeMgrFact::CreateInstance(NBOType::Outline);
2185 case SID_INSERT_RLM :
2186 case SID_INSERT_LRM :
2190 GetView().GetViewFrame()->GetBindings().SetVisibleState( nWhich, bEnabled );
2195 case SID_FM_CTL_PROPERTIES:
2197 bool bDisable =
false;
2202 GetShell().GetView().GetFormShell()->GetState( aSet );
2204 if(SfxItemState::DISABLED == aSet.
GetItemState(SID_FM_CTL_PROPERTIES))
2215 pFieldBM =
GetShell().getIDocumentMarkAccess()->getFieldmarkFor(aPos);
2229 if (GetObjectShell()->isContentExtractionLocked())
2245 if (!
GetShell().CursorInsideContentControl())
void InsertLineBreak(std::optional< SwLineBreakClear > oClear=std::nullopt)
void SetDefault(const SfxPoolItem &)
Set attribute as new default attribute in document.
bool IsNumRuleStart(SwPaM *pPaM=nullptr) const
SfxViewFrame * GetViewFrame() const
OUString const & GetAuthorField(ToxAuthorityField ePos) const
Fieldmark representing a date form field.
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(120)
#define FN_INSERT_FOOTNOTE_DLG
#define FN_FORMAT_CURRENT_FOOTNOTE_DLG
#define FN_NUM_BULLET_MOVEDOWN
static void CopyStringTo(const OUString &rContent, const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rxClipboard, const vcl::ILibreOfficeKitNotifier *pNotifier=nullptr)
bool SttPara(bool bSelect=false)
SAL_DLLPRIVATE void UpdateCursor(sal_uInt16 eFlags=SwCursorShell::SCROLLWIN|SwCursorShell::CHKRANGE, bool bIdleEnd=false)
SwTextFormatColl * GetCurTextFormatColl() const
Get the named paragraph format of the current selection.
#define FN_READONLY_SELECTION_MODE
Represents the style of a paragraph.
static SvxAutoCorrCfg & Get()
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
Marks a position in the document model.
constexpr TypedWhichId< SvxTabStopItem > RES_PARATR_TABSTOP(68)
#define FN_FORMAT_LINENUMBER
constexpr sal_uInt16 KEY_MOD1
void SetWaterCanTextBackColor(const Color &rCol)
static SfxAbstractDialogFactory * Create()
#define FN_SELECTION_MODE_BLOCK
void SetAutoFormatByInput(bool bSet)
static void sw_CharDialogResult(const SfxItemSet *pSet, SwWrtShell &rWrtSh, std::shared_ptr< SfxItemSet > const &pCoreSet, bool bSel, bool bSelectionPut, SfxRequest *pReq)
sal_uInt32 GetFormat() const
Query parameters for dialog and for BASIC.
virtual VclPtr< VclAbstractDialog > CreateSwSortingDialog(weld::Window *pParent, SwWrtShell &rSh)=0
virtual const SfxItemSet * GetOutputItemSet() const =0
const SwNumRule * GetNumRuleAtCurrCursorPos() const
virtual VclPtr< VclAbstractDialog > CreateDropDownFormFieldDialog(weld::Widget *pParent, sw::mark::IFieldmark *pDropDownField)=0
bool IsCursorInFootnote() const
#define FN_AUTOFORMAT_REDLINE_APPLY
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
virtual VclPtr< VclAbstractDialog > CreateDateFormFieldDialog(weld::Widget *pParent, sw::mark::IDateFieldmark *pDateField, SwDoc &rDoc)=0
virtual std::shared_ptr< AbstractSwBreakDlg > CreateSwBreakDlg(weld::Window *pParent, SwWrtShell &rSh)=0
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
bool IsEndWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
static SW_DLLPUBLIC MarkType GetType(const ::sw::mark::IMark &rMark)
Returns the MarkType used to create the mark.
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
Base class of all fields.
#define FN_TABLE_UNSET_READ_ONLY
void SetAttrSet(const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
bool Pop(SwCursorShell::PopMode=SwCursorShell::PopMode::DeleteStack)
#define FN_INSERT_ENDNOTE
void GetState(SfxItemSet &)
OUString ReplacementString()
void SetWaterCanTextColor(const Color &rCol)
Provides access to the marks of a document.
const OUString & getBcp47(bool bResolveSystem=true) const
void UpdateCurField(sal_uInt32 nFormat, const OUString &rPar1, const OUString &rPar2, std::unique_ptr< SwField > _pField=nullptr)
constexpr sal_uInt16 RES_FRMATR_END(133)
sal_uInt16 GetValue() const
constexpr sal_uInt8 MAXLEVEL
constexpr OUStringLiteral ODF_FORMDATE
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
const IDocumentSettingAccess & getIDocumentSettingAccess() const
Provides access to the document setting interface.
bool SelectionHasNumber() const
sal_Unicode GetChar(bool bEnd=true, tools::Long nOffset=0)
get the nth character of the current SSelection
bool IsSelFullPara() const
void Done(bool bRemove=false)
void ExtendedSelectAll(bool bFootnotes=true)
#define FN_INSERT_COLUMN_BREAK
Of course Writer needs its own rectangles.
constexpr TypedWhichId< XFillHatchItem > XATTR_FILLHATCH(XATTR_FILL_FIRST+3)
virtual VclPtr< AbstractSwModalRedlineAcceptDlg > CreateSwModalRedlineAcceptDlg(weld::Window *pParent)=0
void AutoUpdatePara(SwTextFormatColl *pColl, const SfxItemSet &rStyleSet, SwPaM *pPaM=nullptr)
const SfxItemSet * GetArgs() const
void Invalidate(sal_uInt16 nId)
const SwDoc & GetDoc() const
bool IsCTLFontEnabled() const
bool InsertField(const SwInsertField_Data &rData)
virtual short Execute()=0
OUString GetCursorDescr() const
Returns textual description of the current selection.
static short lcl_AskRedlineFlags(weld::Window *pWin)
#define FN_AUTOFORMAT_AUTO
sal_uInt8 GetNumLevel() const
void SetApplyTemplate(const SwApplyTemplate &)
Apply template.
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
SwFieldTypesEnum GetCurTypeId() const
XPatternListRef GetPatternList() const
static LanguageType nLang
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
SfxApplication * SfxGetpApp()
const SwSection * GetCurrSection() const
void SetCurNumRule(const SwNumRule &, const bool bCreateNewList, const OUString &sContinuedListId=OUString(), const bool bResetIndentAttrs=false)
Optional parameter (default value false).
LanguageType GetCurLang() const
Used by the UI to modify the document model.
void ToggleChildWindow(sal_uInt16)
OUString SwResId(TranslateId aId)
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
void SetNodeNumStart(sal_uInt16 nStt)
virtual void set(DocumentSettingId id, bool value)=0
Set the specified document setting.
#define FN_PROTECT_BOOKMARKS
void LoadURL(SwViewShell &rVSh, const OUString &rURL, LoadUrlFlags nFilter, const OUString &rTargetFrameName)
tools::Long ResetSelect(const Point *, bool)
#define FN_TABLE_SORT_DIALOG
const SwView & GetView() const
Reference< XController > xController
virtual const_iterator_t findMark(const OUString &rMark) const =0
Finds a mark by name.
constexpr sal_uInt16 RES_PARATR_BEGIN(RES_TXTATR_END)
sal_uInt32 CharsToDelete()
#define FN_NUM_BULLET_OFF
invariant for SwAuthorityField is that it is always registered at its SwAuthorityFieldType via AddFie...
void GetActionSequences(std::vector< OUString > &rSmartTagTypes, css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::smarttags::XSmartTagAction > > > &rActionComponentsSequence, css::uno::Sequence< css::uno::Sequence< sal_Int32 > > &rActionIndicesSequence) const
#define FN_INSERT_BOOKMARK
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
bool IsAutoFormatByInput() const
virtual void Invalidate()=0
bool GotoFootnoteText()
jump from content to footnote
constexpr TypedWhichId< SwFormatDrop > RES_PARATR_DROP(70)
SwField * GetCurField(const bool bIncludeInputFieldAtStart=false) const
static SfxViewShell * Current()
void Execute(SfxRequest &)
#define FN_EXPAND_GLOSSARY
void Insert(const OUString &)
#define FN_AUTOFORMAT_APPLY
#define FN_GOTO_REFERENCE
const IDocumentMarkAccess * getIDocumentMarkAccess() const
Provides access to the document bookmark interface.
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
sal_uInt16 GetNodeNumStart(SwPaM *pPaM) const
static css::uno::Reference< css::linguistic2::XDictionary > GetIgnoreAllList()
const OUStringLiteral sColor
void Normalize(bool bPointFirst=true)
Normalizes PaM, i.e.
SwAuthEntry * GetAuthEntry() const
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
SfxItemPool & GetPool() const
SvxNumRule MakeSvxNumRule() const
const XHatch & GetHatchValue() const
void SetTableBoxFormulaAttrs(const SfxItemSet &rSet)
constexpr OUStringLiteral aData
#define FN_INSERT_GLOSSARY
short SvxDicError(weld::Window *pParent, linguistic::DictionaryError nError)
virtual const_iterator_t getAllMarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence of marks.
const Color & GetColor() const
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
bool GetGrammarCorrection(css::linguistic2::ProofreadingResult &rResult, sal_Int32 &rErrorPosInText, sal_Int32 &rErrorIndexInResult, css::uno::Sequence< OUString > &rSuggestions, const Point *pPt, SwRect &rSelectRect)
PaM is Point and Mark: a selection of the document model.
const SfxItemPool & GetAttrPool() const
#define FN_INSERT_HYPERLINK
virtual FmFormShell * GetFormShell() override
const SwTableNode * IsCursorInTable() const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
#define FN_NUMBERING_OUTLINE_DLG
SwApplyTemplate * GetApplyTemplate() const
SvtScriptType GetScriptType() const
returns the script type of the selection
bool HasSelection() const
bool SelWrd(const Point *=nullptr)
void AutoFormat(const SvxSwAutoFormatFlags *pAFlags)
Set our styles according to the respective rules.
virtual const_iterator_t getAllMarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of marks.
constexpr TypedWhichId< XFillGradientItem > XATTR_FILLGRADIENT(XATTR_FILL_FIRST+2)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
void ClickToINetAttr(const SwFormatINetFormat &rItem, LoadUrlFlags nFilter=LoadUrlFlags::NONE)
void Insert2(const OUString &, const bool bForceExpandHints=false)
const XGradient & GetGradientValue() const
virtual VclPtr< VclAbstractDialog > CreateSwInsertBookmarkDlg(weld::Window *pParent, SwWrtShell &rSh)=0
OUString StringToReplace()
sal_uInt16 GetModifier() const
bool EndAllTableBoxEdit()
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
static SwSmartTagMgr & Get()
void Push()
store a copy of the current cursor on the cursor stack
SfxBindings & GetBindings()
void SetAttrItem(const SfxPoolItem &, SetAttrMode nFlags=SetAttrMode::DEFAULT, const bool bParagraphSetting=false)
void ResetLanguages(SwWrtShell &rWrtSh, OutlinerView const *pOLV=nullptr)
css::uno::Reference< css::linguistic2::XSpellAlternatives > GetCorrection(const Point *pPt, SwRect &rSelectRect)
Get a list of potential corrections for misspelled word.
::sw::mark::IMark * SetBookmark(const vcl::KeyCode &, const OUString &rName, IDocumentMarkAccess::MarkType eMark=IDocumentMarkAccess::MarkType::BOOKMARK)
const OUString & GetValue() const
#define FN_CONTENT_CONTROL_PROPERTIES
FrameTypeFlags
values can be combined via logical or
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
const T * GetArg(sal_uInt16 nSlotId) const
void SetReadonlySelectionOption(bool bSet)
bool SelectTextAttr(sal_uInt16 nWhich, const SwTextAttr *pAttr=nullptr)
void MoveLeftMargin(bool bRight, bool bModulus=true)
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
bool DontExpandFormat()
If Cursor is at the end of a character style in which the DontExpand-flag is not yet set...
#define FN_FORMAT_APPLY_HEAD3
#define FN_INSERT_BREAK_DLG
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
XGradientListRef GetGradientList() const
static void MigrateItemSet(const SfxItemSet *pSourceSet, SfxItemSet *pDestSet, SdrModel *pNewModel)
void AddRule(SwUndoArg eWhat, const OUString &rWith)
virtual void SetCurPageId(const OString &rName)=0
bool IsInWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
#define FN_INSERT_PAGEHEADER
#define LANGUAGE_DONTKNOW
void SetLanguage_None(SwWrtShell &rWrtSh, bool bIsForSelection, SfxItemSet &rCoreSet)
Provides access to settings of a document.
void InsertThesaurusSynonym(const OUString &rSynonmText, const OUString &rLookUpText, bool bValidSelection)
static SwAbstractDialogFactory * Create()
void SelectCurrentPara(SwWrtShell &rWrtSh)
#define FN_WORDCOUNT_DIALOG
constexpr sal_uInt16 RES_UNKNOWNATR_END(154)
#define FN_FORMAT_APPLY_HEAD1
OUString GetThesaurusLookUpText(bool bSelection) const
bool HasReadonlySel() const
void UnProtectTables()
Unprotect all tables in selection.
#define FN_INSERT_PAGEFOOTER
bool StartExecuteAsync(const std::function< void(sal_Int32)> &rEndDialogFn)
void UpdateTable()
update fields of a listing
void InvalidateWindows(const SwRect &rRect)
SwDocShell * GetDocShell()
#define FN_FORMAT_APPLY_TEXTBODY
SwFrameFormat * GetTableFormat()
void SetStringList(const css::uno::Sequence< OUString > &rList)
#define FN_SELECTION_MODE_DEFAULT
bool SelectionHasBullet() const
bool GetPaMAttr(SwPaM *pPaM, SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
Apply / remove attributes.
#define FN_INSERT_FOOTNOTE
SwFieldType * GetTyp() const
#define FN_OPEN_LOCAL_URL
#define FN_INC_INDENT_OFFSET
#define FN_DEC_INDENT_OFFSET
#define FN_DROP_CHAR_STYLE_NAME
void reset(reference_type *pBody)
bool IsStartWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
constexpr sal_uInt16 RES_UNKNOWNATR_BEGIN(RES_BOXATR_END)
void ChangeHeaderOrFooter(std::u16string_view rStyleName, bool bHeader, bool bOn, bool bShowWarning)
uno::Reference< linguistic2::XThesaurus > GetThesaurus()
const LanguageTag & GetAppLanguageTag()
void Update(sal_uInt16 nId)
OUString GetCurWord() const
request current word
void ResetAttr(const o3tl::sorted_vector< sal_uInt16 > &attrs=o3tl::sorted_vector< sal_uInt16 >(), SwPaM *pCursor=nullptr)
constexpr TypedWhichId< SvxColorItem > RES_CHRATR_COLOR(3)
const OUString & GetApplicationName() const
void InsertFootnote(const OUString &, bool bEndNote=false, bool bEdit=true)
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr TypedWhichId< SvxBrushItem > RES_CHRATR_BACKGROUND(21)
SwFieldTypesEnum GetTypeId() const
sal_uInt16 GetSlot() const
void SetInsMode(bool bOn=true)
bool IsMultiSelection() const
bool HasChildWindow(sal_uInt16)
#define FN_PARAM_SELECTION
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
XHatchListRef GetHatchList() const
void DisableItem(sal_uInt16 nWhich)
constexpr sal_uInt16 RES_CHRATR_BEGIN(HINT_BEGIN)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(105)
weld::Window * GetFrameWeld() const
bool IsMoveLeftMargin(bool bRight, bool bModulus=true) const
Adjust left margin via object bar (similar to adjustment of numerations).
#define FN_NUMBER_NEWSTART
bool Left(sal_uInt16 nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
bool AllowMoreInput(sal_Unicode uChar)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
DictionaryError AddEntryToDic(uno::Reference< XDictionary > const &rxDic, const OUString &rWord, bool bIsNeg, const OUString &rRplcTxt, bool bStripDot)
void EndPara(bool bSelect=false)
void GetSmartTagTerm(std::vector< OUString > &rSmartTagTypes, css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > > &rStringKeyMaps, css::uno::Reference< css::text::XTextRange > &rRange) const
const SwViewOption * GetViewOptions() const
#define FN_PROTECT_FIELDS
bool ExtendSelection(bool bEnd=true, sal_Int32 nCount=1)
extend current SSelection by n characters
OUString GetSelText() const
get selected text of a node at current cursor
#define FN_FORMAT_APPLY_HEAD2
sal_Int32 GetIndex() const
void SetNumRuleStart(bool bFlag, SwPaM *pCursor)
Set (and query if) a numbering with StartFlag starts at current PointPos.
static void IgnoreGrammarErrorAt(SwPaM &rErrorPosition)
constexpr sal_uInt16 RES_PARATR_END(82)
void NumUpDown(bool bDown=true)
Sequence< sal_Int8 > aSeq
const SwGetSetExpType GSE_FORMULA
Formula.
#define FN_PARAM_MOVE_COUNT
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
#define FN_INSERT_PAGEBREAK
LanguageType GetCurrentLanguage(SfxItemSet const &aSet, SvtScriptType nScriptType)
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
constexpr sal_uInt16 RES_CHRATR_END(46)
SwTextFormatColl * GetPaMTextFormatColl(SwPaM *pPaM) const
Get the named paragraph format of the selection(s) described by a SwPaM.
static OUString GetLanguageString(const LanguageType eType)
const tools::Rectangle & GetVisArea() const
const SwNumRule * SearchNumRule(const bool bNum, OUString &sListId)
Searches for a text node with a numbering rule.
#define FN_FORMAT_FOOTNOTE_DLG
XBitmapListRef GetBitmapList() const
void AutoCorrect(SvxAutoCorrect &rACorr, sal_Unicode cChar)
const sal_uInt16 CRSR_SKIP_CHARS
bool MoveParagraph(SwNodeOffset nOffset=SwNodeOffset(1))
OUString const & GetName() const
virtual OUString GetFieldname() const =0
void InvalidateAll(bool bWithMsg)
void AppendItem(const SfxPoolItem &)
static void sw_CharDialog(SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot, const SfxItemSet *pArgs, SfxRequest *pReq)
static void sw_ParagraphDialogResult(SfxItemSet *pSet, SwWrtShell &rWrtSh, SfxRequest &rReq, SwPaM *pPaM)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLBACKGROUND)
void InsertPageBreak(const OUString *pPageDesc=nullptr, const ::std::optional< sal_uInt16 > &rPgNum=std::nullopt)
XColorListRef GetColorList() const
#define FN_NUM_BULLET_MOVEUP
void SetLanguage(SwWrtShell &rWrtSh, std::u16string_view rLangText, bool bIsForSelection, SfxItemSet &rCoreSet)
virtual VclPtr< SfxAbstractTabDialog > CreateSwCharDlg(weld::Window *pParent, SwView &pVw, const SfxItemSet &rCoreSet, SwCharDlgMode nDialogMode, const OUString *pFormatStr=nullptr)=0
std::pair< const_iterator, bool > insert(Value &&x)
LanguageType GetInputLanguage() const
SelectionType GetSelectionType() const
void StartAllAction()
For all views of this document.
#define FN_NUMBER_NEWSTART_AT
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
sal_uInt16 GetScalingOfSelectedText() const
bool IsSelOnePara() const
OUString GetTextForLanguageGuessing(EditEngine const *rEditEngine, const ESelection &rDocSelection)
virtual std::unique_ptr< ILazyDeleter > deleteMark(const IDocumentMarkAccess::const_iterator_t &ppMark, bool isMoveNodes)=0
Deletes a mark.
bool IsChangeCaseMapEnabled()
constexpr TypedWhichId< SvxBrushItem > RES_CHRATR_HIGHLIGHT(42)
constexpr OUStringLiteral ODF_FORMDROPDOWN
virtual VclPtr< SfxAbstractTabDialog > CreateSwParaDlg(weld::Window *pParent, SwView &rVw, const SfxItemSet &rCoreSet, bool bDraw, const OString &sDefPage=OString())=0
void ReplaceDropText(const OUString &rStr, SwPaM *pPaM=nullptr)
SvNumberFormatter * GetNumberFormatter()
Query NumberFormatter from document.
constexpr sal_uInt16 RES_FRMATR_BEGIN(RES_PARATR_LIST_END)
#define FN_REDLINE_ACCEPT
virtual VclPtr< AbstractInsFootNoteDlg > CreateInsFootNoteDlg(weld::Window *pParent, SwWrtShell &rSh, bool bEd=false)=0
FrameTypeFlags GetFrameType(const Point *pPt, bool bStopAtFly) const
For return values see above FrameType.
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(107)
constexpr TypedWhichId< SvXMLAttrContainerItem > RES_TXTATR_UNKNOWN_CONTAINER(54)
static void SetActMark(sal_Int32 nSet)
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
bool Replace(const OUString &rNewStr, bool bRegExpRplc)
Replace a selected range in a TextNode by given string.
#define FN_PARAM_MOVE_SELECTION
#define FN_FORMAT_DROPCAPS
bool IsSelectionInReadonly() const
void EndAction(const bool bIdleEnd=false)
#define FN_FORMAT_APPLY_DEFAULT
bool CursorInsideInputField() const