21 #include <com/sun/star/linguistic2/XThesaurus.hpp>
87 void lcl_convertStringArguments(sal_uInt16 nSlot,
const std::unique_ptr<SfxItemSet>& pArgs)
93 if (SfxItemState::SET != pArgs->GetItemState(SID_ATTR_COLOR_STR,
false, &pItem))
98 if (sColor ==
"transparent")
101 aColor =
Color(sColor.toInt32(16));
105 case SID_ATTR_CHAR_COLOR:
108 pArgs->Put(aColorItem);
112 case SID_ATTR_CHAR_BACK_COLOR:
115 pArgs->Put(pBackgroundItem);
127 SfxItemSet aNewAttr(*aEditAttr.GetPool(), aEditAttr.GetRanges());
129 const sal_uInt16 nSlot = rReq.
GetSlot();
134 bool bRestoreSelection =
false;
137 sal_uInt16 nEEWhich = 0;
140 case SID_LANGUAGE_STATUS:
154 OUString aReplaceText;
158 if (!aReplaceText.isEmpty())
163 case SID_ATTR_CHAR_FONT:
164 case SID_ATTR_CHAR_FONTHEIGHT:
165 case SID_ATTR_CHAR_WEIGHT:
166 case SID_ATTR_CHAR_POSTURE:
168 SfxItemPool* pPool2 = aEditAttr.GetPool()->GetSecondaryPool();
170 pPool2 = aEditAttr.GetPool();
174 SvtScriptType nScriptTypes = SvtScriptType::LATIN | SvtScriptType::ASIAN | SvtScriptType::COMPLEX;
175 if (nSlot == SID_ATTR_CHAR_FONT)
181 aNewAttr.Put( aSetItem.GetItemSet() );
189 case SID_ATTR_CHAR_UNDERLINE:
204 case SID_ATTR_CHAR_OVERLINE:
214 case SID_ATTR_CHAR_WORDLINEMODE: nEEWhich =
EE_CHAR_WLM;
break;
221 case SID_ATTR_PARA_ADJUST_LEFT:
224 case SID_ATTR_PARA_ADJUST_CENTER:
227 case SID_ATTR_PARA_ADJUST_RIGHT:
230 case SID_ATTR_PARA_ADJUST_BLOCK:
233 case SID_ATTR_PARA_LRSPACE:
235 SvxLRSpaceItem aParaMargin(static_cast<const SvxLRSpaceItem&>(rReq.
236 GetArgs()->
Get(nSlot)));
238 aNewAttr.Put(aParaMargin);
242 case SID_HANGING_INDENT:
245 if( eState >= SfxItemState::DEFAULT )
253 aNewAttr.Put(aParaMargin);
258 case SID_ATTR_PARA_LINESPACE:
263 aNewAttr.Put( aLineSpace );
267 case SID_ATTR_PARA_ULSPACE:
272 aNewAttr.Put( aULSpace );
276 case SID_PARASPACE_INCREASE:
277 case SID_PARASPACE_DECREASE:
280 sal_uInt16 nUpper = aULSpace.
GetUpper();
281 sal_uInt16 nLower = aULSpace.GetLower();
283 if ( nSlot == SID_PARASPACE_INCREASE )
285 nUpper = std::min< sal_uInt16 >( nUpper + 57, 5670 );
286 nLower = std::min< sal_uInt16 >( nLower + 57, 5670 );
290 nUpper = std::max< sal_Int16 >( nUpper - 57, 0 );
291 nLower = std::max< sal_Int16 >( nLower - 57, 0 );
294 aULSpace.SetUpper( nUpper );
295 aULSpace.SetLower( nLower );
296 aNewAttr.Put( aULSpace );
300 case SID_ATTR_PARA_LINESPACE_10:
307 case SID_ATTR_PARA_LINESPACE_15:
314 case SID_ATTR_PARA_LINESPACE_20:
327 if( eEsc == SvxEscapement::Superscript )
331 aNewAttr.Put( aItem );
339 if( eEsc == SvxEscapement::Subscript )
343 aNewAttr.Put( aItem );
347 case SID_CHAR_DLG_EFFECT:
349 case SID_CHAR_DLG_FOR_PARAGRAPH:
354 if( !pArgs || pItem )
357 if (nSlot == SID_CHAR_DLG_FOR_PARAGRAPH)
362 bRestoreSelection =
true;
372 aDlgAttr.Put( aEditAttr );
377 if (nSlot == SID_CHAR_DLG_EFFECT)
381 else if (nSlot == SID_CHAR_DLG_FOR_PARAGRAPH)
390 sal_uInt16 nRet = pDlg->Execute();
400 aNewAttr.Put(*pArgs);
414 case SID_OPEN_XML_FILTERSETTINGS:
437 SID_ATTR_PARA_HYPHENZONE, SID_ATTR_PARA_WIDOWS>{});
439 aDlgAttr.Put(aEditAttr);
449 sal_uInt16 nRet = pDlg->Execute();
452 rReq.
Done( *( pDlg->GetOutputItemSet() ) );
453 aNewAttr.Put(*pDlg->GetOutputItemSet());
459 aNewAttr.Put(*pArgs);
462 case SID_AUTOSPELL_CHECK:
472 nCtrl |= EEControlBits::ONLINESPELLING|EEControlBits::ALLOWBIGOBJS;
475 pOutliner->SetControlWord(nCtrl);
480 case SID_HYPERLINK_SETLINK:
484 pNewAttrs->GetItemState(nSlot,
false, &pItem);
494 if (pFieldItem && dynamic_cast< const SvxURLField *>( pFieldItem->
GetField() ) !=
nullptr )
506 case SID_EDIT_HYPERLINK:
514 case SID_REMOVE_HYPERLINK:
520 case SID_OPEN_HYPERLINK:
523 if (
const SvxURLField* pURLField = dynamic_cast<const SvxURLField*>(pField))
526 SfxStringItem aTarget(SID_TARGETNAME, pURLField->GetTargetFrame());
530 SID_OPENDOC, SfxCallMode::SYNCHRON, { &aUrl, &aTarget, &aNewView, &aBrowsing });
535 case SID_COPY_HYPERLINK_LOCATION:
538 if (
const SvxURLField* pURLField = dynamic_cast<const SvxURLField*>(pField))
540 uno::Reference<datatransfer::clipboard::XClipboard> xClipboard
547 case SID_TEXTDIRECTION_LEFT_TO_RIGHT:
548 case SID_TEXTDIRECTION_TOP_TO_BOTTOM:
559 SDRATTR_TEXTDIRECTION>{} );
562 nSlot == SID_TEXTDIRECTION_LEFT_TO_RIGHT ?
563 text::WritingMode_LR_TB
564 : text::WritingMode_TB_RL, SDRATTR_TEXTDIRECTION ) );
568 rSh.
GetView().AttrChangedNotify(
nullptr);
572 case SID_ATTR_PARA_LEFT_TO_RIGHT:
573 case SID_ATTR_PARA_RIGHT_TO_LEFT:
580 bool bLeftToRight = nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT;
583 if( pNewAttrs && SfxItemState::SET == pNewAttrs->GetItemState( nSlot,
true, &pPoolItem ) )
585 if( !static_cast<const SfxBoolItem*>(pPoolItem)->GetValue() )
586 bLeftToRight = !bLeftToRight;
595 if( SfxItemState::SET == aEditAttr.GetItemState(EE_PARA_JUST,
true, &pPoolItem ) )
596 nAdjust = static_cast<const SvxAdjustItem*>(pPoolItem)->GetAdjust();
601 if( nAdjust == SvxAdjust::Right )
607 if( nAdjust == SvxAdjust::Left )
608 aAttr.Put(
SvxAdjustItem( SvxAdjust::Right, EE_PARA_JUST ) );
612 rSh.
GetView().AttrChangedNotify(
nullptr);
627 assert(
false &&
"wrong dispatcher");
630 if (nEEWhich && pNewAttrs)
632 lcl_convertStringArguments(nSlot, pNewAttrs);
634 aNewAttr.Put(pNewAttrs->Get(nWhich).CloneSetWhich(nEEWhich));
644 if (bRestoreSelection)
661 const SfxPoolItem *pAdjust =
nullptr, *pLSpace =
nullptr, *pEscItem =
nullptr;
672 case SID_LANGUAGE_STATUS:
688 uno::Reference<linguistic2::XThesaurus> xThes(::
GetThesaurus());
698 case SID_ATTR_PARA_ADJUST_LEFT:
699 eAdjust = SvxAdjust::Left;
701 case SID_ATTR_PARA_ADJUST_RIGHT:
702 eAdjust = SvxAdjust::Right;
704 case SID_ATTR_PARA_ADJUST_CENTER:
705 eAdjust = SvxAdjust::Center;
707 case SID_ATTR_PARA_ADJUST_BLOCK:
708 eAdjust = SvxAdjust::Block;
721 bFlag = eAdjust ==
static_cast<const SvxAdjustItem*
>(pAdjust)->GetAdjust();
725 case SID_ATTR_PARA_LRSPACE:
726 case SID_ATTR_PARA_LEFTSPACE:
727 case SID_ATTR_PARA_RIGHTSPACE:
728 case SID_ATTR_PARA_FIRSTLINESPACE:
731 if (eState >= SfxItemState::DEFAULT)
734 aLR.SetWhich(SID_ATTR_PARA_LRSPACE);
742 case SID_ATTR_PARA_LINESPACE:
745 if (eState >= SfxItemState::DEFAULT)
755 case SID_ATTR_PARA_ULSPACE:
756 case SID_ATTR_PARA_BELOWSPACE:
757 case SID_ATTR_PARA_ABOVESPACE:
758 case SID_PARASPACE_INCREASE:
759 case SID_PARASPACE_DECREASE:
762 if (eState >= SfxItemState::DEFAULT)
769 if (nSlotId == SID_ATTR_PARA_ULSPACE || nSlotId == SID_ATTR_PARA_ABOVESPACE
770 || nSlotId == SID_ATTR_PARA_BELOWSPACE)
772 aULSpace.SetWhich(nSlotId);
788 case SID_ATTR_PARA_LINESPACE_10:
791 case SID_ATTR_PARA_LINESPACE_15:
794 case SID_ATTR_PARA_LINESPACE_20:
800 aEditAttr.GetItemState(
EE_PARA_SBL,
false, &pLSpace);
808 == static_cast<const SvxLineSpacingItem*>(pLSpace)->GetPropLineSpace())
816 nEsc = SvxEscapement::Superscript;
819 nEsc = SvxEscapement::Subscript;
826 if (nEsc == static_cast<const SvxEscapementItem*>(pEscItem)->GetEscapement())
841 uno::Reference<linguistic2::XThesaurus> xThes(::
GetThesaurus());
848 case SID_HANGUL_HANJA_CONVERSION:
849 case SID_CHINESE_CONVERSION:
861 case SID_TEXTDIRECTION_LEFT_TO_RIGHT:
862 case SID_TEXTDIRECTION_TOP_TO_BOTTOM:
872 bFlag = pOutliner->IsVertical()
873 == (SID_TEXTDIRECTION_TOP_TO_BOTTOM == nSlotId);
878 if (nSlotId == SID_TEXTDIRECTION_LEFT_TO_RIGHT)
880 bFlag = eMode == text::WritingMode_LR_TB;
884 bFlag = eMode != text::WritingMode_TB_RL;
889 case SID_ATTR_PARA_LEFT_TO_RIGHT:
890 case SID_ATTR_PARA_RIGHT_TO_LEFT:
900 if (pOutliner && pOutliner->IsVertical())
909 case SvxFrameDirection::Horizontal_LR_TB:
910 bFlag = nWhich == SID_ATTR_PARA_LEFT_TO_RIGHT;
913 case SvxFrameDirection::Horizontal_RL_TB:
914 bFlag = nWhich != SID_ATTR_PARA_LEFT_TO_RIGHT;
923 case SID_TRANSLITERATE_HALFWIDTH:
924 case SID_TRANSLITERATE_FULLWIDTH:
925 case SID_TRANSLITERATE_HIRAGANA:
926 case SID_TRANSLITERATE_KATAKANA:
948 case SID_REMOVE_HYPERLINK:
949 case SID_EDIT_HYPERLINK:
950 case SID_OPEN_HYPERLINK:
951 case SID_COPY_HYPERLINK_LOCATION:
962 if (nSlotId && bFlag)
978 sal_uInt16 nWhich = aIter.FirstWhich();
982 sal_uInt16 nEEWhich = 0;
986 case SID_ATTR_CHAR_FONT:
987 case SID_ATTR_CHAR_FONTHEIGHT:
988 case SID_ATTR_CHAR_WEIGHT:
989 case SID_ATTR_CHAR_POSTURE:
991 SfxItemPool* pEditPool = aEditAttr.GetPool()->GetSecondaryPool();
993 pEditPool = aEditAttr.GetPool();
995 aSetItem.GetItemSet().Put( aEditAttr,
false );
1012 case SID_AUTOSPELL_CHECK:
1021 case SID_ATTR_CHAR_WORDLINEMODE: nEEWhich =
EE_CHAR_WLM;
break;
1031 SfxItemPool* pEditPool = aEditAttr.GetPool()->GetSecondaryPool();
1033 pEditPool = aEditAttr.GetPool();
1036 aSetItem.GetItemSet().Put( aEditAttr,
false );
1042 if( nSize >= 19998 )
1044 else if( nSize <= 40 )
1051 rSet.
Put(aEditAttr.Get(nEEWhich).CloneSetWhich(nWhich));
1054 nWhich = aIter.NextWhich();
1066 const bool bCopy = (aSel.nStartPara != aSel.nEndPara) || (aSel.nStartPos != aSel.nEndPos);
1084 case SID_PASTE_UNFORMATTED:
1088 case SID_PASTE_SPECIAL:
1093 pDlg->Insert(SotClipboardFormatId::STRING, OUString());
1094 pDlg->Insert(SotClipboardFormatId::RTF, OUString());
1095 pDlg->Insert(SotClipboardFormatId::RICHTEXT, OUString());
1100 if (nFormat != SotClipboardFormatId::NONE)
1102 if (nFormat == SotClipboardFormatId::STRING)
1111 case SID_CLIPBOARD_FORMAT_ITEMS:
1117 if (
const SfxUInt32Item* pUInt32Item = dynamic_cast<const SfxUInt32Item *>(pItem))
1118 nFormat = static_cast<SotClipboardFormatId>(pUInt32Item->GetValue());
1121 if (nFormat != SotClipboardFormatId::NONE)
1123 if (nFormat == SotClipboardFormatId::STRING)
1133 OSL_FAIL(
"wrong dispatcher");
1145 const bool bCopy = (aSel.nStartPara != aSel.nEndPara) ||
1146 (aSel.nStartPos != aSel.nEndPos);
1149 const bool bPaste = aDataHelper.
HasFormat( SotClipboardFormatId::STRING ) ||
1150 aDataHelper.
HasFormat( SotClipboardFormatId::RTF ) ||
1151 aDataHelper.
HasFormat( SotClipboardFormatId::RICHTEXT );
1167 case SID_PASTE_UNFORMATTED:
1168 case SID_PASTE_SPECIAL:
1173 case SID_CLIPBOARD_FORMAT_ITEMS:
1178 if ( aDataHelper.
HasFormat( SotClipboardFormatId::STRING ) )
1180 if ( aDataHelper.
HasFormat( SotClipboardFormatId::RTF ) )
1182 if ( aDataHelper.
HasFormat( SotClipboardFormatId::RICHTEXT ) )
1185 rSet.
Put( aFormats );
1211 case SID_HYPERLINK_GETLINK:
1232 sSel = sSel.copy(0, std::min<sal_Int32>(255, sSel.getLength()));
1240 rSet.
Put(aHLinkItem);
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
OString stripEnd(const OString &rIn, char c)
void SetURL(const OUString &rURL)
SfxViewFrame * GetViewFrame() const
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
static void CopyStringTo(const OUString &rContent, const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rxClipboard, const vcl::ILibreOfficeKitNotifier *pNotifier=nullptr)
void SetTargetFrame(const OUString &rFrm)
void SetRight(const tools::Long nR, const sal_uInt16 nProp=100)
constexpr TypedWhichId< SvxAutoKernItem > EE_CHAR_PAIRKERNING(EE_CHAR_START+11)
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false)
constexpr TypedWhichId< SvxKerningItem > EE_CHAR_KERNING(EE_CHAR_START+12)
void PutItemForScriptType(SvtScriptType nScriptType, const SfxPoolItem &rItem)
sal_uInt16 GetLower() const
#define LINE_SPACE_DEFAULT_HEIGHT
void SetEscapement(const SvxEscapement eNew)
#define FN_SET_SUPER_SCRIPT
bool BeginTextEdit(SdrObject *pObj, SdrPageView *pPV=nullptr, vcl::Window *pWin=nullptr, bool bIsNewObj=false, bool bSetSelectionToStart=false)
void SelectPara(EditView &rEditView, const ESelection &rCurSel)
void SelectFieldAtCursor()
virtual const SfxItemSet * GetOutputItemSet() const =0
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard()
const OUString & GetTargetFrame() const
static void HandleOpenXmlFilterSettings(SfxRequest &)
SfxDispatcher * GetDispatcher()
static SvxAbstractDialogFactory * Create()
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
tools::Long GetRight() const
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
void GetState(SfxItemSet &)
bool HasSelection() const
void InvalidateItem(sal_uInt16 nWhich)
constexpr sal_uInt16 EE_ITEMS_END(EE_FEATURE_END)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(94)
void Execute(SfxRequest &)
void Done(bool bRemove=false)
SdrMark * GetMark(size_t nNum) const
void ChangeFontSize(bool bGrow, const FontList *pList)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+15)
static SfxObjectShell * Current()
const SfxItemSet * GetArgs() const
void SelectCurrentWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES)
void ExecClpbrd(SfxRequest const &rReq)
sal_Int32 nFirstLineOffset
bool IsCTLFontEnabled() const
void StateInsert(SfxItemSet &rSet)
bool HasFormat(SotClipboardFormatId nFormat) const
const OUString & GetTargetFrame() const
constexpr TypedWhichId< SvxLineSpacingItem > EE_PARA_SBL(EE_PARA_START+14)
constexpr TypedWhichId< SvxFrameDirectionItem > EE_PARA_WRITINGDIR(EE_PARA_START+0)
static LanguageType nLang
Used by the UI to modify the document model.
void GetDrawTextCtrlState(SfxItemSet &)
void StateClpbrd(SfxItemSet &rSet)
constexpr::Color COL_TRANSPARENT(0xFF, 0xFF, 0xFF, 0xFF)
void UpdateWordCount(SfxShell *, sal_uInt16)
void SetTargetFrame(const OUString &rTarget)
void SetTextLeft(const tools::Long nL, const sal_uInt16 nProp=100)
const SwView & GetView() const
void SetPropLineSpace(const sal_uInt16 nProp)
constexpr TypedWhichId< SvxLRSpaceItem > EE_PARA_LRSPACE(EE_PARA_START+12)
constexpr TypedWhichId< SvxULSpaceItem > EE_PARA_ULSPACE(EE_PARA_START+13)
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
const SfxPoolItem & GetDefault(sal_uInt16 nFormatHint) const
Get the default attribute in this document.
static TransferableDataHelper CreateFromSystemClipboard(vcl::Window *pWindow)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
bool SetLanguageStatus(OutlinerView *pOLV, SfxRequest &rReq, SwView const &rView, SwWrtShell &rSh)
constexpr TypedWhichId< SvxContourItem > EE_CHAR_OUTLINE(EE_CHAR_START+8)
EditView & GetEditView() const
#define FN_SHRINK_FONT_SIZE
SfxItemPool & GetPool() const
bool IsChangeCaseMapEnabled() const
constexpr TypedWhichId< SvxHyphenZoneItem > RES_PARATR_HYPHENZONE(69)
SdrObject * GetMarkedSdrObj() const
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)
tools::Long GetTextLeft() const
#define FN_SET_SUB_SCRIPT
const SdrOutliner * GetTextEditOutliner() const
#define FN_NUMBERING_OUTLINE_DLG
const OUString & GetURL() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * GetSlotState(sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
const SvxFieldItem * GetFieldAtSelection() const
constexpr TypedWhichId< SvxCharScaleWidthItem > EE_CHAR_FONTWIDTH(EE_CHAR_START+3)
constexpr TypedWhichId< SvxCharReliefItem > EE_CHAR_RELIEF(EE_CHAR_START+26)
SfxBindings & GetBindings()
const OUString & GetValue() const
const SdrMarkList & GetMarkedObjectList() const
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
const T * GetArg(sal_uInt16 nSlotId) const
bool SetAttributes(const SfxItemSet &rSet, bool bReplaceAll=false)
void SetTextFirstLineOffset(const short nF, const sal_uInt16 nProp=100)
OUString GetSelected() const
constexpr sal_uInt16 EE_ITEMS_START(OWN_ATTR_VALUE_END+1)
void ExecFormatFootnote()
static sal_Int16 GetI18NScriptTypeOfLanguage(LanguageType nLang)
SvtScriptType GetSelectedScriptType() const
virtual void SetCurPageId(const OString &rName)=0
void GetLanguageStatus(OutlinerView *pOLV, SfxItemSet &rSet)
sal_uInt16 GetWhichOfScript(sal_uInt16 nWhich, sal_uInt16 nScript)
short GetTextFirstLineOffset() const
void Paste(bool bUseSpecial=false)
constexpr TypedWhichId< SvxBackgroundColorItem > EE_CHAR_BKGCOLOR(EE_CHAR_START+32)
const OutlinerView * GetTextEditOutlinerView() const
Outliner * GetOutliner() const
static SwAbstractDialogFactory * Create()
const OUString & GetRepresentation() const
#define FN_WORDCOUNT_DIALOG
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
void SetName(const OUString &rName)
void InsertField(const SvxFieldItem &rFld)
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
static void RemoveURLField(EditView &pEditView)
const OUString & GetURL() const
ESelection GetSelection() const
uno::Reference< linguistic2::XThesaurus > GetThesaurus()
FontLineStyle GetLineStyle() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
sal_uInt16 GetSlot() const
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
void SetSelection(const ESelection &)
sal_uInt32 GetHeight() const
bool EDITENG_DLLPUBLIC GetStatusValueForThesaurusFromContext(OUString &rStatusVal, LanguageType &rLang, const EditView &rEditView)
constexpr TypedWhichId< SvxOrphansItem > RES_PARATR_ORPHANS(66)
void DisableItem(sal_uInt16 nWhich)
weld::Window * GetFrameWeld() const
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
constexpr TypedWhichId< SvxFormatSplitItem > RES_PARATR_SPLIT(65)
void ExecNumberingOutline(SfxItemPool &)
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
virtual std::unique_ptr< SfxItemSet > Clone(bool bItems=true, SfxItemPool *pToPool=nullptr) const
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
LanguageType GetAppLanguage()
constexpr TypedWhichId< SvxWordLineModeItem > EE_CHAR_WLM(EE_CHAR_START+13)
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
const SvxFieldData * GetFieldAtCursor() const
void SetAttrToMarked(const SfxItemSet &rAttr)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
#define FN_GROW_FONT_SIZE
void SetInsertMode(SvxLinkInsertMode eNew)
SdrPageView * GetSdrPageView() const
#define FN_FORMAT_FOOTNOTE_DLG
void SetSelection(const ESelection &rNewSel)
void SetVisibleState(sal_uInt16 nId, bool bShow)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
const OUString & GetName() const
SvxLinkInsertMode GetInsertMode() const
void InvalidateAll(bool bWithMsg)
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
ESelection GetSelection() const
constexpr sal_uInt16 EE_FEATURE_FIELD(EE_FEATURE_NOTCONV+1)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const FontList * GetFontList() const
virtual VclPtr< SfxAbstractTabDialog > CreateSwCharDlg(weld::Window *pParent, SwView &pVw, const SfxItemSet &rCoreSet, SwCharDlgMode nDialogMode, const OUString *pFormatStr=nullptr)=0
bool IsInvalidItem(const SfxPoolItem *pItem)
const css::uno::Reference< css::datatransfer::XTransferable > & GetTransferable() const
virtual VclPtr< SfxAbstractTabDialog > CreateSwParaDlg(weld::Window *pParent, SwView &rVw, const SfxItemSet &rCoreSet, bool bDraw, const OString &sDefPage=OString())=0
constexpr TypedWhichId< SvxKerningItem > RES_CHRATR_KERNING(9)
static bool IsCursorAtURLField(const EditView &pEditView)
const SfxPoolItem * GetItemOfScript(SvtScriptType nScript) const
virtual SfxObjectShell * GetObjectShell()
void EDITENG_DLLPUBLIC ReplaceTextWithSynonym(EditView &rEditView, const OUString &rSynonmText)
constexpr TypedWhichId< SvxWidowsItem > RES_PARATR_WIDOWS(67)
sal_uInt16 GetUpper() const
const SvxFieldData * GetField() const
static css::lang::Locale convertToLocale(LanguageType nLangID, bool bResolveSystem=true)