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>
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");
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 );
191 aNewAttr.
Put( aULSpace );
195 case SID_ATTR_PARA_LRSPACE:
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 );
229 (pObjSh ? pObjSh->
GetItem(SID_ATTR_CHAR_FONTLIST) :
nullptr);
235 case SID_ATTR_CHAR_FONT:
236 case SID_ATTR_CHAR_FONTHEIGHT:
237 case SID_ATTR_CHAR_WEIGHT:
238 case SID_ATTR_CHAR_POSTURE:
242 pSecondPool = aEditAttr.
GetPool();
245 aNewAttr.
Put( aSetItem.GetItemSet() );
251 case SID_ATTR_CHAR_UNDERLINE:
258 aNewAttr.
Put(*pItem);
268 case SID_ATTR_CHAR_OVERLINE:
277 case SID_ATTR_CHAR_WORDLINEMODE: nEEWhich =
EE_CHAR_WLM;
break;
284 case SID_ATTR_PARA_ADJUST_LEFT:
287 case SID_ATTR_PARA_ADJUST_CENTER:
290 case SID_ATTR_PARA_ADJUST_RIGHT:
293 case SID_ATTR_PARA_ADJUST_BLOCK:
297 case SID_ATTR_PARA_LINESPACE_10:
304 case SID_ATTR_PARA_LINESPACE_115:
311 case SID_ATTR_PARA_LINESPACE_15:
318 case SID_ATTR_PARA_LINESPACE_20:
336 case FN_FORMAT_RESET:
347 if( eEsc == SvxEscapement::Superscript )
351 aNewAttr.
Put( aItem );
359 if( eEsc == SvxEscapement::Subscript )
363 aNewAttr.
Put( aItem );
366 case SID_HYPERLINK_SETLINK:
392 case FN_INSERT_SOFT_HYPHEN:
393 case FN_INSERT_HARDHYPHEN:
394 case FN_INSERT_HARD_SPACE:
395 case FN_INSERT_NNBSP:
396 case SID_INSERT_RLM :
397 case SID_INSERT_LRM :
399 case SID_INSERT_ZWSP:
407 case FN_INSERT_NNBSP: cIns =
CHAR_NNBSP;
break;
408 case SID_INSERT_RLM : cIns =
CHAR_RLM ;
break;
409 case SID_INSERT_LRM : cIns =
CHAR_LRM ;
break;
410 case SID_INSERT_ZWSP : cIns =
CHAR_ZWSP ;
break;
411 case SID_INSERT_WJ: cIns =
CHAR_WJ;
break;
443 case SID_OPEN_XML_FILTERSETTINGS:
453 case SID_CHAR_DLG_EFFECT:
454 case SID_CHAR_DLG_POSITION:
460 if( !pArgs || pItem )
471 aDlgAttr.
Put( aEditAttr );
476 if (nSlot == SID_CHAR_DLG_EFFECT)
478 pDlg->SetCurPageId(
"fonteffects");
480 if (nSlot == SID_CHAR_DLG_POSITION)
482 pDlg->SetCurPageId(
"position");
486 pDlg->SetCurPageId(pItem->
GetValue());
489 sal_uInt16 nRet = pDlg->Execute();
492 rReq.
Done( *( pDlg->GetOutputItemSet() ) );
493 aNewAttr.
Put(*pDlg->GetOutputItemSet());
499 aNewAttr.
Put(*pArgs);
515 SID_ATTR_PARA_HYPHENZONE, SID_ATTR_PARA_WIDOWS>
518 aDlgAttr.Put(aEditAttr);
528 sal_uInt16 nRet = pDlg->Execute();
531 rReq.
Done( *( pDlg->GetOutputItemSet() ) );
532 aNewAttr.
Put(*pDlg->GetOutputItemSet());
538 aNewAttr.
Put(*pArgs);
542 case SID_AUTOSPELL_CHECK:
547 case SID_ATTR_PARA_LEFT_TO_RIGHT:
548 case SID_ATTR_PARA_RIGHT_TO_LEFT:
550 bool bLeftToRight = nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT;
553 if( pNewAttrs && SfxItemState::SET == pNewAttrs->
GetItemState( nSlot,
true, &pPoolItem ) )
556 bLeftToRight = !bLeftToRight;
565 nAdjust = pAdjustItem->GetAdjust();
570 if(
nAdjust == SvxAdjust::Right )
576 if(
nAdjust == SvxAdjust::Left )
584 if(nEEWhich && pNewAttrs)
626 sal_uInt16 nEEWhich = 0;
630 case SID_ATTR_PARA_LRSPACE:
631 case SID_ATTR_PARA_LEFTSPACE:
632 case SID_ATTR_PARA_RIGHTSPACE:
633 case SID_ATTR_PARA_FIRSTLINESPACE:
636 if( eState >= SfxItemState::DEFAULT )
639 aLR.SetWhich(nSlotId);
646 case SID_ATTR_PARA_LINESPACE:
649 if( eState >= SfxItemState::DEFAULT )
658 case SID_ATTR_PARA_ULSPACE:
659 case SID_ATTR_PARA_ABOVESPACE:
660 case SID_ATTR_PARA_BELOWSPACE:
661 case SID_PARASPACE_INCREASE:
662 case SID_PARASPACE_DECREASE:
665 if( eState >= SfxItemState::DEFAULT )
672 if ( nSlotId == SID_ATTR_PARA_ULSPACE
673 || nSlotId == SID_ATTR_PARA_BELOWSPACE
674 || nSlotId == SID_ATTR_PARA_ABOVESPACE
677 aULSpace.SetWhich(nSlotId);
691 case SID_ATTR_CHAR_FONT:
692 case SID_ATTR_CHAR_FONTHEIGHT:
693 case SID_ATTR_CHAR_WEIGHT:
694 case SID_ATTR_CHAR_POSTURE:
699 pSecondPool = aEditAttr.
GetPool();
701 aSetItem.GetItemSet().Put( aEditAttr,
false );
726 nEsc = SvxEscapement::Superscript;
728 nEsc = SvxEscapement::Subscript;
737 case SID_ATTR_PARA_ADJUST_LEFT:
738 case SID_ATTR_PARA_ADJUST_RIGHT:
739 case SID_ATTR_PARA_ADJUST_CENTER:
740 case SID_ATTR_PARA_ADJUST_BLOCK:
743 if (nWhich==SID_ATTR_PARA_ADJUST_LEFT)
744 eAdjust = SvxAdjust::Left;
745 else if (nWhich==SID_ATTR_PARA_ADJUST_RIGHT)
746 eAdjust = SvxAdjust::Right;
747 else if (nWhich==SID_ATTR_PARA_ADJUST_CENTER)
748 eAdjust = SvxAdjust::Center;
749 else if (nWhich==SID_ATTR_PARA_ADJUST_BLOCK)
750 eAdjust = SvxAdjust::Block;
767 case SID_ATTR_PARA_LINESPACE_10:
768 case SID_ATTR_PARA_LINESPACE_115:
769 case SID_ATTR_PARA_LINESPACE_15:
770 case SID_ATTR_PARA_LINESPACE_20:
773 if (nWhich==SID_ATTR_PARA_LINESPACE_10)
775 else if (nWhich==SID_ATTR_PARA_LINESPACE_115)
777 else if (nWhich==SID_ATTR_PARA_LINESPACE_15)
779 else if (nWhich==SID_ATTR_PARA_LINESPACE_20)
800 case SID_AUTOSPELL_CHECK:
809 case SID_ATTR_PARA_LEFT_TO_RIGHT:
810 case SID_ATTR_PARA_RIGHT_TO_LEFT:
823 case SvxFrameDirection::Horizontal_LR_TB:
825 bFlag = nWhich == SID_ATTR_PARA_LEFT_TO_RIGHT;
829 case SvxFrameDirection::Horizontal_RL_TB:
831 bFlag = nWhich != SID_ATTR_PARA_LEFT_TO_RIGHT;
842 case SID_INSERT_RLM :
843 case SID_INSERT_LRM :
862 if ( eState == SfxItemState::DONTCARE )
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:
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 ) )
1019 nWhich = aIter.NextWhich();
1062 case SID_HYPERLINK_GETLINK:
1073 aHLinkItem.
SetName(pURLField->GetRepresentation());
1074 aHLinkItem.
SetURL(pURLField->GetURL());
1081 sSel = sSel.copy(0, std::min<sal_Int32>(255, sSel.getLength()));
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:
1305 Reference< XComponentContext > xContext(
1306 ::cppu::defaultBootstrap_InitialComponentContext() );
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;
1334 Reference< beans::XPropertySet > xProp( xDialog, UNO_QUERY );
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 );
1361 Reference< lang::XComponent > xComponent( xDialog, UNO_QUERY );
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 ) )
1549 sal_uInt16 nSteps = nCnt;
1559 pUndoManager->
Undo();
1580 sal_uInt16 nSteps = nCnt;
1590 pUndoManager->
Redo();
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 );
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 )
1826 aSetFont.
Put( aFontItem );
1828 if( SvtScriptType::COMPLEX & nScriptBreak )
1831 aSetFont.
Put( aFontItem );
const OUString & GetValue() const
void SelectCurrentWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES)
void ChangeFontSize(bool bGrow, const FontList *pList)
bool HasSelection() const
void SetSelection(const ESelection &rNewSel)
static css::lang::Locale convertToLocale(LanguageType nLangID, bool bResolveSystem=true)
void SetSelection(const ESelection &)
SvtScriptType GetSelectedScriptType() const
void StartTextConversion(weld::Widget *pDialogParent, LanguageType nSrcLang, LanguageType nDestLang, const vcl::Font *pDestFont, sal_Int32 nOptions, bool bIsInteractive, bool bMultipleDoc)
bool HasSelection() const
void InsertField(const SvxFieldItem &rFld)
const SvxFieldItem * GetFieldAtSelection() const
void InsertText(const OUString &rNew, bool bSelect=false)
void TransliterateText(TransliterationFlags nTransliterationMode)
tools::Rectangle const & GetOutputArea() const
EESpellState StartThesaurus(weld::Widget *pDialogParent)
void HideCursor(bool bDeactivate=false)
ESelection GetSelection() const
void Paste(bool bUseSpecial=false)
Outliner * GetOutliner() const
void SetAttribs(const SfxItemSet &)
OUString GetSelected() const
void SelectRange(sal_Int32 nFirst, sal_Int32 nCount)
EditView & GetEditView() const
void ShowCursor(bool bGotoCursor=true, bool bActivate=false)
bool SetUpdateLayout(bool bUpdate)
SfxUndoManager & GetUndoManager()
sal_Int32 GetParagraphCount() const
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
TransliterationFlags getNextMode()
void SetVisibleState(sal_uInt16 nId, bool bShow)
void InvalidateAll(bool bWithMsg)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
SfxItemPool * GetSecondaryPool() const
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
const WhichRangesContainer & GetRanges() const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void DisableItem(sal_uInt16 nWhich)
void InvalidateItem(sal_uInt16 nWhich)
bool isContentExtractionLocked() const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * Current()
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
void AppendItem(const SfxPoolItem &)
void SetReturnValue(const SfxPoolItem &)
weld::Window * GetFrameWeld() const
void Done(bool bRemove=false)
const SfxPoolItem * GetSlotState(sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
SfxItemPool & GetPool() const
void SetContextName(const OUString &rsContextName)
static void HandleOpenXmlFilterSettings(SfxRequest &)
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
virtual SfxInterface * GetInterface() const
virtual SfxObjectShell * GetObjectShell()
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
void SetPool(SfxItemPool *pNewPool)
void SetString(const OUString &)
OUString GetRedoActionComment(size_t nNo=0, bool const i_currentLevel=CurrentLevel) const
OUString GetUndoActionComment(size_t nNo=0, bool const i_currentLevel=CurrentLevel) const
static bool const TopLevel
virtual size_t GetRedoActionCount(bool const i_currentLevel=CurrentLevel) const
virtual size_t GetUndoActionCount(bool const i_currentLevel=CurrentLevel) const
SfxBindings & GetBindings()
SfxDispatcher * GetDispatcher()
SfxFrame & GetFrame() const
weld::Window * GetFrameWeld() const
SfxViewFrame & GetViewFrame() const
static bool IsCTLFontEnabled()
OUString GetFullName() const
virtual VclPtr< SfxAbstractDialog > CreateCharMapDialog(weld::Window *pParent, const SfxItemSet &rAttr, const css::uno::Reference< css::frame::XFrame > &rFrame)=0
static SvxAbstractDialogFactory * Create()
SvxAdjust GetAdjust() const
void SetEscapement(const SvxEscapement eNew)
const SvxFieldData * GetField() const
const FontList * GetFontList() const
SvxLinkInsertMode GetInsertMode() const
const OUString & GetName() const
const OUString & GetURL() const
void SetName(const OUString &rName)
void SetInsertMode(SvxLinkInsertMode eNew)
void SetURL(const OUString &rURL)
const OUString & GetTargetFrame() const
void SetTargetFrame(const OUString &rTarget)
void SetPropLineSpace(const sal_uInt16 nProp)
sal_uInt16 GetPropLineSpace() const
void PutItemForScriptType(SvtScriptType nScriptType, const SfxPoolItem &rItem)
const SfxPoolItem * GetItemOfScript(SvtScriptType nScript) const
void SetLower(const sal_uInt16 nL, const sal_uInt16 nProp=100)
sal_uInt16 GetUpper() const
void SetUpper(const sal_uInt16 nU, const sal_uInt16 nProp=100)
sal_uInt16 GetLower() const
void SetTargetFrame(const OUString &rFrm)
virtual VclPtr< SfxAbstractTabDialog > CreateSwParaDlg(weld::Window *pParent, SwView &rVw, const SfxItemSet &rCoreSet, bool bDraw, const OUString &sDefPage={})=0
virtual VclPtr< SfxAbstractTabDialog > CreateSwCharDlg(weld::Window *pParent, SwView &pVw, const SfxItemSet &rCoreSet, SwCharDlgMode nDialogMode, const OUString *pFormatStr=nullptr)=0
static SwAbstractDialogFactory * Create()
static SfxItemPool * GetAnnotationPool(SwView const &rV)
void GetLinguState(SfxItemSet &)
void GetNoteState(SfxItemSet &)
void ExecTransliteration(SfxRequest const &)
void ExecUndo(SfxRequest &rReq)
void ExecClpbrd(SfxRequest const &rReq)
void ExecLingu(SfxRequest &rReq)
void ExecRotateTransliteration(SfxRequest const &)
void InsertSymbol(SfxRequest &rReq)
RotateTransliteration m_aRotateCase
virtual ~SwAnnotationShell() override
void StateClpbrd(SfxItemSet &rSet)
void StateInsert(SfxItemSet &rSet)
virtual SfxUndoManager * GetUndoManager() override
static void StateDisableItems(SfxItemSet &)
void ExecSearch(SfxRequest &)
void StateUndo(SfxItemSet &rSet)
void StateSearch(SfxItemSet &)
void GetState(SfxItemSet &)
SwAnnotationShell(SwView &)
void NoteExec(SfxRequest const &)
static void StateStatusLine(SfxItemSet &rSet)
SvtScriptType GetAllScriptsOfText(const OUString &rText) const
const SfxPoolItem & GetDefault(sal_uInt16 nFormatHint) const
Get the default attribute in this document.
bool GetFirstRedoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
bool GetLastUndoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
void Delete(const OUString &aAuthor)
void Hide(std::u16string_view rAuthor)
void ExecuteFormatAllDialog(SwView &rView)
bool HasActiveAnnotationWin() const
sw::annotation::SwAnnotationWin * GetActiveSidebarWin()
SW_DLLPUBLIC bool HasActiveSidebarWin() const
void AddRule(SwUndoArg eWhat, const OUString &rWith)
OUString Apply(const OUString &rStr) const
const OUString & GetSymbolFont() const
const SwViewOption * GetViewOptions() const
const SfxItemPool & GetAttrPool() const
SwWrtShell & GetWrtShell() const
SwPostItMgr * GetPostItMgr()
void ExecNumberingOutline(SfxItemPool &)
virtual void ShowCursor(bool bOn=true) override
SwDocShell * GetDocShell()
void UpdateWordCount(SfxShell *, sal_uInt16)
void StateSearch(SfxItemSet &)
void ExecFormatFootnote()
void ExecSearch(SfxRequest &)
Used by the UI to modify the document model.
void GetDoStrings(DoType eDoType, SfxStringListItem &rStrLstItem) const
void Do(DoType eDoType, sal_uInt16 nCnt=1, sal_uInt16 nOffset=0)
OUString GetDoString(DoType eDoType) const
static TransferableDataHelper CreateFromSystemClipboard(vcl::Window *pWindow)
bool HasFormat(SotClipboardFormatId nFormat) const
const css::uno::Reference< css::datatransfer::XTransferable > & GetTransferable() const
SwPostItHelper::SwLayoutStatus GetLayoutStatus() const
bool IsReadOnlyOrProtected() const
OUString GetAuthor() const
tools::Long GetPostItTextHeight()
void ExecuteCommand(sal_uInt16 nSlot)
OutlinerView * GetOutlinerView()
void ResizeIfNecessary(tools::Long aOldHeight, tools::Long aNewHeight)
static const OUString & GetContextName(const Context eContext)
FontFamily GetFamilyType()
const OUString & GetStyleName() const
const OUString & GetFamilyName() const
rtl_TextEncoding GetCharSet() const
weld::Window * GetFrameWeld() const
#define FN_DELETE_NOTE_AUTHOR
#define FN_SET_SUPER_SCRIPT
#define FN_HIDE_NOTE_AUTHOR
#define FN_GROW_FONT_SIZE
#define FN_SHRINK_FONT_SIZE
#define FN_FORMAT_FOOTNOTE_DLG
#define FN_HIDE_ALL_NOTES
#define FN_DELETE_ALL_NOTES
#define FN_NUMBERING_OUTLINE_DLG
#define FN_DELETE_COMMENT
#define FN_WORDCOUNT_DIALOG
#define FN_SET_SUB_SCRIPT
#define FN_DELETE_COMMENT_THREAD
#define FN_RESOLVE_NOTE_THREAD
#define FN_FORMAT_ALL_NOTES
constexpr TypedWhichId< SvxContourItem > EE_CHAR_OUTLINE(EE_CHAR_START+8)
constexpr TypedWhichId< SvxKerningItem > EE_CHAR_KERNING(EE_CHAR_START+12)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
constexpr TypedWhichId< SvxFieldItem > EE_FEATURE_FIELD(EE_FEATURE_NOTCONV+1)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+16)
constexpr TypedWhichId< SvxAutoKernItem > EE_CHAR_PAIRKERNING(EE_CHAR_START+11)
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
constexpr TypedWhichId< SvxULSpaceItem > EE_PARA_ULSPACE(EE_PARA_START+14)
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
constexpr TypedWhichId< SvxLRSpaceItem > EE_PARA_LRSPACE(EE_PARA_START+13)
constexpr sal_uInt16 EE_ITEMS_END(EE_FEATURE_END)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
constexpr TypedWhichId< SvxLineSpacingItem > EE_PARA_SBL(EE_PARA_START+15)
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
constexpr TypedWhichId< SvxFrameDirectionItem > EE_PARA_WRITINGDIR(EE_PARA_START+0)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_BKGCOLOR(EE_CHAR_START+32)
constexpr TypedWhichId< SvxCharScaleWidthItem > EE_CHAR_FONTWIDTH(EE_CHAR_START+3)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr sal_uInt16 EE_ITEMS_START(OWN_ATTR_VALUE_END+1)
constexpr TypedWhichId< SvxWordLineModeItem > EE_CHAR_WLM(EE_CHAR_START+13)
constexpr TypedWhichId< SvxCharReliefItem > EE_CHAR_RELIEF(EE_CHAR_START+26)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr TypedWhichId< SvxHyphenZoneItem > RES_PARATR_HYPHENZONE(69)
constexpr TypedWhichId< SvxOrphansItem > RES_PARATR_ORPHANS(66)
constexpr TypedWhichId< SvxWidowsItem > RES_PARATR_WIDOWS(67)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
constexpr TypedWhichId< SvxKerningItem > RES_CHRATR_KERNING(9)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
constexpr TypedWhichId< SvxFormatSplitItem > RES_PARATR_SPLIT(65)
sal_uInt16 GetWhichOfScript(sal_uInt16 nWhich, sal_uInt16 nScript)
LanguageType GetAppLanguage()
#define LANGUAGE_CHINESE_TRADITIONAL
#define LANGUAGE_CHINESE_SIMPLIFIED
Sequence< sal_Int8 > aSeq
#define LINE_SPACE_DEFAULT_HEIGHT
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
sal_Int16 GetI18NScriptTypeOfLanguage(LanguageType nLang)
void GetLanguageStatus(OutlinerView *pOLV, SfxItemSet &rSet)
bool SetLanguageStatus(OutlinerView *pOLV, SfxRequest &rReq, SwView const &rView, SwWrtShell &rSh)
LanguageType GetLanguage(SfxItemSet const &aSet, sal_uInt16 nLangWhichId)
OString stripEnd(const OString &rIn, char c)
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
#define SFX_OBJECTBAR_OBJECT
void ReplaceTextWithSynonym(EditView &rEditView, const OUString &rSynonmText)
bool GetStatusValueForThesaurusFromContext(OUString &rStatusVal, LanguageType &rLang, const EditView &rEditView)
bool IsInvalidItem(const SfxPoolItem *pItem)
#define SFX_IMPL_INTERFACE(Class, SuperClass)
static LanguageType nLang
Reference< XFrame > xFrame
OUString SwResId(TranslateId aId)
uno::Reference< linguistic2::XThesaurus > GetThesaurus()
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)