20 #include <config_features.h>
65 #include <fontcfg.hxx>
78 #include <strings.hrc>
89 #include <com/sun/star/gallery/GalleryItemType.hpp>
95 #include <osl/diagnose.h>
118 #define ShellClass_SwBaseShell
120 #include <swslots.hxx>
122 #include <AccessibilityCheck.hxx>
149 GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
150 GetStaticInterface()->RegisterChildWindow(SvxContourDlgChildWindow::GetChildWindowId());
151 GetStaticInterface()->RegisterChildWindow(DevelopmentToolChildWindow::GetChildWindowId());
158 void* pEditObj = GraphicType::NONE != nGrfType && GraphicType::Default != nGrfType
160 std::unique_ptr<TargetList> pList(
new TargetList);
167 aGrf, rURL.
GetMap(), pList.get(), pEditObj );
174 bool bRet = GraphicType::NONE != nGrfType && GraphicType::Default != nGrfType;
184 pDlg->
Update(aGraf, !aGrfName.isEmpty(),
226 OSL_FAIL(
"wrong Dispatcher");
242 bool bIgnore =
false;
296 RndStdIds nAnchorType = RndStdIds::FLY_AT_PARA;
300 bool bIgnoreComments =
false;
303 bIgnoreComments = pIgnoreComments->
GetValue();
308 pView->AttrChangedNotify(
nullptr);
315 case SID_CLIPBOARD_FORMAT_ITEMS:
319 if( pArgs && SfxItemState::SET == pArgs->
GetItemState( nId,
false, &pFormat ) )
332 static_cast<SotClipboardFormatId>(static_cast<const SfxUInt32Item*>(pFormat)->
GetValue()) );
339 pView->AttrChangedNotify(
nullptr);
345 case SID_PASTE_UNFORMATTED:
360 uno::Reference< frame::XDispatchRecorder > xRecorder =
363 SfxRequest aReq( pViewFrame, SID_CLIPBOARD_FORMAT_ITEMS );
364 aReq.
AppendItem(
SfxUInt32Item( SID_CLIPBOARD_FORMAT_ITEMS, static_cast<sal_uInt32>(SotClipboardFormatId::STRING) ) );
371 pView->AttrChangedNotify(
nullptr);
378 case SID_PASTE_SPECIAL:
380 std::shared_ptr<TransferableDataHelper> aDataHelper =
383 if( aDataHelper->GetXTransferable().is()
398 pDlg->StartExecuteAsync([aDataHelper, pDlg, &rSh,
this](sal_Int32 nResult){
407 if( nFormatId != SotClipboardFormatId::NONE )
413 uno::Reference< frame::XDispatchRecorder > xRecorder =
416 SfxRequest aReq( pViewFrame, SID_CLIPBOARD_FORMAT_ITEMS );
424 pView->AttrChangedNotify(
nullptr);
437 OSL_FAIL(
"wrong Dispatcher");
485 if( !
GetView().IsPasteAllowed() )
491 case SID_PASTE_SPECIAL:
492 if( !
GetView().IsPasteSpecialAllowed()
499 case SID_PASTE_UNFORMATTED:
500 if( !
GetView().IsPasteSpecialAllowed() )
506 case SID_CLIPBOARD_FORMAT_ITEMS:
514 rSet.
Put( aFormatItem );
532 if( pArgs && SfxItemState::SET == pArgs->
GetItemState( nId,
false, &pItem ))
533 nCnt = static_cast<const SfxUInt16Item*>(pItem)->GetValue();
537 bool bRepair =
false;
538 if (pArgs && pArgs->
GetItemState(SID_REPAIRPACKAGE,
false, &pItem) == SfxItemState::SET)
539 bRepair = static_cast<const SfxBoolItem*>(pItem)->GetValue();
561 rShell.UnlockPaint();
572 rShell.UnlockPaint();
580 OSL_FAIL(
"wrong Dispatcher");
616 rSet.
Put(
SfxUInt32Item(nWhich, static_cast<sal_uInt32>(SID_REPAIRPACKAGE)) );
632 rSet.
Put(
SfxInt32Item(nWhich, static_cast<sal_uInt32>(SID_REPAIRPACKAGE)) );
651 case SID_GETUNDOSTRINGS:
662 case SID_GETREDOSTRINGS:
686 sal_uInt16 nSlot = rReq.
GetSlot();
692 auto pDoc = comphelper::getUnoTunnelImplementation<SwXTextDocument>(xModel);
693 pDoc->NotifyRefreshListeners();
701 rSh.SwViewShell::UpdateFields(
true);
783 case FN_START_DOC_DIRECT:
784 case FN_END_DOC_DIRECT:
792 nSlot == FN_START_DOC_DIRECT ?
806 GetView().AttrChangedNotify(
nullptr);
810 case SID_GALLERY_FORMATS:
812 const SvxGalleryItem* pGalleryItem = SfxItemSet::GetItem<SvxGalleryItem>(pArgs, SID_GALLERY_FORMATS,
false);
820 nGalleryItemType == css::gallery::GalleryItemType::GRAPHIC )
824 OUString aGrfName, aFltName;
828 rSh.
ReRead( aGrfName, aFltName, &aGrf );
830 rSh.
Insert( aGrfName, aFltName, aGrf );
835 nGalleryItemType == css::gallery::GalleryItemType::MEDIA )
839 SID_INSERT_AVMEDIA, SfxCallMode::SYNCHRON,
858 nCount = static_cast<const SfxUInt16Item &>(pArgs->
Get(nSlot)).
GetValue();
860 nCount = pArgs->
Get(SID_ATTR_COLUMNS).GetValue();
863 aFormatCol.
Init(nCount ? nCount : 1, nGutterWidth,
USHRT_MAX);
867 rFormat.SetFormatAttr(aFormatCol);
880 bool bToTable =
false;
886 std::unique_ptr<SwTableAutoFormatTable> pAutoFormatTable;
887 bool bDeleteFormat =
true;
888 if(pArgs && SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_1,
true, &pItem))
893 if(!sDelim.isEmpty())
896 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_2,
true, &pItem))
901 pAutoFormatTable->Load();
903 for( sal_uInt16
i = 0,
nCount = pAutoFormatTable->size();
i <
nCount;
i++ )
906 if( pFormat->
GetName() == sAutoFormat )
909 bDeleteFormat =
false;
915 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_3,
true, &pItem) &&
919 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_4,
true, &pItem))
921 static_cast<sal_uInt16>(static_cast< const SfxInt16Item* >(pItem)->GetValue());
923 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_5,
true, &pItem) &&
927 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_6,
true, &pItem) &&
935 if(
RET_OK == pDlg->Execute() )
937 pDlg->GetValues( cDelim, aInsTableOpts, pTAFormat );
946 bool bInserted =
false;
969 bInserted = rSh.
TextToTable( aInsTableOpts, cDelim, pTAFormat );
980 case SID_STYLE_WATERCAN:
981 case SID_STYLE_UPDATE_BY_EXAMPLE:
982 case SID_STYLE_NEW_BY_EXAMPLE:
983 case SID_STYLE_APPLY:
992 if ( SID_STYLE_WATERCAN == nSlot )
1007 case SID_CLASSIFICATION_APPLY:
1012 case SID_CLASSIFICATION_DIALOG:
1017 case SID_PARAGRAPH_SIGN_CLASSIFY_DLG:
1032 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1077 case SID_CONTOUR_DLG:
1079 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1093 case SID_CONTOUR_EXEC:
1106 if ( !aSur.IsContour() )
1109 if ( aSur.GetSurround() == css::text::WrapTextMode_NONE )
1110 aSur.SetSurround( css::text::WrapTextMode_PARALLEL );
1137 ? RndStdIds::FLY_AT_PAGE
1139 ? RndStdIds::FLY_AT_PARA
1141 ? RndStdIds::FLY_AT_FLY
1143 ? RndStdIds::FLY_AS_CHAR
1144 : RndStdIds::FLY_AT_CHAR;
1156 const uno::Reference < embed::XEmbeddedObject > xObj( rSh.
GetOleRef() );
1157 const bool bDoMathBaselineAlignment = xObj.is() &&
SotExchange::IsMath( xObj->getClassID() )
1159 if (bDoMathBaselineAlignment)
1173 css::text::WrapTextMode eSurround = rSurround.
GetSurround();
1177 case RndStdIds::FLY_AT_FLY:
1178 case RndStdIds::FLY_AT_PAGE:
1180 if(eSurround != css::text::WrapTextMode_THROUGH)
1190 case RndStdIds::FLY_AT_PARA:
1192 if (eSurround != css::text::WrapTextMode_LEFT && eSurround != css::text::WrapTextMode_RIGHT)
1195 if( eVOrient != text::VertOrientation::TOP)
1198 if (eHOrient !=
text::HoriOrientation::NONE && eHOrient != text::HoriOrientation::LEFT && eHOrient != text::HoriOrientation::RIGHT)
1202 case RndStdIds::FLY_AT_CHAR:
1204 if(eSurround != css::text::WrapTextMode_THROUGH)
1207 if( eVOrient != text::VertOrientation::TOP)
1210 if (eHOrient !=
text::HoriOrientation::NONE && eHOrient != text::HoriOrientation::LEFT && eHOrient != text::HoriOrientation::RIGHT)
1253 if (pArgs && pArgs->
GetItemState(nSlot,
true, &pItem) == SfxItemState::SET)
1255 if (
const SfxBoolItem* pBoolItem = dynamic_cast<const SfxBoolItem*>(pItem))
1257 bool bDesignMode = pBoolItem->GetValue();
1260 OSL_ENSURE(
GetView().GetFormShell() !=
nullptr,
"form shell?" );
1279 if(!bMore || !pArgs)
1289 case SID_ATTR_BRUSH:
1290 case SID_ATTR_BORDER_SHADOW:
1320 OSL_FAIL(
"not implemented");
1324 case SID_ATTR_BORDER_OUTER:
1347 OSL_FAIL(
"wrong Dispatcher");
1357 if (
CNT_GRF != rSh.SwEditShell::GetCntType())
1360 if (GraphicType::NONE == nGrfType || aGrfUpdateSlots.empty())
1365 for(
const auto nSlot : aGrfUpdateSlots )
1367 bool bSetState =
false;
1368 bool bState =
false;
1374 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1380 if( pDlg && ( SID_IMAP_EXEC == nSlot ||
1381 ( SID_IMAP == nSlot && !bProtect)) &&
1385 if( !bProtect && SID_IMAP == nSlot )
1388 bState =
nullptr != pDlg;
1393 case SID_CONTOUR_DLG:
1396 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1406 bState =
nullptr != pDlg;
1422 case SID_GRFFILTER_INVERT:
1423 case SID_GRFFILTER_SMOOTH:
1424 case SID_GRFFILTER_SHARPEN:
1425 case SID_GRFFILTER_REMOVENOISE:
1426 case SID_GRFFILTER_SOBEL:
1427 case SID_GRFFILTER_MOSAIC:
1428 case SID_GRFFILTER_EMBOSS:
1429 case SID_GRFFILTER_POSTER:
1430 case SID_GRFFILTER_POPART:
1431 case SID_GRFFILTER_SEPIA:
1432 case SID_GRFFILTER_SOLARIZE:
1433 bSetState = bState = GraphicType::Bitmap == nGrfType;
1441 pGetStateSet->Put( aBool );
1446 aGrfUpdateSlots.clear();
1460 case SID_GALLERY_FORMATS:
1466 case SID_GALLERY_ENABLE_ADDCOPY:
1553 const sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1556 const bool bIsGraphicSelection =
1574 ( bIsGraphicSelection &&
1582 if ( bHas && bFrameSel )
1592 bool bDisable =
false;
1595 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1624 case SID_CONTOUR_DLG:
1633 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1638 bool bDisable =
false;
1655 else if( bHas && bOk )
1661 if ( nSel & SelectionType::Graphic )
1674 case SID_CONTOUR_EXEC:
1676 bool bDisable =
false;
1680 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1681 if( !bDisable &&
GetView().GetViewFrame()->HasChildWindow( nId ))
1691 case SID_ANCHOR_MENU:
1711 (eSet == RndStdIds::FLY_AT_PAGE))
1713 (eSet == RndStdIds::FLY_AT_PARA))
1715 (eSet == RndStdIds::FLY_AT_FLY))
1717 (eSet == RndStdIds::FLY_AT_CHAR))
1719 (eSet == RndStdIds::FLY_AS_CHAR));
1723 else if(nWhich != SID_ANCHOR_MENU)
1765 nAnchorType = aSet.Get(
RES_ANCHOR).GetAnchorId();
1770 bool bOpaque = rOpaque.GetValue();
1771 css::text::WrapTextMode nSurround = rWrap.
GetSurround();
1775 (nAnchorType == RndStdIds::UNKNOWN) || (nAnchorType == RndStdIds::FLY_AS_CHAR);
1776 const bool bHtmlMode =
1783 ( (nAnchorType != RndStdIds::FLY_AT_PARA)
1784 && (nAnchorType != RndStdIds::FLY_AT_CHAR)
1785 && (nAnchorType != RndStdIds::FLY_AT_PAGE));
1786 bSet = nSurround == css::text::WrapTextMode_NONE;
1789 bDisable |= bHtmlMode;
1790 bSet = nSurround == css::text::WrapTextMode_PARALLEL;
1793 bDisable |= bHtmlMode;
1794 bSet = nSurround == css::text::WrapTextMode_DYNAMIC;
1797 bDisable |= (bHtmlMode ||
1798 ( (nAnchorType != RndStdIds::FLY_AT_PARA)
1799 && (nAnchorType != RndStdIds::FLY_AT_CHAR)
1800 && (nAnchorType != RndStdIds::FLY_AT_PAGE)));
1802 bSet = nSurround == css::text::WrapTextMode_THROUGH && rSh.
GetLayerId();
1804 bSet = nSurround == css::text::WrapTextMode_THROUGH && bOpaque;
1808 bDisable |= bHtmlMode;
1810 bSet = nSurround == css::text::WrapTextMode_THROUGH && !rSh.
GetLayerId();
1812 bSet = nSurround == css::text::WrapTextMode_THROUGH && !bOpaque;
1815 bDisable |= bHtmlMode;
1817 bDisable |= (nSurround == css::text::WrapTextMode_NONE || nSurround == css::text::WrapTextMode_THROUGH);
1839 bDisable |= (bHtmlMode ||
1840 (nAnchorType != RndStdIds::FLY_AT_PARA));
1844 bSet = nSurround == css::text::WrapTextMode_LEFT;
1847 bSet = nSurround == css::text::WrapTextMode_RIGHT;
1906 if ( bParentCntProt ||
1937 css::text::WrapTextMode nOldSurround(aWrap.GetSurround());
1938 css::text::WrapTextMode nSurround = css::text::WrapTextMode_PARALLEL;
1943 nSurround = css::text::WrapTextMode_NONE;
1944 if (aWrap.IsContour())
1945 aWrap.SetContour(
false);
1948 nSurround = css::text::WrapTextMode_DYNAMIC;
1951 aWrap.SetAnchorOnly(!aWrap.IsAnchorOnly());
1956 if ( nOldSurround != css::text::WrapTextMode_NONE )
1958 nSurround = nOldSurround;
1962 aWrap.SetContour(!aWrap.IsContour());
1964 if ( !aWrap.IsContour() ||
1965 ( nOldSurround != css::text::WrapTextMode_NONE &&
1966 nOldSurround != css::text::WrapTextMode_THROUGH ) )
1968 nSurround = nOldSurround;
1973 if (aWrap.IsContour())
1974 aWrap.SetContour(
false);
1977 nSurround = css::text::WrapTextMode_THROUGH;
1981 nSurround = css::text::WrapTextMode_LEFT;
1985 nSurround = css::text::WrapTextMode_RIGHT;
1991 aWrap.SetSurround(nSurround);
1996 if (bObj && nOldSurround != nSurround &&
1997 (nOldSurround == css::text::WrapTextMode_NONE || nOldSurround == css::text::WrapTextMode_THROUGH))
1999 aWrap.SetContour(
true);
2013 bOpaque = !aOpaque.GetValue();
2047 static sal_uInt16 aInval[] =
2049 SID_ATTR_POSITION, SID_ATTR_SIZE, 0
2058 pGetStateSet(nullptr)
2084 std::unique_ptr<SvxScriptSetItem> pSSetItem;
2085 sal_uInt16 nSlot = rReq.
GetSlot();
2087 sal_uInt16 nWhich = rPool.
GetWhich( nSlot );
2088 SvtScriptType nScripts = SvtScriptType::LATIN | SvtScriptType::ASIAN | SvtScriptType::COMPLEX;
2095 case SID_ATTR_CHAR_FONT:
2108 case SID_ATTR_CHAR_POSTURE:
2109 case SID_ATTR_CHAR_WEIGHT:
2112 pSSetItem->PutItemForScriptType( nScripts, pArgs->
Get( nWhich ));
2113 pArgs = &pSSetItem->GetItemSet();
2116 case SID_ATTR_CHAR_FONTHEIGHT:
2121 pSSetItem->PutItemForScriptType( nScripts, pArgs->
Get( nWhich ));
2122 pArgs = &pSSetItem->GetItemSet();
2130 sal_uInt32 nHeight =
static_cast< const SvxFontHeightItem&
>(pArgs->
Get( nWhich )).GetHeight();
2138 sal_Int32 nWesternSize =
2141 sal_Int32 nCJKSize =
2144 sal_Int32 nCTLSize =
2150 case SvtScriptType::LATIN:
2151 nCJKSize = nHeight * nCJKSize / nWesternSize;
2152 nCTLSize = nHeight * nCTLSize / nWesternSize;
2153 nWesternSize =
static_cast<sal_Int32
>(nHeight);
2155 case SvtScriptType::ASIAN:
2156 nCTLSize = nHeight* nCTLSize / nCJKSize;
2157 nWesternSize = nHeight * nWesternSize / nCJKSize;
2158 nCJKSize =
static_cast<sal_Int32
>(nHeight);
2160 case SvtScriptType::COMPLEX:
2161 nCJKSize = nHeight * nCJKSize / nCTLSize;
2162 nWesternSize = nHeight * nWesternSize / nCTLSize;
2163 nCTLSize =
static_cast<sal_Int32
>(nHeight);
2170 pArgs = &aHeightSet;
2211 std::unique_ptr<SfxItemSet> pFntCoreSet;
2247 aSetItem.GetItemSet().Put( *pFntCoreSet,
false );
2248 const SfxPoolItem* pI = aSetItem.GetItemOfScript( nScriptType );
2259 if (
const SvxFontItem* pFontItem = dynamic_cast<const SvxFontItem*>(pI))
2263 aFont.
SetFamily(pFontItem->GetFamily());
2264 aFont.
SetPitch(pFontItem->GetPitch());
2272 InputContextFlags::ExtText ) );
2294 std::unique_ptr<SvxBrushItem> aBrushItem(std::make_unique<SvxBrushItem>(
RES_BACKGROUND));
2296 if( nWhich == SID_TABLE_CELL_BACKGROUND_COLOR )
2305 aCoreSet.SetParent(&
GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet());
2323 case SID_BACKGROUND_COLOR:
2324 case SID_TABLE_CELL_BACKGROUND_COLOR:
2326 SvxColorItem aColorItem(aBrushItem->GetColor(), nWhich);
2327 rSet.
Put(aColorItem);
2330 case SID_ATTR_BRUSH:
2337 rSet.
Put(*aBrushItem);
2351 sal_uInt16 nSlot(rReq.
GetSlot());
2353 if (!pArgs && nSlot != SID_BACKGROUND_COLOR && nSlot != SID_TABLE_CELL_BACKGROUND_COLOR)
2358 std::unique_ptr<SvxBrushItem> aBrushItem(std::make_unique<SvxBrushItem>(
RES_BACKGROUND));
2360 if ( nSlot == SID_TABLE_CELL_BACKGROUND_COLOR )
2369 aCoreSet.SetParent(&
GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet());
2385 case SID_BACKGROUND_COLOR:
2386 case SID_TABLE_CELL_BACKGROUND_COLOR:
2389 bool bIsTransparent =
false;
2393 sal_uInt16 nSlotId = (nSlot == SID_BACKGROUND_COLOR) ? SID_BACKGROUND_COLOR : SID_TABLE_CELL_BACKGROUND_COLOR;
2394 if (pArgs && SfxItemState::SET == pArgs->GetItemState(SID_ATTR_COLOR_STR,
false, &pColorStringItem))
2397 if (sColor ==
"transparent")
2399 bIsTransparent =
true;
2405 aBrushItem->SetColor(aColor);
2417 aBrushItem->SetColor(rNewColor);
2422 bIsTransparent =
true;
2433 case SID_ATTR_BRUSH:
2436 assert(pArgs &&
"only SID_BACKGROUND_COLOR can have !pArgs, checked at entry");
2437 aBrushItem.reset(static_cast<SvxBrushItem*>(pArgs->Get(
GetPool().
GetWhich(nSlot)).Clone()));
2443 OSL_FAIL(
"unknown message in ExecuteAttr!" );
2448 if ( nSlot == SID_TABLE_CELL_BACKGROUND_COLOR )
2457 aCoreSet.SetParent(&
GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet());
2496 bool bPrepare =
true;
2502 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER>{} );
2504 aCoreSet.Put( aBoxInfo );
2506 rSet.
Put( aCoreSet );
2532 sal_uInt16 nSlot = rReq.
GetSlot();
2545 aContext.maEndDialogFn = [](sal_Int32){};
2565 sPageId =
"columns";
2586 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER>{} );
2595 pDlg.disposeAndReset(pFact->
CreateSwBorderDlg(pMDI, aSet, SwBorderModes::TABLE));
2596 if ( pDlg->Execute() ==
RET_OK )
2599 pOutSet = pDlg->GetOutputItemSet();
2609 pDlg.disposeAndReset(pFact->
CreateSwBorderDlg(pMDI, aSet, SwBorderModes::FRAME));
2610 if ( pDlg->Execute() ==
RET_OK )
2612 aMgr.
SetAttrSet( *pDlg->GetOutputItemSet() );
2614 pOutSet = pDlg->GetOutputItemSet();
2624 pDlg.disposeAndReset(pFact->
CreateSwBorderDlg(pMDI, aSet, SwBorderModes::PARA));
2625 if ( pDlg->Execute() ==
RET_OK )
2628 pOutSet = pDlg->GetOutputItemSet();
2633 rReq.
Done(*pOutSet);
2651 std::unique_ptr<SvxBrushItem> aBrush;
2654 aSet.Put( *aBrush );
2655 if ( pDlg->Execute() ==
RET_OK )
2659 pOutSet = pDlg->GetOutputItemSet();
2668 if ( pDlg->Execute() ==
RET_OK )
2670 rSh.
SetFlyFrameAttr(const_cast<SfxItemSet &>(*pDlg->GetOutputItemSet()) );
2671 pOutSet = pDlg->GetOutputItemSet();
2680 if ( pDlg->Execute() ==
RET_OK )
2683 pOutSet = pDlg->GetOutputItemSet();
2688 rReq.
Done(*pOutSet);
2693 case SID_ACCESSIBILITY_CHECK:
2701 default:OSL_FAIL(
"wrong Dispatcher (basesh.cxx)");
2733 const OUString& aTableName,
2737 const OUString& aAutoName,
2738 const std::unique_ptr<SwTableAutoFormat>& pTAFormat)
2746 rSh.
InsertTable( aInsTableOpts, nRows, nCols, pTAFormat.get() );
2749 if( !aTableName.isEmpty() && !rSh.
GetTableStyle( aTableName ) )
2752 if( pTAFormat !=
nullptr && !aAutoName.isEmpty()
2779 bool bCallEndUndo =
false;
2788 bCallEndUndo =
true;
2790 bool bInserted = rSh.
TextToTable( aInsTableOpts,
'\t' );
2798 sal_uInt16 nColsIn = 0;
2799 sal_uInt16 nRowsIn = 0;
2801 OUString aTableNameIn;
2802 OUString aAutoNameIn;
2803 std::unique_ptr<SwTableAutoFormat> pTAFormatIn;
2805 if( pArgs && pArgs->
Count() >= 2 )
2816 nColsIn = pCols->GetValue();
2818 nRowsIn = pRows->GetValue();
2821 aAutoNameIn = pAuto->GetValue();
2822 if ( !aAutoNameIn.isEmpty() )
2826 for (
size_t n=0;
n<aTableTable.
size();
n++ )
2828 if ( aTableTable[
n].
GetName() == aAutoNameIn )
2846 if( !nColsIn || !nRowsIn )
2849 std::shared_ptr<AbstractInsTableDlg> pAbstractDialog(pFact->
CreateInsTableDlg(rTempView));
2850 std::shared_ptr<weld::DialogController> pDialogController(pAbstractDialog->getDialogController());
2853 [pAbstractDialog, &rSh, &rTempView, aTableNameIn, nRowsIn, nColsIn, aInsTableOptsIn, aAutoNameIn] (sal_Int32 nResult) {
2856 sal_uInt16 nCols = nColsIn;
2857 sal_uInt16 nRows = nRowsIn;
2859 OUString aTableName = aTableNameIn;
2860 OUString aAutoName = aAutoNameIn;
2861 std::unique_ptr<SwTableAutoFormat> pTAFormat;
2863 pAbstractDialog->GetValues( aTableName, nRows, nCols, aInsTableOpts, aAutoName, pTAFormat );
2865 if( nCols && nRows )
2867 InsertTableImpl( rSh, rTempView, aTableName, nRows, nCols, aInsTableOpts, aAutoName, pTAFormat );
2878 if ( !aAutoNameIn.isEmpty() )
2885 InsertTableImpl( rSh, rTempView, aTableNameIn, nRowsIn, nColsIn, aInsTableOptsIn, aAutoNameIn, pTAFormatIn );
2887 bCallEndUndo =
true;
2902 case SID_GALLERY_BG_BRUSH:
2906 std::vector<OUString> &rLst = aLst.
GetList();
2911 rLst.push_back(
SwResId( STR_SWBG_PAGE ) );
2919 rLst.push_back(
SwResId( STR_SWBG_PARAGRAPH ) );
2925 rLst.push_back(
SwResId( STR_SWBG_TABLE ) );
2930 rLst.push_back(
SwResId( STR_SWBG_TABLE_ROW ) );
2934 rLst.push_back(
SwResId( STR_SWBG_TABLE_CELL) );
2941 rLst.push_back(
SwResId( STR_SWBG_FRAME ) );
2946 rLst.push_back(
SwResId( STR_SWBG_GRAPHIC ) );
2951 rLst.push_back(
SwResId( STR_SWBG_OLE ) );
2957 rLst.push_back(
SwResId( STR_SWBG_HEADER ) );
2962 rLst.push_back(
SwResId( STR_SWBG_FOOTER ) );
2980 sal_uInt16 nSlot = rReq.
GetSlot();
2983 case SID_GALLERY_BG_BRUSH:
2994 if ( !pPos || !pBrush )
3013 aCoreSet.Put( aBrush );
3026 aDesc.GetMaster().SetFormatAttr( aHead );
3032 aDesc.GetMaster().SetFormatAttr( aFoot );
3045 sal_uInt16 nSlot = rReq.
GetSlot();
3048 #if HAVE_FEATURE_DBCONNECTIVITY
3058 OSL_FAIL(
"wrong dispatcher");
3064 auto vCursors = std::make_shared<std::vector<std::unique_ptr<SwPaM>>>();
3065 vCursors->emplace_back(std::make_unique<SwPaM>(rOrig,
nullptr));
3068 if (&rCursor != &rOrig)
3069 vCursors->emplace_back(std::make_unique<SwPaM>(rCursor, vCursors->front().get()));
void SetFamily(FontFamily)
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
std::shared_ptr< SfxDialogController > & GetController()
#define FN_SET_TRACKED_DELETIONS_IN_MARGIN
SwFieldType * GetFieldType(SwFieldIds nResId, size_t nField=0) const
SfxViewFrame * GetViewFrame() const
#define LINK(Instance, Class, Member)
SFX_IMPL_SUPERCLASS_INTERFACE(DrawDocShell, SfxObjectShell)
Instances of SwFields and those derived from it occur 0 to n times.
#define FN_PAGE_STYLE_SET_COLS
#define FN_FRAME_WRAP_RIGHT
#define FN_UPDATE_ALL_LINKS
bool IsInClickToEdit() const
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(101)
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 * >())
const css::uno::Reference< css::graphic::XGraphic > & GetGraphic() const
SwTextFormatColl * GetCurTextFormatColl() const
Get the named paragraph format of the current selection.
void SetGrfArrivedLnk(const Link< SwCursorShell &, void > &rLnk)
Represents the style of a paragraph.
bool IsInVerticalText(const Point *pPt=nullptr) const
static sal_uInt8 nGraphicPos
bool IsPasteSpecialAllowed()
void GetTextCtrlState(SfxItemSet &rSet)
void ChgAnchor(RndStdIds eAnchorId, bool bSameOnly=false, bool bPosCorr=true)
frmatr.hxx.
SfxChildWindow * GetChildWindow(sal_uInt16)
void ExecTextCtrl(SfxRequest &rReq)
void GetGalleryState(SfxItemSet &)
void AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId=nullptr)
const Link< SwCursorShell &, void > & GetGrfArrivedLnk() const
OUString GetRepeatString() const
#define FN_FRAME_TO_ANCHOR
virtual std::shared_ptr< AbstractInsTableDlg > CreateInsTableDlg(SwView &rView)=0
virtual void DoRepair(bool bRepair)=0
Enable repair mode.
void SaveTableBoxContent(const SwPosition *pPos=nullptr)
bool isCHRATR(const sal_uInt16 nWhich)
static std::shared_ptr< std::vector< std::unique_ptr< SwPaM > > > CopyPaMRing(SwPaM &rOrig)
void ReRead(const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic=nullptr)
Re-read if graphic is not ok. Current graphic is replaced by the new one.
void SetState(const SfxItemSet &rSet)
static ShellResource * GetShellRes()
bool GotoPrevTable(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosTable, bool bInReadOnly)
static void GetDefaultTargetList(TargetList &)
bool SttEndDoc(bool bStt)
SwDocShell * GetDocShell()
virtual VclPtr< VclAbstractDialog > CreateSwChangeDBDlg(SwView &rVw)=0
sfx2::LinkManager & GetLinkManager()
void ClearTableBoxContent()
void SetRowBackground(const SvxBrushItem &rNew)
std::unique_ptr< SvxBrushItem > getSvxBrushItemFromSourceSet(const SfxItemSet &rSourceSet, sal_uInt16 nBackgroundID, bool bSearchInParents, bool bXMLImportHack)
bool IsPasteSpreadsheet(bool bHasOwnTableCopied)
void ExecuteGallery(SfxRequest &)
void * GetIMapInventor() const
Unique identification of object (for ImageMapDlg).
bool MoveFieldType(const SwFieldType *pFieldType, const bool bNext, const SwFieldIds nResType=SwFieldIds::Unknown, const bool bAddSetExpressionFieldsToInputFields=true)
SwWrtShell * GetShellPtr()
SfxDispatcher * GetDispatcher()
void SelectionToHeaven()
Above document.
static SvxAbstractDialogFactory * Create()
void SetWrapMode(sal_uInt16 nSlot)
static bool IsPaste(const SwWrtShell &, const TransferableDataHelper &)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
virtual short run() override
bool GetLastUndoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
#define FN_TOOL_ANCHOR_PAGE
Base class of all fields.
static sal_uInt8 nTableCellPos
void SetAttrSet(const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
SwInsertTableFlags mnInsMode
static bool PasteFormat(SwWrtShell &rSh, TransferableDataHelper &rData, SotClipboardFormatId nFormat)
sal_uInt16 GetValue() const
virtual void restoreAnnotationMarks(bool bDelete=true)=0
void InvalidateItem(sal_uInt16 nWhich)
virtual VclPtr< SfxAbstractDialog > CreateSwBackgroundDialog(weld::Window *pParent, const SfxItemSet &rSet)=0
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
void UpdateAllCharts()
update all charts for which any table exists
void GetTextFontCtrlState(SfxItemSet &rSet)
void UpdateInputFields(SwInputFieldList *pLst=nullptr)
bool TextToTable(const SwInsertTableOptions &rInsTableOpts, sal_Unicode cCh, const SwTableAutoFormat *pTAFormat=nullptr)
void GetDoStrings(DoType eDoType, SfxStringListItem &rStrLstItem) const
void ExecClpbrd(SfxRequest &)
#define FN_XFORMS_DESIGN_MODE
bool IsSelFullPara() const
void Done(bool bRemove=false)
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(99)
void SetCharSet(rtl_TextEncoding)
IDocumentMarkAccess * getIDocumentMarkAccess()
css::uno::Reference< css::frame::XModel > GetModel() const
static SfxItemSet makeItemSetFromFormatAnchor(SfxItemPool &rPool, const SwFormatAnchor &rAnchor)
void AutoUpdatePara(SwTextFormatColl *pColl, const SfxItemSet &rStyleSet, SwPaM *pPaM=nullptr)
const SfxItemSet * GetArgs() const
void Invalidate(sal_uInt16 nId)
virtual void PreGetFormat(const TransferableDataHelper &aHelper)=0
sal_Int32 GetFontHeight(sal_uInt8 nFont, sal_uInt8 nScriptType, LanguageType eLang)
static sal_uInt8 nTableRowPos
#define FN_PASTE_NESTED_TABLE
void FlushInBuffer()
Character buffer is inserted into the document.
sal_uInt16 mnRowsToRepeat
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
void SetUseInputLanguage(bool bNew)
#i42732# display status of font size/name depending on either the input language or the selection pos...
#define FN_FRAME_WRAP_IDEAL
void ExecBckCol(SfxRequest &rReq)
void StateStyle(SfxItemSet &)
const OUString & GetName() const
SwWrtShell & GetWrtShell() const
const SwSection * GetCurrSection() const
#define FONT_GROUP_DEFAULT
void SetTabBackground(const SvxBrushItem &rNew)
static sal_uInt8 nPagePos
#define FN_PAGE_STYLE_SET_PAPER_BIN
Used by the UI to modify the document model.
void ToggleChildWindow(sal_uInt16)
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(102)
SfxItemSet * pGetStateSet
#define FN_SET_TRACKED_INSERTIONS_IN_MARGIN
const SwTable & InsertTable(const SwInsertTableOptions &rInsTableOpts, sal_uInt16 nRows, sal_uInt16 nCols, const SwTableAutoFormat *pTAFormat=nullptr)
const SwView & GetView() const
const Graphic & GetGraphic() const
const SwFrameFormat * IsFlyInFly()
Is selected frame within another frame?
virtual bool GetFirstRedoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const =0
Get Id and comment of first Redo action.
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(103)
#define FN_EDIT_CURRENT_REGION
SvxIMapDlg * GetIMapDlg()
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
void ExecStyleSheet(SfxRequest &)
#define FN_PAGE_STYLE_SET_PAPER_SIZE
const tools::PolyPolygon * GetGraphicPolygon() const
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
void ExecDlg(SfxRequest &)
#define FN_PAGE_STYLE_SET_NUMBER_FORMAT
SwField * GetCurField(const bool bIncludeInputFieldAtStart=false) const
#define FN_FRAME_WRAP_LEFT
#define FN_TOOL_ANCHOR_CHAR
static TransferableDataHelper CreateFromSystemClipboard(vcl::Window *pWindow)
Point GetAnchorObjDiff() const
Methods for status line.
#define FN_GOTO_NEXT_MARK
const SfxItemSet & GetAttrSet() const
static bool HasMacroRecorder(SfxViewFrame const *pFrame)
const SwTable & GetTable() const
static bool Paste(SwWrtShell &, TransferableDataHelper &, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA, bool bIgnoreComments=false, PasteTableType ePasteTable=PasteTableType::PASTE_DEFAULT)
void GetGrfNms(OUString *pGrfName, OUString *pFltName, const SwFlyFrameFormat *=nullptr) const
Returns the name and the filter name of a graphic if the pointer is on a graphic. ...
void ExecField(SfxRequest const &rReq)
tools::PolyPolygon GetPolyPolygon()
#define FN_FRAME_WRAPTHRU_TOGGLE
static SvtScriptType GetScriptTypeOfLanguage(LanguageType nLang)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
SwFrameFormat * GetTableStyle(std::u16string_view rFormatName)
const OUString & GetName() const
bool IsGraphicChanged() const
void DelNumRules()
Delete, split enumeration list.
OUString GetDoString(DoType eDoType) const
static sal_uInt16 IsMath(const SvGlobalName &rName)
void Insert(SwField const &, SwPaM *pAnnotationRange=nullptr)
void GetBorderState(SfxItemSet &rSet)
#define FN_PAGE_STYLE_SET_LR_MARGIN
void SetShowChangesInMargin(bool b)
static sal_uInt8 nTablePos
css::uno::Reference< css::embed::XEmbeddedObject > GetOleRef() const
get reference to OLE object (if there is one) for selected FlyFrame
void Execute(SfxRequest &)
const void * GetEditingObject() const
void SetPitch(FontPitch ePitch)
SfxItemPool & GetPool() const
IMPL_LINK_NOARG(SwBaseShell, GraphicArrivedHdl, SwCursorShell &, void)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
void SelectionToHell()
Below document.
static sal_uInt8 nFramePos
const ImageMap & GetImageMap() const
bool GetFlyFrameAttr(SfxItemSet &rSet) const
void EndCursorMove(const bool bIdleEnd=false)
#define FN_TABLE_PASTE_ROW_BEFORE
virtual VclPtr< AbstractSwConvertTableDlg > CreateSwConvertTableDlg(SwView &rView, bool bToTable)=0
static bool lcl_UpdateContourDlg(SwWrtShell &rSh, SelectionType nSel)
PaM is Point and Mark: a selection of the document model.
const SfxItemPool & GetAttrPool() const
void SetTabBorders(const SfxItemSet &rSet)
void SetBoxBackground(const SvxBrushItem &rNew)
virtual void AppendUndo(std::unique_ptr< SwUndo > pUndo)=0
Add new Undo action.
static void EndUndo(SwWrtShell &rSh)
virtual FmFormShell * GetFormShell() override
const SwTableNode * IsCursorInTable() const
void SetFormView(bool bSet)
SvtScriptType GetScriptType() const
returns the script type of the selection
bool HasSelection() const
void SetFamilyName(const OUString &rFamilyName)
void SetInputContext(const InputContext &rInputContext)
void AlignFormulaToBaseline(const css::uno::Reference< css::embed::XEmbeddedObject > &xObj)
for starmath formulas anchored 'as char' it aligns it baseline to baseline changing the previous vert...
bool IsInsRegionAvailable() const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
#define FN_CHANGE_DBFIELD
static void InsertTableImpl(SwWrtShell &rSh, SwView &rTempView, const OUString &aTableName, sal_uInt16 nRows, sal_uInt16 nCols, SwInsertTableOptions aInsTableOpts, const OUString &aAutoName, const std::unique_ptr< SwTableAutoFormat > &pTAFormat)
const SvBaseLinks & GetLinks() const
GraphicType GetGraphicType() const
bool GetObjAttr(SfxItemSet &rSet) const
Attention: Ambiguities if multiple selections.
GraphicType GetType() const
bool IsAnySectionInDoc() const
bool EndAllTableBoxEdit()
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
#define FN_FORMAT_PAGE_SETTING_DLG
css::uno::Reference< css::datatransfer::XTransferable > GetXTransferable() const
void SetOrientation(Degree10 nLineOrientation)
constexpr TypedWhichId< SwFormatURL > RES_URL(111)
sal_uInt16 GetPhyPageNum() const
Phy: real page count.
static void PrePasteSpecial(const SwWrtShell &rSh, TransferableDataHelper &, const VclPtr< SfxAbstractPasteDialog > &pDlg)
PrePasteSpecial Prepares the given dialog without actually running it.
SfxBindings & GetBindings()
void SetAttrItem(const SfxPoolItem &, SetAttrMode nFlags=SetAttrMode::DEFAULT, const bool bParagraphSetting=false)
void Reformat()
Invalidates complete Layout (ApplyViewOption).
const OUString & GetValue() const
const SwPageDesc & GetPageDesc(size_t i) const
bool SetFlyFrameAttr(SfxItemSet &rSet)
FrameTypeFlags
values can be combined via logical or
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
const T * GetArg(sal_uInt16 nSlotId) const
void SetAttrSet(const SfxItemSet &rSet)
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
void SetPool(SfxItemPool *pNewPool)
virtual SfxStyleSheetBasePool * GetStyleSheetPool() override
For Style PI.
static void UpdateIMapDlg(const Graphic &rGraphic, const ImageMap *pImageMap, const TargetList *pTargetList, void *pEditingObj)
void AddRule(SwUndoArg eWhat, const OUString &rWith)
#define FN_WRAP_ANCHOR_ONLY
#define LANGUAGE_DONTKNOW
void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem &rBrush, SfxItemSet &rToSet)
bool IsUseInputLanguage() const
void Execute(SfxRequest &)
Dispatcher.
#define FN_FORMAT_TITLEPAGE_DLG
static SwAbstractDialogFactory * Create()
static void SetFrameMode(FlyMode eMode, SwWrtShell *pShell)
virtual comphelper::EmbeddedObjectContainer & getEmbeddedObjectContainer() const override
static void StateDisableItems(SfxItemSet &)
static sal_uInt8 nParagraphPos
virtual ~SwBaseShell() override
ring_container GetRingContainer()
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
static void lcl_UpdateIMapDlg(SwWrtShell &rSh)
OUString SwResId(const char *pId)
void ExecUndo(SfxRequest &)
void SetName(const OUString &rName)
Graphic GetIMapGraphic() const
Remove default parameter, because method always called this default value.
#define FN_TOOL_ANCHOR_FRAME
bool HasReadonlySel() const
bool StartExecuteAsync(const std::function< void(sal_Int32)> &rEndDialogFn)
RndStdIds GetAnchorId() const
Anchor type of selected object, RndStdIds::UNKNOWN if ambiguous or in case of frame selection...
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
const Graphic * GetGraphic(bool bWait=true) const
SfxItemPool * GetPool() const
std::vector< OUString > & GetList()
FlyProtectFlags IsSelObjProtected(FlyProtectFlags eType) const
Which Protection is set at selected object?
static sal_uInt8 nFooterPos
SwDocShell * GetDocShell()
SwFrameFormat * GetTableFormat()
const void * GetEditingObject() const
#define FN_FORMAT_BORDER_DLG
#define FN_FRAME_WRAPTHRU_TRANSP
SwFrameFormat * GetSelectedFrameFormat() const
If frame then frame style, else 0.
void SetShowChangesInMargin2(bool b)
static void FillClipFormatItem(const SwWrtShell &rSh, const TransferableDataHelper &rData, SvxClipboardFormatItem &rToFill)
void StateClpbrd(SfxItemSet &)
void GetBckColState(SfxItemSet &rSet)
void SetReturnValue(const SfxPoolItem &)
weld::Window * GetFrameWeld() const
void InsertTable(SfxRequest &_rRequest)
SdrLayerID GetLayerId() const
1 Heaven, 0 Hell, SDRLAYER_NOTFOUND Ambiguous.
#define FN_TOOL_ANCHOR_AT_CHAR
bool GotoObj(bool bNext, GotoObjFlags eType=GotoObjFlags::DrawAny)
IDocumentUndoRedo const & GetIDocumentUndoRedo() const
Provides access to the document undo/redo interface.
Class for automated call of Start- and EndCursorMove().
SwFrameFormat & GetMaster()
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
#define FN_FRAME_WRAPTHRU
static FlyMode eFrameMode
void GetState(SfxItemSet &)
sal_uInt16 GetSlot() const
SwBaseShell(SwView &rShell)
void Broadcast(const SfxHint &rHint)
bool HasChildWindow(sal_uInt16)
void SetGraphicPolygon(const tools::PolyPolygon *pPoly)
void SetStyleName(const OUString &rStyleName)
const css::uno::Reference< css::frame::XDispatchRecorder > & GetRecorder() const
const OUString & GetURL() const
SwWrtShell * GetWrtShellPtr() const
#define FN_FORMAT_BACKGROUND_DLG
void DisableItem(sal_uInt16 nWhich)
constexpr sal_uInt16 RES_CHRATR_BEGIN(HINT_BEGIN)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(105)
void setUserAllowsLinkUpdate(bool bNew)
weld::Window * GetFrameWeld() const
#define FN_FORMAT_PAGE_COLUMN_DLG
bool Left(sal_uInt16 nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
SwMoveFnCollection const & fnTableStart
SwUndoId GetRepeatInfo(OUString *const o_pStr) const
#define FN_CONVERT_TEXT_TABLE
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
virtual bool GetLastUndoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const =0
Get Id and comment of last Undo action.
void UpdateAllLinks(bool bAskUpdate, bool bUpdateGrfLinks, weld::Window *pParentWin)
const SwViewOption * GetViewOptions() const
bool MoveTable(SwWhichTable, SwMoveFnCollection const &)
void Do(DoType eDoType, sal_uInt16 nCnt=1)
bool IsCursorPtAtEnd() const
bool IsTextToTableAvailable() const
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
void SetTableStyleName(const OUString &rName)
Set the new table style name for this table.
bool TableToText(sal_Unicode cCh)
IDocumentSettingAccess const & getIDocumentSettingAccess() const
static sal_uInt8 nHeaderPos
void ChgPageDesc(size_t i, const SwPageDesc &)
#define FN_TABLE_PASTE_COL_BEFORE
size_t IsObjSelected() const
bool IsNoNum(bool bChkStart=true) const
virtual bool DoesRepair() const =0
Is repair mode active?
void StateUndo(SfxItemSet &)
void ClickToField(const SwField &rField, bool bExecHyperlinks)
void AutoUpdateFrame(SwFrameFormat *pFormat, const SfxItemSet &rStyleSet)
#define FN_FORMAT_PAGE_DLG
#define FN_CONVERT_TEXT_TO_TABLE
void InvalidateRulerPos()
#define FN_TOOL_ANCHOR_PARAGRAPH
#define FN_PAGE_STYLE_SET_UL_MARGIN
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
bool GetFirstRedoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
constexpr sal_uInt16 RES_CHRATR_END(46)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(106)
void SetObjAttr(const SfxItemSet &rSet)
virtual void CalcLayout() override
To enable set up of StartActions and EndActions.
void GetTabBorders(SfxItemSet &rSet) const
void SetVertical(bool bVertical)
virtual VclPtr< VclAbstractDialog > CreateTitlePageDlg(weld::Window *pParent)=0
#define FN_UPDATE_INPUTFIELDS
void UpdateDocStat()
Document - Statistics.
#define FN_SET_TRACKED_CHANGES_IN_TEXT
#define FN_SHIFT_BACKSPACE
const sal_uInt16 CRSR_SKIP_CHARS
void InvalidateAll(bool bWithMsg)
void AppendItem(const SfxPoolItem &)
bool IsTableComplexForChart()
bool AddGrfUpdateSlot(sal_uInt16 nSlot)
#define FN_GOTO_PREV_MARK
void Update(const Graphic &rGraphic, bool bGraphicLinked, const tools::PolyPolygon *pPolyPoly, void *pEditingObj)
Reference< XModel > xModel
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLBACKGROUND)
virtual SotClipboardFormatId GetFormatOnly()=0
void EnterSelFrameMode(const Point *pStartDrag=nullptr)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
void GotoFlyAnchor()
jump from the frame to the anchor
#define FN_CONVERT_TABLE_TO_TEXT
SectionType GetType() const
void FormatPage(const OUString &rPage, const OString &rPageId, SwWrtShell &rActShell, SfxRequest *pRequest=nullptr)
Show page style format dialog.
static bool PasteUnformatted(SwWrtShell &rSh, TransferableDataHelper &)
const SwInsertTableOptions & GetInsTableFlags(bool bHTML) const
LanguageType GetInputLanguage() const
SelectionType GetSelectionType() const
virtual void ApplyViewOptions(const SwViewOption &rOpt) override
Apply ViewOptions with Start-/EndAction.
void StartAllAction()
For all views of this document.
bool IsLinkedGrfSwapOut() const
bool GetTableCopied() const
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CTL_FONTSIZE(28)
ShellMode GetShellMode() const
size_t GetCurPageDesc(const bool bCalcFrame=true) const
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
void StateStyleSheet(SfxItemSet &, SwWrtShell *pSh=nullptr)
::std::vector< OUString > TargetList
FrameTypeFlags GetFrameType(const Point *pPt, bool bStopAtFly) const
For return values see above FrameType.
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
bool IsFrameSelected() const
bool GetBoxBackground(std::unique_ptr< SvxBrushItem > &rToFill) const
FALSE ambiguous.
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
virtual SfxObjectShell * GetObjectShell()
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(107)
bool IsViewLocked() const
#define FN_FRAME_WRAP_CONTOUR
const Color & GetValue() const
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(104)
bool IsSelFrameMode() const
void SetValue(const Color &rNewColor)
void EndAction(const bool bIdleEnd=false)
virtual VclPtr< SfxAbstractDialog > CreateSwBorderDlg(weld::Window *pParent, SfxItemSet &rSet, SwBorderModes nType)=0
void ExecDelete(SfxRequest &)
bool CursorInsideInputField() const