22 #include <com/sun/star/i18n/TextConversionOption.hpp>
23 #include <com/sun/star/lang/XInitialization.hpp>
24 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
25 #include <com/sun/star/awt/XWindow.hpp>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 #include <com/sun/star/beans/XPropertySet.hpp>
28 #include <com/sun/star/linguistic2/XThesaurus.hpp>
73 #include <strings.hrc>
88 #include <osl/diagnose.h>
108 #define ShellClass_SwAnnotationShell
111 #include <swslots.hxx>
117 GetStaticInterface()->RegisterObjectBar(
SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Invisible, ToolbarId::Text_Toolbox_Sw);
119 GetStaticInterface()->RegisterPopupMenu(
"annotation");
148 OSL_ENSURE(pPostItMgr,
"PostItMgr::Layout(): We are looping forever");
163 SfxItemSet aNewAttr(*aEditAttr.GetPool(), aEditAttr.GetRanges());
165 sal_uInt16 nSlot = rReq.
GetSlot();
168 sal_uInt16 nEEWhich = 0;
171 case SID_PARASPACE_INCREASE:
172 case SID_PARASPACE_DECREASE:
175 sal_uInt16 nUpper = aULSpace.
GetUpper();
176 sal_uInt16 nLower = aULSpace.GetLower();
178 if ( nSlot == SID_PARASPACE_INCREASE )
180 nUpper = std::min< sal_uInt16 >( nUpper + 57, 5670 );
181 nLower = std::min< sal_uInt16 >( nLower + 57, 5670 );
185 nUpper = std::max< sal_Int16 >( nUpper - 57, 0 );
186 nLower = std::max< sal_Int16 >( nLower - 57, 0 );
189 aULSpace.SetUpper( nUpper );
190 aULSpace.SetLower( nLower );
191 aNewAttr.Put( aULSpace );
195 case SID_ATTR_PARA_LRSPACE:
197 SvxLRSpaceItem aParaMargin(static_cast<const SvxLRSpaceItem&>(rReq.
198 GetArgs()->
Get(nSlot)));
201 aNewAttr.Put(aParaMargin);
205 case SID_ATTR_PARA_LINESPACE:
211 aNewAttr.Put(aParaMargin);
215 case SID_ATTR_PARA_ULSPACE:
220 aNewAttr.Put( aULSpace );
234 case SID_ATTR_CHAR_FONT:
235 case SID_ATTR_CHAR_FONTHEIGHT:
236 case SID_ATTR_CHAR_WEIGHT:
237 case SID_ATTR_CHAR_POSTURE:
239 SfxItemPool* pSecondPool = aEditAttr.GetPool()->GetSecondaryPool();
241 pSecondPool = aEditAttr.GetPool();
244 aNewAttr.Put( aSetItem.GetItemSet() );
250 case SID_ATTR_CHAR_UNDERLINE:
257 aNewAttr.Put(*pItem);
267 case SID_ATTR_CHAR_OVERLINE:
276 case SID_ATTR_CHAR_WORDLINEMODE: nEEWhich =
EE_CHAR_WLM;
break;
283 case SID_ATTR_PARA_ADJUST_LEFT:
286 case SID_ATTR_PARA_ADJUST_CENTER:
289 case SID_ATTR_PARA_ADJUST_RIGHT:
292 case SID_ATTR_PARA_ADJUST_BLOCK:
296 case SID_ATTR_PARA_LINESPACE_10:
303 case SID_ATTR_PARA_LINESPACE_115:
310 case SID_ATTR_PARA_LINESPACE_15:
317 case SID_ATTR_PARA_LINESPACE_20:
335 case FN_FORMAT_RESET:
346 if( eEsc == SvxEscapement::Superscript )
350 aNewAttr.Put( aItem );
358 if( eEsc == SvxEscapement::Subscript )
362 aNewAttr.Put( aItem );
365 case SID_HYPERLINK_SETLINK:
379 if (pFieldItem && dynamic_cast<const SvxURLField *>(pFieldItem->
GetField()) !=
nullptr)
391 case FN_INSERT_SOFT_HYPHEN:
392 case FN_INSERT_HARDHYPHEN:
393 case FN_INSERT_HARD_SPACE:
394 case FN_INSERT_NNBSP:
395 case SID_INSERT_RLM :
396 case SID_INSERT_LRM :
398 case SID_INSERT_ZWSP:
406 case FN_INSERT_NNBSP: cIns =
CHAR_NNBSP;
break;
407 case SID_INSERT_RLM : cIns =
CHAR_RLM ;
break;
408 case SID_INSERT_LRM : cIns =
CHAR_LRM ;
break;
409 case SID_INSERT_ZWSP : cIns =
CHAR_ZWSP ;
break;
410 case SID_INSERT_WJ: cIns =
CHAR_WJ;
break;
428 pOLV->
InsertText(static_cast<const SfxStringItem *>(pItem)->GetValue());
442 case SID_OPEN_XML_FILTERSETTINGS:
452 case SID_CHAR_DLG_EFFECT:
453 case SID_CHAR_DLG_POSITION:
459 if( !pArgs || pItem )
470 aDlgAttr.
Put( aEditAttr );
475 if (nSlot == SID_CHAR_DLG_EFFECT)
479 if (nSlot == SID_CHAR_DLG_POSITION)
488 sal_uInt16 nRet = pDlg->Execute();
498 aNewAttr.Put(*pArgs);
514 SID_ATTR_PARA_HYPHENZONE, SID_ATTR_PARA_WIDOWS>
517 aDlgAttr.Put(aEditAttr);
527 sal_uInt16 nRet = pDlg->Execute();
537 aNewAttr.Put(*pArgs);
541 case SID_AUTOSPELL_CHECK:
546 case SID_ATTR_PARA_LEFT_TO_RIGHT:
547 case SID_ATTR_PARA_RIGHT_TO_LEFT:
549 bool bLeftToRight = nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT;
552 if( pNewAttrs && SfxItemState::SET == pNewAttrs->
GetItemState( nSlot,
true, &pPoolItem ) )
554 if( !static_cast<const SfxBoolItem*>(pPoolItem)->GetValue() )
555 bLeftToRight = !bLeftToRight;
560 aAttr( *aNewAttr.GetPool() );
563 if(
const SvxAdjustItem* pAdjustItem = aEditAttr.GetItemIfSet(EE_PARA_JUST ) )
564 nAdjust = pAdjustItem->GetAdjust();
569 if( nAdjust == SvxAdjust::Right )
575 if( nAdjust == SvxAdjust::Left )
576 aAttr.Put(
SvxAdjustItem( SvxAdjust::Right, EE_PARA_JUST ) );
583 if(nEEWhich && pNewAttrs)
622 sal_uInt16 nWhich = aIter.FirstWhich();
625 sal_uInt16 nEEWhich = 0;
629 case SID_ATTR_PARA_LRSPACE:
630 case SID_ATTR_PARA_LEFTSPACE:
631 case SID_ATTR_PARA_RIGHTSPACE:
632 case SID_ATTR_PARA_FIRSTLINESPACE:
635 if( eState >= SfxItemState::DEFAULT )
638 aLR.SetWhich(nSlotId);
645 case SID_ATTR_PARA_LINESPACE:
648 if( eState >= SfxItemState::DEFAULT )
657 case SID_ATTR_PARA_ULSPACE:
658 case SID_ATTR_PARA_ABOVESPACE:
659 case SID_ATTR_PARA_BELOWSPACE:
660 case SID_PARASPACE_INCREASE:
661 case SID_PARASPACE_DECREASE:
664 if( eState >= SfxItemState::DEFAULT )
671 if ( nSlotId == SID_ATTR_PARA_ULSPACE
672 || nSlotId == SID_ATTR_PARA_BELOWSPACE
673 || nSlotId == SID_ATTR_PARA_ABOVESPACE
676 aULSpace.SetWhich(nSlotId);
690 case SID_ATTR_CHAR_FONT:
691 case SID_ATTR_CHAR_FONTHEIGHT:
692 case SID_ATTR_CHAR_WEIGHT:
693 case SID_ATTR_CHAR_POSTURE:
696 SfxItemPool* pSecondPool = aEditAttr.GetPool()->GetSecondaryPool();
698 pSecondPool = aEditAttr.GetPool();
700 aSetItem.GetItemSet().Put( aEditAttr,
false );
725 nEsc = SvxEscapement::Superscript;
727 nEsc = SvxEscapement::Subscript;
730 if( nEsc == static_cast<const SvxEscapementItem*>(pEscItem)->GetEscapement() )
736 case SID_ATTR_PARA_ADJUST_LEFT:
737 case SID_ATTR_PARA_ADJUST_RIGHT:
738 case SID_ATTR_PARA_ADJUST_CENTER:
739 case SID_ATTR_PARA_ADJUST_BLOCK:
742 if (nWhich==SID_ATTR_PARA_ADJUST_LEFT)
743 eAdjust = SvxAdjust::Left;
744 else if (nWhich==SID_ATTR_PARA_ADJUST_RIGHT)
745 eAdjust = SvxAdjust::Right;
746 else if (nWhich==SID_ATTR_PARA_ADJUST_CENTER)
747 eAdjust = SvxAdjust::Center;
748 else if (nWhich==SID_ATTR_PARA_ADJUST_BLOCK)
749 eAdjust = SvxAdjust::Block;
766 case SID_ATTR_PARA_LINESPACE_10:
767 case SID_ATTR_PARA_LINESPACE_115:
768 case SID_ATTR_PARA_LINESPACE_15:
769 case SID_ATTR_PARA_LINESPACE_20:
772 if (nWhich==SID_ATTR_PARA_LINESPACE_10)
774 else if (nWhich==SID_ATTR_PARA_LINESPACE_115)
776 else if (nWhich==SID_ATTR_PARA_LINESPACE_15)
778 else if (nWhich==SID_ATTR_PARA_LINESPACE_20)
799 case SID_AUTOSPELL_CHECK:
808 case SID_ATTR_PARA_LEFT_TO_RIGHT:
809 case SID_ATTR_PARA_RIGHT_TO_LEFT:
822 case SvxFrameDirection::Horizontal_LR_TB:
824 bFlag = nWhich == SID_ATTR_PARA_LEFT_TO_RIGHT;
828 case SvxFrameDirection::Horizontal_RL_TB:
830 bFlag = nWhich != SID_ATTR_PARA_LEFT_TO_RIGHT;
841 case SID_INSERT_RLM :
842 case SID_INSERT_LRM :
858 rSet.
Put(aEditAttr.Get(nEEWhich).CloneSetWhich(nWhich));
862 if ( eState == SfxItemState::DONTCARE )
872 nWhich = aIter.NextWhich();
895 sal_uInt16 nSlot = rReq.
GetSlot();
910 case SID_PASTE_UNFORMATTED:
914 case SID_PASTE_SPECIAL:
921 pDlg->
Insert( SotClipboardFormatId::STRING, OUString() );
922 pDlg->
Insert( SotClipboardFormatId::RTF, OUString() );
923 pDlg->
Insert( SotClipboardFormatId::RICHTEXT, OUString() );
929 if (nFormat != SotClipboardFormatId::NONE)
931 if (nFormat == SotClipboardFormatId::STRING)
939 case SID_CLIPBOARD_FORMAT_ITEMS:
945 if (
const SfxUInt32Item* pUInt32Item = dynamic_cast<const SfxUInt32Item *>(pItem))
946 nFormat = static_cast<SotClipboardFormatId>(pUInt32Item->GetValue());
949 if ( nFormat != SotClipboardFormatId::NONE )
951 if (SotClipboardFormatId::STRING == nFormat)
970 bool bPastePossible = ( aDataHelper.
HasFormat( SotClipboardFormatId::STRING ) || aDataHelper.
HasFormat( SotClipboardFormatId::RTF )
971 || aDataHelper.
HasFormat( SotClipboardFormatId::RICHTEXT ));
975 sal_uInt16 nWhich = aIter.FirstWhich();
995 case SID_PASTE_UNFORMATTED:
996 case SID_PASTE_SPECIAL:
998 if( !bPastePossible )
1002 case SID_CLIPBOARD_FORMAT_ITEMS:
1004 if ( bPastePossible )
1007 if ( aDataHelper.
HasFormat( SotClipboardFormatId::RTF ) )
1009 if ( aDataHelper.
HasFormat( SotClipboardFormatId::RICHTEXT ) )
1012 rSet.
Put( aFormats );
1019 nWhich = aIter.NextWhich();
1062 case SID_HYPERLINK_GETLINK:
1071 if (
const SvxURLField* pURLField = dynamic_cast<const SvxURLField *>(pFieldItem->
GetField()))
1073 aHLinkItem.
SetName(pURLField->GetRepresentation());
1074 aHLinkItem.
SetURL(pURLField->GetURL());
1081 sSel = sSel.copy(0, std::min<sal_Int32>(255, sSel.getLength()));
1089 rSet.
Put(aHLinkItem);
1107 sal_uInt16 nSlot = rReq.
GetSlot();
1214 SwResId( STR_DELETE_NOTE_AUTHOR ) :
SwResId( STR_HIDE_NOTE_AUTHOR ) );
1217 aText = aRewriter.
Apply( aText );
1234 if( (sAuthor = aUserOpt.
GetFullName()).isEmpty() &&
1235 (sAuthor = aUserOpt.
GetID()).isEmpty() )
1236 sAuthor =
SwResId( STR_REDLINE_UNKNOWN_AUTHOR );
1264 sal_uInt16 nSlot = rReq.
GetSlot();
1266 bool bRestoreSelection =
false;
1271 case SID_LANGUAGE_STATUS:
1284 OUString aReplaceText;
1288 if (!aReplaceText.isEmpty())
1297 case SID_HANGUL_HANJA_CONVERSION:
1299 i18n::TextConversionOption::CHARACTER_BY_CHARACTER,
true,
false);
1302 case SID_CHINESE_CONVERSION:
1309 Reference< lang::XMultiComponentFactory > xMCF( xContext->getServiceManager() );
1312 Reference< ui::dialogs::XExecutableDialog > xDialog(
1313 xMCF->createInstanceWithContext(
1314 "com.sun.star.linguistic2.ChineseTranslationDialog", xContext),
1316 Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY );
1322 {
"ParentWindow",
uno::Any(Reference<awt::XWindow>())}
1324 xInit->initialize( aSeq );
1327 sal_Int16 nDialogRet = xDialog->execute();
1328 if(
RET_OK == nDialogRet )
1331 bool bToSimplified =
true;
1332 bool bUseVariants =
true;
1333 bool bCommonTerms =
true;
1339 xProp->getPropertyValue(
"IsDirectionToSimplified" ) >>= bToSimplified;
1340 xProp->getPropertyValue(
"IsUseCharacterVariants" ) >>= bUseVariants;
1341 xProp->getPropertyValue(
"IsTranslateCommonTerms" ) >>= bCommonTerms;
1351 sal_Int32 nOptions = bUseVariants ? i18n::TextConversionOption::USE_CHARACTER_VARIANTS : 0;
1353 nOptions = nOptions | i18n::TextConversionOption::CHARACTER_BY_CHARACTER;
1356 nTargetLang, GetDefaultFontFlags::OnlyOne );
1362 if( xComponent.is() )
1363 xComponent->dispose();
1370 if (bRestoreSelection)
1391 case SID_LANGUAGE_STATUS:
1399 OUString aStatusVal;
1405 uno::Reference< linguistic2::XThesaurus > xThes( ::
GetThesaurus() );
1406 if (!bIsLookUpWord ||
1420 uno::Reference< linguistic2::XThesaurus > xThes( ::
GetThesaurus() );
1426 case SID_HANGUL_HANJA_CONVERSION:
1427 case SID_CHINESE_CONVERSION:
1462 case SID_TRANSLITERATE_SENTENCE_CASE:
1463 nMode = TransliterationFlags::SENTENCE_CASE;
1465 case SID_TRANSLITERATE_TITLE_CASE:
1466 nMode = TransliterationFlags::TITLE_CASE;
1468 case SID_TRANSLITERATE_TOGGLE_CASE:
1469 nMode = TransliterationFlags::TOGGLE_CASE;
1471 case SID_TRANSLITERATE_UPPER:
1472 nMode = TransliterationFlags::LOWERCASE_UPPERCASE;
1474 case SID_TRANSLITERATE_LOWER:
1475 nMode = TransliterationFlags::UPPERCASE_LOWERCASE;
1477 case SID_TRANSLITERATE_HALFWIDTH:
1478 nMode = TransliterationFlags::FULLWIDTH_HALFWIDTH;
1480 case SID_TRANSLITERATE_FULLWIDTH:
1481 nMode = TransliterationFlags::HALFWIDTH_FULLWIDTH;
1483 case SID_TRANSLITERATE_HIRAGANA:
1484 nMode = TransliterationFlags::KATAKANA_HIRAGANA;
1486 case SID_TRANSLITERATE_KATAKANA:
1487 nMode = TransliterationFlags::HIRAGANA_KATAKANA;
1491 OSL_ENSURE(
false,
"wrong dispatcher");
1494 if( nMode != TransliterationFlags::NONE )
1500 if( rReq.
GetSlot() != SID_TRANSLITERATE_ROTATE_CASE )
1531 sal_uInt16 nCnt = 1;
1533 if( pArgs && SfxItemState::SET == pArgs->
GetItemState( nId,
false, &pItem ) )
1534 nCnt = static_cast<const SfxUInt16Item*>(pItem)->GetValue();
1549 sal_uInt16 nSteps = nCnt;
1550 if ( nCount < nCnt )
1552 nCnt = nCnt - nCount;
1559 pUndoManager->
Undo();
1580 sal_uInt16 nSteps = nCnt;
1581 if ( nCount < nCnt )
1583 nCnt = nCnt - nCount;
1590 pUndoManager->
Redo();
1634 rSet.
Put(
SfxUInt32Item(nWhich, static_cast<sal_uInt32>(SID_REPAIRPACKAGE)) );
1651 rSet.
Put(
SfxUInt32Item(nWhich, static_cast<sal_uInt32>(SID_REPAIRPACKAGE)) );
1657 case SID_GETUNDOSTRINGS:
1658 case SID_GETREDOSTRINGS:
1662 OUString (
SfxUndoManager::*fnGetComment)( size_t,
bool const )
const;
1665 if( SID_GETUNDOSTRINGS == nWhich )
1676 OUStringBuffer sList;
1679 for( sal_uInt16
n = 0;
n < nCount; ++
n )
1684 if ((nWhich == SID_GETUNDOSTRINGS) &&
1689 else if ((nWhich == SID_GETREDOSTRINGS) &&
1696 aItem.
SetString( sList.makeStringAndClear() );
1741 pCharMapItem = pArgs->
GetItemIfSet(SID_CHARMAP,
false);
1755 std::shared_ptr<SvxFontItem> aSetDlgFont(std::make_shared<SvxFontItem>(
RES_CHRATR_FONT));
1758 aSetItem.GetItemSet().Put( aSet,
false );
1759 const SfxPoolItem* pI = aSetItem.GetItemOfScript( nScript );
1762 aSetDlgFont.reset(static_cast<SvxFontItem*>(pI->
Clone()));
1770 aSetDlgFont.reset(aSet.Get(nFontWhich).Clone());
1773 if (sFontName.isEmpty())
1774 sFontName = aSetDlgFont->GetFamilyName();
1778 if( sSym.isEmpty() )
1787 if( !sSymbolFont.isEmpty() )
1790 aAllSet.
Put(
SfxStringItem( SID_FONT_NAME, aSetDlgFont->GetFamilyName() ) );
1808 aFontSet( *aOldSet.GetPool() );
1809 aFontSet.Set( aOldSet );
1815 SfxItemSet aSetFont( *aFontSet.GetPool(), aFontSet.GetRanges() );
1821 if( SvtScriptType::LATIN & nScriptBreak )
1822 aSetFont.Put( aFontItem );
1823 if( SvtScriptType::ASIAN & nScriptBreak )
1825 aFontItem.SetWhich(EE_CHAR_FONTINFO_CJK);
1826 aSetFont.Put( aFontItem );
1828 if( SvtScriptType::COMPLEX & nScriptBreak )
1831 aSetFont.Put( aFontItem );
1838 aSel.nStartPos = aSel.nEndPos;
#define FN_HIDE_ALL_NOTES
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
OString stripEnd(const OString &rIn, char c)
void SetURL(const OUString &rURL)
SfxViewFrame * GetViewFrame() const
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
void SetTargetFrame(const OUString &rFrm)
constexpr TypedWhichId< SvxAutoKernItem > EE_CHAR_PAIRKERNING(EE_CHAR_START+11)
sal_uInt16 GetPropLineSpace() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
constexpr TypedWhichId< SvxKerningItem > EE_CHAR_KERNING(EE_CHAR_START+12)
const OUString & GetFamilyName() const
bool isContentExtractionLocked() const
void PutItemForScriptType(SvtScriptType nScriptType, const SfxPoolItem &rItem)
#define SFX_IMPL_INTERFACE(Class, SuperClass)
virtual SfxUndoManager * GetUndoManager() override
void InsertText(const OUString &rNew, bool bSelect=false)
sal_uInt16 GetLower() const
#define LINE_SPACE_DEFAULT_HEIGHT
SvxAdjust GetAdjust() const
void SetEscapement(const SvxEscapement eNew)
#define FN_SET_SUPER_SCRIPT
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
virtual const SfxItemSet * GetOutputItemSet() const =0
const OUString & GetStyleName() const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
const OUString & GetTargetFrame() const
static void HandleOpenXmlFilterSettings(SfxRequest &)
tools::Rectangle const & GetOutputArea() const
SfxDispatcher * GetDispatcher()
void ShowCursor(bool bGotoCursor=true, bool bActivate=false)
static SvxAbstractDialogFactory * Create()
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
Reference< XFrame > xFrame
bool GetLastUndoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
void GetState(SfxItemSet &)
void StateUndo(SfxItemSet &rSet)
bool HasSelection() const
void InvalidateItem(sal_uInt16 nWhich)
SvtScriptType GetAllScriptsOfText(const OUString &rText) const
void TransliterateText(TransliterationFlags nTransliterationMode)
constexpr sal_uInt16 EE_ITEMS_END(EE_FEATURE_END)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(94)
void GetDoStrings(DoType eDoType, SfxStringListItem &rStrLstItem) const
void Done(bool bRemove=false)
sal_Int32 GetParagraphCount() const
void ChangeFontSize(bool bGrow, const FontList *pList)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+15)
static SfxObjectShell * Current()
bool HasActiveAnnotationWin() const
void StateSearch(SfxItemSet &)
const SfxItemSet * GetArgs() const
void SelectCurrentWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES)
bool IsCTLFontEnabled() const
bool HasFormat(SotClipboardFormatId nFormat) const
void ExecLingu(SfxRequest &rReq)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
constexpr TypedWhichId< SvxLineSpacingItem > EE_PARA_SBL(EE_PARA_START+14)
void ExecSearch(SfxRequest &)
constexpr TypedWhichId< SvxFrameDirectionItem > EE_PARA_WRITINGDIR(EE_PARA_START+0)
FontFamily GetFamilyType()
SwWrtShell & GetWrtShell() const
static LanguageType nLang
tools::Long GetPostItTextHeight()
void ExecClpbrd(SfxRequest const &rReq)
Used by the UI to modify the document model.
OUString SwResId(TranslateId aId)
weld::Window * GetFrameWeld() const
void StateSearch(SfxItemSet &)
void UpdateWordCount(SfxShell *, sal_uInt16)
void SetTargetFrame(const OUString &rTarget)
SfxUndoManager & GetUndoManager()
void SetPropLineSpace(const sal_uInt16 nProp)
constexpr TypedWhichId< SvxFieldItem > EE_FEATURE_FIELD(EE_FEATURE_NOTCONV+1)
#define FN_FORMAT_ALL_NOTES
constexpr TypedWhichId< SvxLRSpaceItem > EE_PARA_LRSPACE(EE_PARA_START+12)
void StartTextConversion(weld::Widget *pDialogParent, LanguageType nSrcLang, LanguageType nDestLang, const vcl::Font *pDestFont, sal_Int32 nOptions, bool bIsInteractive, bool bMultipleDoc)
constexpr TypedWhichId< SvxULSpaceItem > EE_PARA_ULSPACE(EE_PARA_START+13)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
const SfxPoolItem & GetDefault(sal_uInt16 nFormatHint) const
Get the default attribute in this document.
SfxFrame & GetFrame() const
void SelectRange(sal_Int32 nFirst, sal_Int32 nCount)
static TransferableDataHelper CreateFromSystemClipboard(vcl::Window *pWindow)
void ExecuteCommand(sal_uInt16 nSlot)
#define FN_DELETE_COMMENT
virtual void ShowCursor(bool bOn=true) override
void NoteExec(SfxRequest const &)
void ExecUndo(SfxRequest &rReq)
void GetNoteState(SfxItemSet &)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
bool HasSelection() const
virtual size_t GetRedoActionCount(bool const i_currentLevel=CurrentLevel) const
OUString GetDoString(DoType eDoType) const
bool SetLanguageStatus(OutlinerView *pOLV, SfxRequest &rReq, SwView const &rView, SwWrtShell &rSh)
sal_Int16 GetI18NScriptTypeOfLanguage(LanguageType nLang)
constexpr TypedWhichId< SvxContourItem > EE_CHAR_OUTLINE(EE_CHAR_START+8)
EditView & GetEditView() const
#define FN_SHRINK_FONT_SIZE
SfxItemPool & GetPool() const
RotateTransliteration m_aRotateCase
constexpr TypedWhichId< SvxHyphenZoneItem > RES_PARATR_HYPHENZONE(69)
void StateClpbrd(SfxItemSet &rSet)
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
SwAnnotationShell(SwView &)
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
const SfxItemPool & GetAttrPool() const
#define FN_SET_SUB_SCRIPT
#define FN_NUMBERING_OUTLINE_DLG
constexpr TypedWhichId< SvxColorItem > EE_CHAR_BKGCOLOR(EE_CHAR_START+32)
const OUString & GetURL() const
void SetAttribs(const SfxItemSet &)
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
void InsertSymbol(SfxRequest &rReq)
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
OUString Apply(const OUString &rStr) const
void ExecTransliteration(SfxRequest const &)
#define FN_DELETE_NOTE_AUTHOR
constexpr TypedWhichId< SvxCharScaleWidthItem > EE_CHAR_FONTWIDTH(EE_CHAR_START+3)
void Hide(std::u16string_view rAuthor)
constexpr TypedWhichId< SvxCharReliefItem > EE_CHAR_RELIEF(EE_CHAR_START+26)
SfxBindings & GetBindings()
const OUString & GetValue() const
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
const T * GetArg(sal_uInt16 nSlotId) const
#define FN_HIDE_NOTE_AUTHOR
void SetPool(SfxItemPool *pNewPool)
OUString GetSelected() const
constexpr sal_uInt16 EE_ITEMS_START(OWN_ATTR_VALUE_END+1)
void ExecFormatFootnote()
SvtScriptType GetSelectedScriptType() const
void AddRule(SwUndoArg eWhat, const OUString &rWith)
virtual void SetCurPageId(const OString &rName)=0
void GetLanguageStatus(OutlinerView *pOLV, SfxItemSet &rSet)
sal_uInt16 GetWhichOfScript(sal_uInt16 nWhich, sal_uInt16 nScript)
TransliterationFlags getNextMode()
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper)=0
void Paste(bool bUseSpecial=false)
#define LANGUAGE_CHINESE_SIMPLIFIED
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > SAL_CALL defaultBootstrap_InitialComponentContext()
void SetString(const OUString &)
#define FN_DELETE_COMMENT_THREAD
static SwAbstractDialogFactory * Create()
Outliner * GetOutliner() const
#define FN_WORDCOUNT_DIALOG
virtual VclPtr< SfxAbstractDialog > CreateCharMapDialog(weld::Window *pParent, const SfxItemSet &rAttr, const css::uno::Reference< css::frame::XFrame > &rFrame)=0
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
EESpellState StartThesaurus(weld::Widget *pDialogParent)
void StateInsert(SfxItemSet &rSet)
void SetName(const OUString &rName)
void HideCursor(bool bDeactivate=false)
virtual size_t GetUndoActionCount(bool const i_currentLevel=CurrentLevel) const
void InsertField(const SvxFieldItem &rFld)
void ResizeIfNecessary(tools::Long aOldHeight, tools::Long aNewHeight)
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
SwDocShell * GetDocShell()
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
const OUString & GetSymbolFont() const
#define SFX_OBJECTBAR_OBJECT
virtual void Insert(SotClipboardFormatId nFormat, const OUString &rFormatName)=0
SW_DLLPUBLIC bool HasActiveSidebarWin() const
ESelection GetSelection() const
void ExecuteFormatAllDialog(SwView &rView)
void SetReturnValue(const SfxPoolItem &)
uno::Reference< linguistic2::XThesaurus > GetThesaurus()
SfxItemPool * GetSecondaryPool() const
weld::Window * GetFrameWeld() const
FontLineStyle GetLineStyle() const
virtual ~SwAnnotationShell() override
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
OUString GetUndoActionComment(size_t nNo=0, bool const i_currentLevel=CurrentLevel) const
sal_uInt16 GetSlot() const
static const OUString & GetContextName(const Context eContext)
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
void SetSelection(const ESelection &)
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
OUString GetRedoActionComment(size_t nNo=0, bool const i_currentLevel=CurrentLevel) 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 &)
const SwViewOption * GetViewOptions() const
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
void ExecSearch(SfxRequest &)
void Do(DoType eDoType, sal_uInt16 nCnt=1, sal_uInt16 nOffset=0)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
LanguageType GetAppLanguage()
constexpr TypedWhichId< SvxWordLineModeItem > EE_CHAR_WLM(EE_CHAR_START+13)
SwPostItMgr * GetPostItMgr()
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
Sequence< sal_Int8 > aSeq
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
bool SetUpdateLayout(bool bUpdate)
bool GetFirstRedoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
#define FN_GROW_FONT_SIZE
void SetInsertMode(SvxLinkInsertMode eNew)
sw::annotation::SwAnnotationWin * GetActiveSidebarWin()
#define FN_FORMAT_FOOTNOTE_DLG
OutlinerView * GetOutlinerView()
void SetSelection(const ESelection &rNewSel)
virtual SfxInterface * GetInterface() const
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)
void AppendItem(const SfxPoolItem &)
OUString GetFullName() const
#define LANGUAGE_CHINESE_TRADITIONAL
static void StateDisableItems(SfxItemSet &)
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
void ExecRotateTransliteration(SfxRequest const &)
OUString GetAuthor() const
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
static void StateStatusLine(SfxItemSet &rSet)
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)
void GetLinguState(SfxItemSet &)
const css::uno::Reference< css::datatransfer::XTransferable > & GetTransferable() const
static SfxItemPool * GetAnnotationPool(SwView const &rV)
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)
void SetContextName(const OUString &rsContextName)
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)
rtl_TextEncoding GetCharSet() const
void Delete(const OUString &aAuthor)
sal_uInt16 GetUpper() const
const SvxFieldData * GetField() const
static css::lang::Locale convertToLocale(LanguageType nLangID, bool bResolveSystem=true)
#define FN_RESOLVE_NOTE_THREAD
#define FN_DELETE_ALL_NOTES
static bool const TopLevel