20#include <config_features.h>
21#include <config_fuzzers.h>
87#include <ThemeColorChanger.hxx>
92#include <GraphicSizeCheck.hxx>
96#include <com/sun/star/gallery/GalleryItemType.hpp>
97#include <com/sun/star/beans/PropertyValues.hpp>
106#include <LibreOfficeKit/LibreOfficeKitEnums.h>
107#include <osl/diagnose.h>
116#include <UndoManager.hxx>
137#define ShellClass_SwBaseShell
139#include <swslots.hxx>
141#include <AccessibilityCheck.hxx>
167 GetStaticInterface()->RegisterChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
168 GetStaticInterface()->RegisterChildWindow(SvxContourDlgChildWindow::GetChildWindowId());
169 GetStaticInterface()->RegisterChildWindow(DevelopmentToolChildWindow::GetChildWindowId());
176 void* pEditObj = GraphicType::NONE != nGrfType && GraphicType::Default != nGrfType
185 aGrf, rURL.
GetMap(), &aList, pEditObj );
192 bool bRet = GraphicType::NONE != nGrfType && GraphicType::Default != nGrfType;
202 pDlg->
Update(aGraf, !aGrfName.isEmpty(),
289 OSL_FAIL(
"wrong Dispatcher");
305 bool bIgnore =
false;
359 RndStdIds nAnchorType = RndStdIds::FLY_AT_PARA;
363 bool bIgnoreComments =
false;
366 bIgnoreComments = pIgnoreComments->
GetValue();
371 pView->AttrChangedNotify(
nullptr);
381 case SID_CLIPBOARD_FORMAT_ITEMS:
385 if( pArgs && SfxItemState::SET == pArgs->
GetItemState(
nId,
false, &pFormat ) )
405 pView->AttrChangedNotify(
nullptr);
414 case SID_PASTE_UNFORMATTED:
429 uno::Reference< frame::XDispatchRecorder > xRecorder =
432 SfxRequest aReq(rViewFrame, SID_CLIPBOARD_FORMAT_ITEMS);
433 aReq.
AppendItem(
SfxUInt32Item( SID_CLIPBOARD_FORMAT_ITEMS,
static_cast<sal_uInt32
>(SotClipboardFormatId::STRING) ) );
440 pView->AttrChangedNotify(
nullptr);
450 case SID_PASTE_SPECIAL:
452 std::shared_ptr<TransferableDataHelper> aDataHelper =
455 if( aDataHelper->GetXTransferable().is()
467 pDlg->PreGetFormat(*aDataHelper);
470 pDlg->StartExecuteAsync([aDataHelper, pDlg, &rSh,
this](sal_Int32 nResult){
479 if( nFormatId != SotClipboardFormatId::NONE )
485 uno::Reference< frame::XDispatchRecorder > xRecorder =
488 SfxRequest aReq(rViewFrame, SID_CLIPBOARD_FORMAT_ITEMS);
489 aReq.AppendItem( SfxUInt32Item( SID_CLIPBOARD_FORMAT_ITEMS, static_cast<sal_uInt32>(nFormatId) ) );
496 pView->AttrChangedNotify(
nullptr);
512 OSL_FAIL(
"wrong Dispatcher");
550 || !
GetView().IsPasteSpecialAllowed()
560 if( !
GetView().IsPasteAllowed() )
566 case SID_PASTE_SPECIAL:
567 if( !
GetView().IsPasteSpecialAllowed()
574 case SID_PASTE_UNFORMATTED:
575 if( !
GetView().IsPasteSpecialAllowed() )
581 case SID_CLIPBOARD_FORMAT_ITEMS:
609 if( pArgs && SfxItemState::SET == pArgs->
GetItemState(
nId,
false, &pItem ))
614 bool bRepair =
false;
616 if (pArgs && (pRepairItem = pArgs->
GetItemIfSet(SID_REPAIRPACKAGE,
false)))
623 bool bWasRepair = rUndoRedo.DoesRepair();
624 rUndoRedo.DoRepair(bRepair);
627 rUndoRedo.DoRepair(bWasRepair);
633 if (rUndoRedo.GetLastUndoInfo(
nullptr, &nUndoId, &rWrtShell.
GetView()))
638 sal_uInt16 nUndoOffset = 0;
645 sal_uInt16 nOffset = 0;
651 nUndoOffset += nOffset;
658 rShell.UnlockPaint();
664 rUndoRedo.ClearRedo();
669 if (rUndoRedo.GetFirstRedoInfo(
nullptr, &nUndoId, &rWrtShell.
GetView()))
675 rShell.UnlockPaint();
683 OSL_FAIL(
"wrong Dispatcher");
750 case SID_GETUNDOSTRINGS:
761 case SID_GETREDOSTRINGS:
783 if (!pTypeName || pTypeName->
GetValue() !=
"SetRef")
794 const OUString& rNamePrefix = pNamePrefix->
GetValue();
801 uno::Sequence<beans::PropertyValues> aFields;
808 std::vector<const SwFormatRefMark*> aRefMarks;
815 std::sort(aRefMarks.begin(), aRefMarks.end(),
817 const SwTextRefMark* pTextRefMark1 = pMark1->GetTextRefMark();
818 const SwTextRefMark* pTextRefMark2 = pMark2->GetTextRefMark();
819 SwPosition aPos1(pTextRefMark1->GetTextNode(), pTextRefMark1->GetStart());
820 SwPosition aPos2(pTextRefMark2->GetTextNode(), pTextRefMark2->GetStart());
821 return aPos1 < aPos2;
824 sal_uInt16 nFieldIndex = 0;
825 for (
auto& pIntermediateRefMark : aRefMarks)
828 if (!pRefMark->GetRefName().startsWith(rNamePrefix))
833 if (nFieldIndex >= aFields.getLength())
838 auto aName =
aMap[
"Name"].get<OUString>();
839 pRefMark->GetRefName() =
aName;
841 OUString aContent =
aMap[
"Content"].get<OUString>();
842 auto pTextRefMark =
const_cast<SwTextRefMark*
>(pRefMark->GetTextRefMark());
856 if (!pTypeName || pTypeName->
GetValue() !=
"SetRef")
867 const OUString& rNamePrefix = pNamePrefix->
GetValue();
874 uno::Sequence<beans::PropertyValue> aField;
879 std::vector<SwTextAttr*> aAttrs
886 auto& rRefmark =
const_cast<SwFormatRefMark&
>(aAttrs[0]->GetRefMark());
887 if (!rRefmark.GetRefName().startsWith(rNamePrefix))
898 [&rWrtSh, &aRewriter]
905 auto aName =
aMap[
"Name"].get<OUString>();
906 rRefmark.GetRefName() =
aName;
908 OUString aContent =
aMap[
"Content"].get<OUString>();
909 auto pTextRefMark =
const_cast<SwTextRefMark*
>(rRefmark.GetTextRefMark());
923 sal_uInt16 nSlot = rReq.
GetSlot();
929 auto pDoc = comphelper::getFromUnoTunnel<SwXTextDocument>(
xModel);
930 pDoc->NotifyRefreshListeners();
936 if (UpdateFieldContents(rReq, rSh))
945 rSh.SwViewShell::UpdateFields(
true);
958 UpdateFieldContent(rReq, rSh);
1033 case FN_START_DOC_DIRECT:
1034 case FN_END_DOC_DIRECT:
1042 nSlot == FN_START_DOC_DIRECT ?
1056 GetView().AttrChangedNotify(
nullptr);
1060 case SID_GALLERY_FORMATS:
1062 const SvxGalleryItem* pGalleryItem = SfxItemSet::GetItem<SvxGalleryItem>(pArgs, SID_GALLERY_FORMATS,
false);
1063 if ( !pGalleryItem )
1070 nGalleryItemType == css::gallery::GalleryItemType::GRAPHIC )
1074 OUString aGrfName, aFltName;
1078 rSh.
ReRead( aGrfName, aFltName, &aGrf );
1085 nGalleryItemType == css::gallery::GalleryItemType::MEDIA )
1089 SID_INSERT_AVMEDIA, SfxCallMode::SYNCHRON,
1090 { &aMediaURLItem });
1110 nCount = pArgs->
Get(SID_ATTR_COLUMNS).GetValue();
1130 bool bToTable =
false;
1136 std::unique_ptr<SwTableAutoFormatTable> pAutoFormatTable;
1137 bool bDeleteFormat =
true;
1138 if(pArgs && SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_1,
true, &pItem))
1143 if(!sDelim.isEmpty())
1146 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_2,
true, &pItem))
1151 pAutoFormatTable->Load();
1153 for( sal_uInt16
i = 0,
nCount = pAutoFormatTable->size();
i <
nCount;
i++ )
1156 if( pFormat->
GetName() == sAutoFormat )
1158 pTAFormat = pFormat;
1159 bDeleteFormat =
false;
1165 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_3,
true, &pItem) &&
1169 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_4,
true, &pItem))
1173 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_5,
true, &pItem) &&
1177 if(SfxItemState::SET == pArgs->
GetItemState( FN_PARAM_6,
true, &pItem) &&
1185 if(
RET_OK == pDlg->Execute() )
1187 pDlg->GetValues(
cDelim, aInsTableOpts, pTAFormat );
1196 bool bInserted =
false;
1230 case SID_STYLE_WATERCAN:
1231 case SID_STYLE_UPDATE_BY_EXAMPLE:
1232 case SID_STYLE_NEW_BY_EXAMPLE:
1233 case SID_STYLE_APPLY:
1242 if ( SID_STYLE_WATERCAN == nSlot )
1257 case SID_CLASSIFICATION_APPLY:
1262 case SID_CLASSIFICATION_DIALOG:
1267 case SID_PARAGRAPH_SIGN_CLASSIFY_DLG:
1282 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1327 case SID_CONTOUR_DLG:
1329 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1343 case SID_CONTOUR_EXEC:
1359 if ( aSur.
GetSurround() == css::text::WrapTextMode_NONE )
1360 aSur.
SetSurround( css::text::WrapTextMode_PARALLEL );
1387 ? RndStdIds::FLY_AT_PAGE
1389 ? RndStdIds::FLY_AT_PARA
1391 ? RndStdIds::FLY_AT_FLY
1393 ? RndStdIds::FLY_AS_CHAR
1394 : RndStdIds::FLY_AT_CHAR;
1406 const uno::Reference < embed::XEmbeddedObject > xObj( rSh.
GetOleRef() );
1407 const bool bDoMathBaselineAlignment = xObj.is() &&
SotExchange::IsMath( xObj->getClassID() )
1409 if (bDoMathBaselineAlignment)
1423 css::text::WrapTextMode eSurround = rSurround.
GetSurround();
1427 case RndStdIds::FLY_AT_FLY:
1428 case RndStdIds::FLY_AT_PAGE:
1430 if(eSurround != css::text::WrapTextMode_THROUGH)
1440 case RndStdIds::FLY_AT_PARA:
1442 if (eSurround != css::text::WrapTextMode_LEFT && eSurround != css::text::WrapTextMode_RIGHT)
1445 if( eVOrient != text::VertOrientation::TOP)
1448 if (eHOrient !=
text::HoriOrientation::NONE && eHOrient != text::HoriOrientation::LEFT && eHOrient != text::HoriOrientation::RIGHT)
1452 case RndStdIds::FLY_AT_CHAR:
1454 if(eSurround != css::text::WrapTextMode_THROUGH)
1457 if( eVOrient != text::VertOrientation::TOP)
1460 if (eHOrient !=
text::HoriOrientation::NONE && eHOrient != text::HoriOrientation::LEFT && eHOrient != text::HoriOrientation::RIGHT)
1503 if (pArgs && pArgs->
GetItemState(nSlot,
true, &pItem) == SfxItemState::SET)
1507 bool bDesignMode = pBoolItem->GetValue();
1510 OSL_ENSURE(
GetView().GetFormShell() !=
nullptr,
"form shell?" );
1529 if(!bMore || !pArgs)
1539 case SID_ATTR_BRUSH:
1540 case SID_ATTR_BORDER_SHADOW:
1570 OSL_FAIL(
"not implemented");
1574 case SID_ATTR_BORDER_OUTER:
1597 OSL_FAIL(
"wrong Dispatcher");
1607 if (
CNT_GRF != rSh.SwEditShell::GetCntType())
1610 if (GraphicType::NONE == nGrfType || m_aGrfUpdateSlots.empty())
1615 for(
const auto nSlot : m_aGrfUpdateSlots )
1617 bool bSetState =
false;
1618 bool bState =
false;
1624 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1630 if( pDlg && ( SID_IMAP_EXEC == nSlot ||
1631 ( SID_IMAP == nSlot && !bProtect)) &&
1635 if( !bProtect && SID_IMAP == nSlot )
1638 bState =
nullptr != pDlg;
1643 case SID_CONTOUR_DLG:
1646 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1656 bState =
nullptr != pDlg;
1672 case SID_GRFFILTER_INVERT:
1673 case SID_GRFFILTER_SMOOTH:
1674 case SID_GRFFILTER_SHARPEN:
1675 case SID_GRFFILTER_REMOVENOISE:
1676 case SID_GRFFILTER_SOBEL:
1677 case SID_GRFFILTER_MOSAIC:
1678 case SID_GRFFILTER_EMBOSS:
1679 case SID_GRFFILTER_POSTER:
1680 case SID_GRFFILTER_POPART:
1681 case SID_GRFFILTER_SEPIA:
1682 case SID_GRFFILTER_SOLARIZE:
1683 bSetState = bState = GraphicType::Bitmap == nGrfType;
1690 if( m_pGetStateSet )
1691 m_pGetStateSet->Put( aBool );
1696 m_aGrfUpdateSlots.clear();
1710 case SID_GALLERY_FORMATS:
1716 case SID_GALLERY_ENABLE_ADDCOPY:
1802 const sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1805 const bool bIsGraphicSelection =
1823 ( bIsGraphicSelection &&
1831 if ( bHas && bFrameSel )
1841 bool bDisable =
false;
1844 sal_uInt16
nId = SvxIMapDlgChildWindow::GetChildWindowId();
1873 case SID_CONTOUR_DLG:
1882 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1887 bool bDisable =
false;
1904 else if( bHas && bOk )
1923 case SID_CONTOUR_EXEC:
1925 bool bDisable =
false;
1929 sal_uInt16
nId = SvxContourDlgChildWindow::GetChildWindowId();
1930 if( !bDisable &&
GetView().GetViewFrame().HasChildWindow(
nId ))
1940 case SID_ANCHOR_MENU:
1960 (eSet == RndStdIds::FLY_AT_PAGE))
1962 (eSet == RndStdIds::FLY_AT_PARA))
1964 (eSet == RndStdIds::FLY_AT_FLY))
1966 (eSet == RndStdIds::FLY_AT_CHAR))
1968 (eSet == RndStdIds::FLY_AS_CHAR));
1972 else if(nWhich != SID_ANCHOR_MENU)
2018 bool bOpaque = rOpaque.GetValue();
2019 css::text::WrapTextMode nSurround = rWrap.
GetSurround();
2023 (nAnchorType == RndStdIds::UNKNOWN) || (nAnchorType == RndStdIds::FLY_AS_CHAR);
2024 const bool bHtmlMode =
2031 ( (nAnchorType != RndStdIds::FLY_AT_PARA)
2032 && (nAnchorType != RndStdIds::FLY_AT_CHAR)
2033 && (nAnchorType != RndStdIds::FLY_AT_PAGE));
2034 bSet = nSurround == css::text::WrapTextMode_NONE;
2037 bDisable |= bHtmlMode;
2038 bSet = nSurround == css::text::WrapTextMode_PARALLEL;
2041 bDisable |= bHtmlMode;
2042 bSet = nSurround == css::text::WrapTextMode_DYNAMIC;
2045 bDisable |= (bHtmlMode ||
2046 ( (nAnchorType != RndStdIds::FLY_AT_PARA)
2047 && (nAnchorType != RndStdIds::FLY_AT_CHAR)
2048 && (nAnchorType != RndStdIds::FLY_AT_PAGE)));
2050 bSet = nSurround == css::text::WrapTextMode_THROUGH && rSh.
GetLayerId();
2052 bSet = nSurround == css::text::WrapTextMode_THROUGH && bOpaque;
2056 bDisable |= bHtmlMode;
2058 bSet = nSurround == css::text::WrapTextMode_THROUGH && !rSh.
GetLayerId();
2060 bSet = nSurround == css::text::WrapTextMode_THROUGH && !bOpaque;
2063 bDisable |= bHtmlMode;
2065 bDisable |= (nSurround == css::text::WrapTextMode_NONE || nSurround == css::text::WrapTextMode_THROUGH);
2087 bDisable |= (bHtmlMode ||
2088 (nAnchorType != RndStdIds::FLY_AT_PARA));
2092 bSet = nSurround == css::text::WrapTextMode_LEFT;
2095 bSet = nSurround == css::text::WrapTextMode_RIGHT;
2127 case SID_GRAPHIC_SIZE_CHECK:
2134 case SID_THEME_DIALOG:
2136 bool bDisable =
true;
2137 auto* pDocument = rSh.
GetDoc();
2141 SdrPage* pPage = pDocument->getIDocumentDrawModelAccess().GetDrawModel()->GetPage(0);
2180 if ( bParentCntProt ||
2211 css::text::WrapTextMode nOldSurround(aWrap.
GetSurround());
2212 css::text::WrapTextMode nSurround = css::text::WrapTextMode_PARALLEL;
2217 nSurround = css::text::WrapTextMode_NONE;
2222 nSurround = css::text::WrapTextMode_DYNAMIC;
2230 if ( nOldSurround != css::text::WrapTextMode_NONE )
2232 nSurround = nOldSurround;
2239 ( nOldSurround != css::text::WrapTextMode_NONE &&
2240 nOldSurround != css::text::WrapTextMode_THROUGH ) )
2242 nSurround = nOldSurround;
2251 nSurround = css::text::WrapTextMode_THROUGH;
2255 nSurround = css::text::WrapTextMode_LEFT;
2259 nSurround = css::text::WrapTextMode_RIGHT;
2270 if (bObj && nOldSurround != nSurround &&
2271 (nOldSurround == css::text::WrapTextMode_NONE || nOldSurround == css::text::WrapTextMode_THROUGH))
2287 bOpaque = !aOpaque.GetValue();
2321 static sal_uInt16 aInval[] =
2323 SID_ATTR_POSITION, SID_ATTR_SIZE, 0
2332 m_pGetStateSet(nullptr)
2354 const sal_uInt16 nSlot = rReq.
GetSlot();
2359 std::unique_ptr<SvxScriptSetItem> pSSetItem;
2361 sal_uInt16 nWhich = rPool.
GetWhich( nSlot );
2362 SvtScriptType nScripts = SvtScriptType::LATIN | SvtScriptType::ASIAN | SvtScriptType::COMPLEX;
2370 case SID_ATTR_CHAR_FONT:
2383 case SID_ATTR_CHAR_POSTURE:
2384 case SID_ATTR_CHAR_WEIGHT:
2387 pSSetItem->PutItemForScriptType( nScripts, pArgs->
Get( nWhich ));
2388 pArgs = &pSSetItem->GetItemSet();
2391 case SID_ATTR_CHAR_FONTHEIGHT:
2396 pSSetItem->PutItemForScriptType( nScripts, pArgs->
Get( nWhich ));
2397 pArgs = &pSSetItem->GetItemSet();
2405 sal_uInt32 nHeight =
static_cast< const SvxFontHeightItem&
>(pArgs->
Get( nWhich )).GetHeight();
2414 sal_Int32 nWesternSize =
2417 sal_Int32 nCJKSize =
2420 sal_Int32 nCTLSize =
2426 case SvtScriptType::LATIN:
2427 nCJKSize = nHeight * nCJKSize / nWesternSize;
2428 nCTLSize = nHeight * nCTLSize / nWesternSize;
2429 nWesternSize =
static_cast<sal_Int32
>(nHeight);
2431 case SvtScriptType::ASIAN:
2432 nCTLSize = nHeight* nCTLSize / nCJKSize;
2433 nWesternSize = nHeight * nWesternSize / nCJKSize;
2434 nCJKSize =
static_cast<sal_Int32
>(nHeight);
2436 case SvtScriptType::COMPLEX:
2437 nCJKSize = nHeight * nCJKSize / nCTLSize;
2438 nWesternSize = nHeight * nWesternSize / nCTLSize;
2439 nCTLSize =
static_cast<sal_Int32
>(nHeight);
2446 pArgs = &aHeightSet;
2474 if (nSlot == SID_ATTR_CHAR_KERNING)
2476 else if (nSlot == SID_ATTR_CHAR_COLOR)
2494 std::optional<SfxItemSet> pFntCoreSet;
2510 svl::Items<RES_CHRATR_BEGIN, RES_CHRATR_END-1> );
2530 aSetItem.GetItemSet().Put( *pFntCoreSet,
false );
2546 aFont.
SetFamily(pFontItem->GetFamily());
2547 aFont.
SetPitch(pFontItem->GetPitch());
2555 InputContextFlags::ExtText ) );
2577 std::unique_ptr<SvxBrushItem> aBrushItem(std::make_unique<SvxBrushItem>(
RES_BACKGROUND));
2579 if( nWhich == SID_TABLE_CELL_BACKGROUND_COLOR )
2588 aCoreSet.
SetParent(&
GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet());
2606 case SID_BACKGROUND_COLOR:
2607 case SID_TABLE_CELL_BACKGROUND_COLOR:
2609 SvxColorItem aColorItem(aBrushItem->GetColor(), aBrushItem->getComplexColor(), nWhich);
2613 case SID_ATTR_BRUSH:
2634 sal_uInt16 nSlot(rReq.
GetSlot());
2636 if (!pArgs && nSlot != SID_BACKGROUND_COLOR && nSlot != SID_TABLE_CELL_BACKGROUND_COLOR)
2641 std::unique_ptr<SvxBrushItem> aBrushItem(std::make_unique<SvxBrushItem>(
RES_BACKGROUND));
2643 if ( nSlot == SID_TABLE_CELL_BACKGROUND_COLOR )
2652 aCoreSet.
SetParent(&
GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet());
2668 case SID_BACKGROUND_COLOR:
2669 case SID_TABLE_CELL_BACKGROUND_COLOR:
2671 bool bIsTransparent =
false;
2675 sal_uInt16 nSlotId = (nSlot == SID_BACKGROUND_COLOR) ? SID_BACKGROUND_COLOR : SID_TABLE_CELL_BACKGROUND_COLOR;
2679 aBrushItem->SetColor(rNewColorItem.
GetValue());
2685 bIsTransparent =
true;
2696 case SID_ATTR_BRUSH:
2699 assert(pArgs &&
"only SID_BACKGROUND_COLOR can have !pArgs, checked at entry");
2706 OSL_FAIL(
"unknown message in ExecuteAttr!" );
2711 if ( nSlot == SID_TABLE_CELL_BACKGROUND_COLOR )
2720 aCoreSet.
SetParent(&
GetView().GetDocShell()->GetDoc()->GetDfltFrameFormat()->GetAttrSet());
2759 bool bPrepare =
true;
2764 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER> aCoreSet(
GetPool() );
2766 aCoreSet.Put( aBoxInfo );
2794 sal_uInt16 nSlot = rReq.
GetSlot();
2808 pDlg->StartExecuteAsync(aContext);
2827 sPageId =
"columns";
2847 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER> aSet( rSh.
GetAttrPool() );
2857 if ( pDlg->Execute() ==
RET_OK )
2860 pOutSet = pDlg->GetOutputItemSet();
2871 if ( pDlg->Execute() ==
RET_OK )
2873 aMgr.
SetAttrSet( *pDlg->GetOutputItemSet() );
2875 pOutSet = pDlg->GetOutputItemSet();
2886 if ( pDlg->Execute() ==
RET_OK )
2889 pOutSet = pDlg->GetOutputItemSet();
2894 rReq.
Done(*pOutSet);
2912 std::unique_ptr<SvxBrushItem> aBrush(std::make_unique<SvxBrushItem>(
RES_BACKGROUND));
2915 aSet.Put( std::move(aBrush) );
2916 if ( pDlg->Execute() ==
RET_OK )
2920 pOutSet = pDlg->GetOutputItemSet();
2929 if ( pDlg->Execute() ==
RET_OK )
2932 pOutSet = pDlg->GetOutputItemSet();
2941 if ( pDlg->Execute() ==
RET_OK )
2944 pOutSet = pDlg->GetOutputItemSet();
2949 rReq.
Done(*pOutSet);
2955 case SID_GRAPHIC_SIZE_CHECK:
2963 case SID_THEME_DIALOG:
2965 auto* pDocument = rSh.
GetDoc();
2969 SdrPage* pPage = pDocument->getIDocumentDrawModelAccess().GetDrawModel()->GetPage(0);
2974 auto pDialog = std::make_shared<svx::ThemeDialog>(pMDI, pTheme.get());
2979 auto pColorSet = pDialog->getCurrentColorSet();
2982 pChanger->apply(pColorSet);
2995 default:OSL_FAIL(
"wrong Dispatcher (basesh.cxx)");
3027 const OUString& aTableName,
3031 const OUString& aAutoName,
3032 const std::unique_ptr<SwTableAutoFormat>& pTAFormat)
3040 rSh.
InsertTable( aInsTableOpts, nRows, nCols, pTAFormat.get() );
3043 if( !aTableName.isEmpty() && !rSh.
GetTableStyle( aTableName ) )
3046 if( pTAFormat !=
nullptr && !aAutoName.isEmpty()
3073 bool bCallEndUndo =
false;
3082 bCallEndUndo =
true;
3084 bool bInserted = rSh.
TextToTable( aInsTableOpts,
'\t' );
3092 sal_uInt16 nColsIn = 0;
3093 sal_uInt16 nRowsIn = 0;
3095 OUString aTableNameIn;
3096 OUString aAutoNameIn;
3097 std::unique_ptr<SwTableAutoFormat> pTAFormatIn;
3099 if( pArgs && pArgs->
Count() >= 2 )
3108 aTableNameIn =
pName->GetValue();
3110 nColsIn = pCols->GetValue();
3112 nRowsIn = pRows->GetValue();
3115 aAutoNameIn = pAuto->GetValue();
3116 if ( !aAutoNameIn.isEmpty() )
3120 for (
size_t n=0;
n<aTableTable.
size();
n++ )
3122 if ( aTableTable[
n].
GetName() == aAutoNameIn )
3140 if( !nColsIn || !nRowsIn )
3143 std::shared_ptr<AbstractInsTableDlg> pAbstractDialog(pFact->
CreateInsTableDlg(rTempView));
3144 std::shared_ptr<weld::DialogController> pDialogController(pAbstractDialog->getDialogController());
3147 [pAbstractDialog, &rSh, &rTempView, aTableNameIn, nRowsIn, nColsIn, aInsTableOptsIn, aAutoNameIn] (sal_Int32 nResult) {
3150 sal_uInt16 nCols = nColsIn;
3151 sal_uInt16 nRows = nRowsIn;
3153 OUString aTableName = aTableNameIn;
3154 OUString aAutoName = aAutoNameIn;
3155 std::unique_ptr<SwTableAutoFormat> pTAFormat;
3157 pAbstractDialog->GetValues( aTableName, nRows, nCols, aInsTableOpts, aAutoName, pTAFormat );
3159 if( nCols && nRows )
3161 InsertTableImpl( rSh, rTempView, aTableName, nRows, nCols, aInsTableOpts, aAutoName, pTAFormat );
3172 if ( !aAutoNameIn.isEmpty() )
3179 InsertTableImpl( rSh, rTempView, aTableNameIn, nRowsIn, nColsIn, aInsTableOptsIn, aAutoNameIn, pTAFormatIn );
3181 bCallEndUndo =
true;
3196 case SID_GALLERY_BG_BRUSH:
3200 std::vector<OUString> &rLst = aLst.
GetList();
3205 rLst.push_back(
SwResId( STR_SWBG_PAGE ) );
3213 rLst.push_back(
SwResId( STR_SWBG_PARAGRAPH ) );
3219 rLst.push_back(
SwResId( STR_SWBG_TABLE ) );
3224 rLst.push_back(
SwResId( STR_SWBG_TABLE_ROW ) );
3228 rLst.push_back(
SwResId( STR_SWBG_TABLE_CELL) );
3235 rLst.push_back(
SwResId( STR_SWBG_FRAME ) );
3240 rLst.push_back(
SwResId( STR_SWBG_GRAPHIC ) );
3245 rLst.push_back(
SwResId( STR_SWBG_OLE ) );
3251 rLst.push_back(
SwResId( STR_SWBG_HEADER ) );
3256 rLst.push_back(
SwResId( STR_SWBG_FOOTER ) );
3274 sal_uInt16 nSlot = rReq.
GetSlot();
3277 case SID_GALLERY_BG_BRUSH:
3288 if ( !pPos || !pBrush )
3307 aCoreSet.
Put( aBrush );
3339 sal_uInt16 nSlot = rReq.
GetSlot();
3342#if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
3352 OSL_FAIL(
"wrong dispatcher");
3358 auto vCursors = std::make_shared<std::vector<std::unique_ptr<SwPaM>>>();
3359 vCursors->emplace_back(std::make_unique<SwPaM>(rOrig,
nullptr));
3362 if (&rCursor != &rOrig)
3363 vCursors->emplace_back(std::make_unique<SwPaM>(rCursor, vCursors->front().get()));
@ MATH_BASELINE_ALIGNMENT
static bool lcl_UpdateContourDlg(SwWrtShell &rSh, SelectionType nSel)
static sal_uInt8 nTableCellPos
static sal_uInt8 nFramePos
static sal_uInt8 nTablePos
static sal_uInt8 nParagraphPos
static sal_uInt8 nGraphicPos
static sal_uInt8 nTableRowPos
static sal_uInt8 nPagePos
static sal_uInt8 nFooterPos
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)
static void lcl_UpdateIMapDlg(SwWrtShell &rSh)
static void EndUndo(SwWrtShell &rSh)
static sal_uInt8 nHeaderPos
IMPL_LINK_NOARG(SwBaseShell, GraphicArrivedHdl, SwCursorShell &, void)
sal_uInt16 GetValue() const
const OUString & GetValue() const
GraphicType GetType() const
virtual void restoreAnnotationMarks(bool bDelete=true)=0
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
virtual sal_Int32 getImagePreferredDPI()=0
void disposeAndReset(reference_type *pBody)
std::shared_ptr< model::Theme > const & GetTheme() const
SdrPageProperties & getSdrPageProperties()
void SetState(const SfxItemSet &rSet)
void Invalidate(sal_uInt16 nId)
const css::uno::Reference< css::frame::XDispatchRecorder > & GetRecorder() const
void InvalidateAll(bool bWithMsg)
std::shared_ptr< SfxDialogController > & GetController()
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
static void GetDefaultTargetList(TargetList &)
sal_Int16 GetValue() const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
SfxItemPool * GetPool() const
void SetParent(const SfxItemSet *pNew)
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)
static void notifyAllViews(int nType, const OString &rPayload)
css::uno::Reference< css::frame::XModel3 > GetModel() const
virtual comphelper::EmbeddedObjectContainer & getEmbeddedObjectContainer() const override
std::unique_ptr< SfxPoolItem > CloneSetWhich(sal_uInt16 nNewWhich) const
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
static bool HasMacroRecorder(const SfxViewFrame &rFrame)
void Done(bool bRemove=false)
SfxItemPool & GetPool() const
const OUString & GetName() const
virtual SfxObjectShell * GetObjectShell()
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
void SetPool(SfxItemPool *pNewPool)
void SetName(const OUString &rName)
std::vector< OUString > & GetList()
virtual ViewShellId GetViewShellId() const
const css::uno::Any & GetValue() const
void ToggleChildWindow(sal_uInt16)
SfxBindings & GetBindings()
bool HasChildWindow(sal_uInt16)
SfxDispatcher * GetDispatcher()
SfxChildWindow * GetChildWindow(sal_uInt16)
weld::Window * GetFrameWeld() const
ViewShellId GetViewShellId() const override
SfxViewFrame & GetViewFrame() const
static sal_uInt16 IsMath(const SvGlobalName &rName)
static SvxAbstractDialogFactory * Create()
const Color & GetValue() const
void setComplexColor(model::ComplexColor const &rComplexColor)
model::ComplexColor const & getComplexColor() const
void Update(const Graphic &rGraphic, bool bGraphicLinked, const tools::PolyPolygon *pPolyPoly, void *pEditingObj)
bool IsGraphicChanged() const
const void * GetEditingObject() const
const Graphic & GetGraphic() const
tools::PolyPolygon GetPolyPolygon()
const OUString & GetURL() const
const css::uno::Reference< css::graphic::XGraphic > & GetGraphic() const
static void UpdateIMapDlg(const Graphic &rGraphic, const ImageMap *pImageMap, const TargetList *pTargetList, void *pEditingObj)
const void * GetEditingObject() const
const ImageMap & GetImageMap() const
const SfxPoolItem * GetItemOfScript(SvtScriptType nScript) const
virtual VclPtr< VclAbstractDialog > CreateTitlePageDlg(weld::Window *pParent)=0
virtual VclPtr< SfxAbstractDialog > CreateSwBackgroundDialog(weld::Window *pParent, const SfxItemSet &rSet)=0
static SwAbstractDialogFactory * Create()
virtual VclPtr< AbstractSwConvertTableDlg > CreateSwConvertTableDlg(SwView &rView, bool bToTable)=0
virtual VclPtr< SfxAbstractDialog > CreateSwBorderDlg(weld::Window *pParent, SfxItemSet &rSet, SwBorderModes nType)=0
virtual std::shared_ptr< AbstractInsTableDlg > CreateInsTableDlg(SwView &rView)=0
virtual VclPtr< VclAbstractDialog > CreateSwChangeDBDlg(SwView &rVw)=0
static std::shared_ptr< std::vector< std::unique_ptr< SwPaM > > > CopyPaMRing(SwPaM &rOrig)
void StateUndo(SfxItemSet &)
void GetBckColState(SfxItemSet &rSet)
void GetState(SfxItemSet &)
void GetTextFontCtrlState(SfxItemSet &rSet)
void SetWrapMode(sal_uInt16 nSlot)
void GetGalleryState(SfxItemSet &)
void ExecDelete(SfxRequest &)
SfxItemSet * m_pGetStateSet
void ExecuteGallery(SfxRequest &)
bool AddGrfUpdateSlot(sal_uInt16 nSlot)
SwBaseShell(SwView &rShell)
void ExecUndo(SfxRequest &)
void ExecTextCtrl(SfxRequest &rReq)
void ExecField(SfxRequest const &rReq)
void ExecClpbrd(SfxRequest &)
void StateClpbrd(SfxItemSet &)
void Execute(SfxRequest &)
void InsertTable(SfxRequest &_rRequest)
void StateStyle(SfxItemSet &)
static void SetFrameMode(FlyMode eMode, SwWrtShell *pShell)
SwWrtShell * GetShellPtr()
static void StateDisableItems(SfxItemSet &)
void ExecBckCol(SfxRequest &rReq)
void GetTextCtrlState(SfxItemSet &rSet)
void GetBorderState(SfxItemSet &rSet)
static FlyMode s_eFrameMode
virtual ~SwBaseShell() override
void ExecDlg(SfxRequest &)
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
bool IsTableComplexForChart()
bool EndAllTableBoxEdit()
void ClearTableBoxContent()
const SwTableNode * IsCursorInTable() const
Check if Point of current cursor is placed within a table.
bool IsInVerticalText(const Point *pPt=nullptr) const
bool SttEndDoc(bool bStt)
bool MoveTable(SwWhichTable, SwMoveFnCollection const &)
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
void GotoFlyAnchor()
jump from the frame to the anchor
bool CursorInsideInputField() const
SwField * GetCurField(const bool bIncludeInputFieldAtStart=false) const
bool IsSelFullPara() const
void EndAction(const bool bIdleEnd=false)
const Link< SwCursorShell &, void > & GetGrfArrivedLnk() const
void SetGrfArrivedLnk(const Link< SwCursorShell &, void > &rLnk)
bool HasReadonlySel(bool isReplace=false) const
bool IsCursorPtAtEnd() const
bool MoveFieldType(const SwFieldType *pFieldType, const bool bNext, const SwFieldIds nResType=SwFieldIds::Unknown, const bool bAddSetExpressionFieldsToInputFields=true)
void EndCursorMove(const bool bIdleEnd=false)
void SaveTableBoxContent(const SwPosition *pPos=nullptr)
void StateStyleSheet(SfxItemSet &, SwWrtShell *pSh=nullptr)
void FormatPage(weld::Window *pDialogParent, const OUString &rPage, const OUString &rPageId, SwWrtShell &rActShell, SfxRequest *pRequest=nullptr)
Show page style format dialog.
void Execute(SfxRequest &)
Dispatcher.
void ExecStyleSheet(SfxRequest &)
sal_uInt16 GetRefMarks(std::vector< OUString > *=nullptr) const
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentSettingAccess const & getIDocumentSettingAccess() const
IDocumentMarkAccess * getIDocumentMarkAccess()
const SwFormatRefMark * GetRefMark(std::u16string_view rName) const
SwDocShell * GetDocShell()
::sw::UndoManager & GetUndoManager()
virtual void CalcLayout() override
To enable set up of StartActions and EndActions.
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
void StartAllAction()
For all views of this document.
bool IsTextToTableAvailable() const
bool IsNoNum(bool bChkStart=true) const
const SwTable & InsertTable(const SwInsertTableOptions &rInsTableOpts, sal_uInt16 nRows, sal_uInt16 nCols, const SwTableAutoFormat *pTAFormat=nullptr)
Inserts an nRows x nCols table to the document at the current position.
bool TextToTable(const SwInsertTableOptions &rInsTableOpts, sal_Unicode cCh, const SwTableAutoFormat *pTAFormat=nullptr)
GraphicType GetGraphicType() const
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.
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
void UpdateDocStat()
Document - Statistics.
void SetAttrItem(const SfxPoolItem &, SetAttrMode nFlags=SetAttrMode::DEFAULT, const bool bParagraphSetting=false)
void SetAttrSet(const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
SwFrameFormat * GetTableFormat()
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
Graphic GetIMapGraphic() const
Remove default parameter, because method always called this default value.
const SwSection * GetCurrSection() const
bool IsLinkedGrfSwapOut() const
SvtScriptType GetScriptType() const
returns the script type of the selection
bool IsAnySectionInDoc() const
bool IsInsRegionAvailable() const
void DelNumRules()
Delete, split enumeration list.
void SetGraphicPolygon(const tools::PolyPolygon *pPoly)
sfx2::LinkManager & GetLinkManager()
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
SwTextFormatColl * GetCurTextFormatColl() const
Get the named paragraph format of the current selection.
const Graphic * GetGraphic(bool bWait=true) const
void * GetIMapInventor() const
Unique identification of object (for ImageMapDlg).
const tools::PolyPolygon * GetGraphicPolygon() const
SwUndoId GetRepeatInfo(OUString *const o_pStr) const
bool TableToText(sal_Unicode cCh)
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.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
void FlushInBuffer()
Character buffer is inserted into the document.
void SetUseInputLanguage(bool bNew)
#i42732# display status of font size/name depending on either the input language or the selection pos...
bool IsUseInputLanguage() const
void SelectionToHell()
Below document.
bool SetFlyFrameAttr(SfxItemSet &rSet)
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...
FrameTypeFlags GetFrameType(const Point *pPt, bool bStopAtFly) const
For return values see above FrameType.
void SetObjAttr(const SfxItemSet &rSet)
Point GetAnchorObjDiff() const
Methods for status line.
FlyProtectFlags IsSelObjProtected(FlyProtectFlags eType) const
Which Protection is set at selected object?
void SetBoxBackground(const SvxBrushItem &rNew)
void ChgPageDesc(size_t i, const SwPageDesc &)
RndStdIds GetAnchorId() const
Anchor type of selected object, RndStdIds::UNKNOWN if ambiguous or in case of frame selection.
void SelectionToHeaven()
Above document.
bool IsFrameSelected() const
bool GotoObj(bool bNext, GotoObjFlags eType=GotoObjFlags::DrawAny)
void SetRowBackground(const SvxBrushItem &rNew)
css::uno::Reference< css::embed::XEmbeddedObject > GetOleRef() const
get reference to OLE object (if there is one) for selected FlyFrame
SwFrameFormat * GetSelectedFrameFormat() const
If frame then frame style, else 0.
bool GetBoxBackground(std::unique_ptr< SvxBrushItem > &rToFill) const
FALSE ambiguous.
void ChgAnchor(RndStdIds eAnchorId, bool bSameOnly=false, bool bPosCorr=true)
frmatr.hxx.
void SetTabBorders(const SfxItemSet &rSet)
size_t GetCurPageDesc(const bool bCalcFrame=true) const
static SfxItemSetFixed< RES_VERT_ORIENT, RES_ANCHOR > makeItemSetFromFormatAnchor(SfxItemPool &rPool, const SwFormatAnchor &rAnchor)
bool GetObjAttr(SfxItemSet &rSet) const
Attention: Ambiguities if multiple selections.
sal_uInt16 GetPhyPageNum() const
Phy: real page count.
SdrLayerID GetLayerId() const
1 Heaven, 0 Hell, SDRLAYER_NOTFOUND Ambiguous.
void SetTabBackground(const SvxBrushItem &rNew)
void GetTabBorders(SfxItemSet &rSet) const
bool GetFlyFrameAttr(SfxItemSet &rSet) const
size_t IsObjSelected() const
const SwPageDesc & GetPageDesc(size_t i) const
const SwFrameFormat * IsFlyInFly()
Is selected frame within another frame?
bool GetTableCopied() const
SwFieldType * GetFieldType(SwFieldIds nResId, size_t nField=0) const
Instances of SwFields and those derived from it occur 0 to n times.
Base class of all fields.
void SetAttrSet(const SfxItemSet &rSet)
const SfxItemSet & GetAttrSet() const
const SwInsertTableOptions & GetInsTableFlags(bool bHTML) const
Class for automated call of Start- and EndCursorMove().
Marks a node in the document model.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
bool IsContentNode() const
SwContentNode * GetContentNode()
PaM is Point and Mark: a selection of the document model.
SwNode & GetPointNode() const
const SwPosition * GetPoint() const
const OUString & GetName() const
SwFrameFormat & GetMaster()
void AddRule(SwUndoArg eWhat, const OUString &rWith)
SectionType GetType() const
sal_Int32 GetFontHeight(sal_uInt8 nFont, sal_uInt8 nScriptType, LanguageType eLang)
const SwTable & GetTable() const
void SetTableStyleName(const OUString &rName)
Set the new table style name for this table.
Represents the style of a paragraph.
SwTextNode is a paragraph in the document model.
void GetAttrOutlineContentVisible(bool &bOutlineContentVisibleAttr)
GetAttrOutlineContentVisible.
std::vector< SwTextAttr * > GetTextAttrsAt(sal_Int32 const nIndex, sal_uInt16 const nWhich) const
get the innermost text attributes covering position nIndex.
void UpdateFieldContent(SwDoc *pDoc, SwWrtShell &rWrtSh, OUString aContent)
static void FillClipFormatItem(const SwWrtShell &rSh, const TransferableDataHelper &rData, SvxClipboardFormatItem &rToFill)
static void PrePasteSpecial(const SwWrtShell &rSh, TransferableDataHelper &, const VclPtr< SfxAbstractPasteDialog > &pDlg)
PrePasteSpecial Prepares the given dialog without actually running it.
static bool Paste(SwWrtShell &, TransferableDataHelper &, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA, bool bIgnoreComments=false, PasteTableType ePasteTable=PasteTableType::PASTE_DEFAULT)
static bool PasteUnformatted(SwWrtShell &rSh, TransferableDataHelper &)
static bool IsPaste(const SwWrtShell &, const TransferableDataHelper &)
static bool PasteFormat(SwWrtShell &rSh, TransferableDataHelper &rData, SotClipboardFormatId nFormat)
void SetShowChangesInMargin(bool b)
bool IsShowOutlineContentVisibilityButton() const
void SetFormView(bool bSet)
void SetShowChangesInMargin2(bool b)
bool IsViewLocked() const
const SwViewOption * GetViewOptions() const
void Reformat()
Invalidates complete Layout (ApplyViewOption).
static ShellResource * GetShellRes()
SwRootFrame * GetLayout() const
void UpdateAllCharts()
update all charts for which any table exists
IDocumentUndoRedo const & GetIDocumentUndoRedo() const
Provides access to the document undo/redo interface.
const SfxItemPool & GetAttrPool() const
void UpdateOleObjectPreviews()
Update the previews of all OLE objects.
void AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId=nullptr)
SwWrtShell & GetWrtShell() const
virtual FmFormShell * GetFormShell() override
SwWrtShell * GetWrtShellPtr() const
ShellMode GetShellMode() const
SwDocShell * GetDocShell()
void InvalidateRulerPos()
Used by the UI to modify the document model.
void ClickToField(const SwField &rField, bool bExecHyperlinks)
bool IsSelFrameMode() const
void AutoUpdatePara(SwTextFormatColl *pColl, const SfxItemSet &rStyleSet, SwPaM *pPaM=nullptr)
void EnterSelFrameMode(const Point *pStartDrag=nullptr)
OUString GetRepeatString() const
void GetDoStrings(DoType eDoType, SfxStringListItem &rStrLstItem) const
void AutoUpdateFrame(SwFrameFormat *pFormat, const SfxItemSet &rStyleSet)
bool Left(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
SelectionType GetSelectionType() const
void UpdateInputFields(SwInputFieldList *pLst=nullptr)
void InsertGraphic(const OUString &rPath, const OUString &rFilter, const Graphic &, SwFlyFrameAttrMgr *=nullptr, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA)
SwFrameFormat * GetTableStyle(std::u16string_view rFormatName)
virtual void ApplyViewOptions(const SwViewOption &rOpt) override
Apply ViewOptions with Start-/EndAction.
void Do(DoType eDoType, sal_uInt16 nCnt=1, sal_uInt16 nOffset=0)
bool DelRight(bool isReplaceHeuristic=false)
bool HasSelection() const
OUString GetDoString(DoType eDoType) const
bool IsInClickToEdit() const
const SwView & GetView() const
static TransferableDataHelper CreateFromSystemClipboard(vcl::Window *pWindow)
css::uno::Reference< css::datatransfer::XTransferable > GetXTransferable() const
void setUserAllowsLinkUpdate(bool bNew)
void UpdateAllLinks(bool bAskUpdate, bool bUpdateGrfLinks, weld::Window *pParentWin)
const SvBaseLinks & GetLinks() const
virtual short run() override
The UI part presenting the graphic size check results, which is used by GenericCheckDialog.
ring_container GetRingContainer()
Stores the undo/redo information, implementing the IDocumentUndoRedo interface.
bool IsViewUndoActionIndependent(const SwView *pView, sal_uInt16 &rOffset) const
Checks if the topmost undo action owned by pView is independent from the topmost action undo action.
void SetOrientation(Degree10 nLineOrientation)
void SetVertical(bool bVertical)
void SetStyleName(const OUString &rStyleName)
void SetPitch(FontPitch ePitch)
void SetFamily(FontFamily)
void SetCharSet(rtl_TextEncoding)
void SetFamilyName(const OUString &rFamilyName)
void SetInputContext(const InputContext &rInputContext)
LanguageType GetInputLanguage() const
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define FN_TOOL_ANCHOR_PAGE
#define FN_TABLE_PASTE_COL_BEFORE
#define FN_TOOL_ANCHOR_FRAME
#define FN_SET_TRACKED_INSERTIONS_IN_MARGIN
#define FN_FORMAT_BACKGROUND_DLG
#define FN_SET_TRACKED_CHANGES_IN_TEXT
#define FN_PAGE_STYLE_SET_LR_MARGIN
#define FN_SET_TRACKED_DELETIONS_IN_MARGIN
#define FN_CONVERT_TEXT_TO_TABLE
#define FN_FRAME_WRAP_IDEAL
#define FN_UPDATE_ALL_LINKS
#define FN_TOOL_ANCHOR_CHAR
#define FN_PAGE_STYLE_SET_NUMBER_FORMAT
#define FN_SHIFT_BACKSPACE
#define FN_TOOL_ANCHOR_AT_CHAR
#define FN_TOOL_ANCHOR_PARAGRAPH
#define FN_PAGE_STYLE_SET_COLS
#define FN_FORMAT_BORDER_DLG
#define FN_FRAME_WRAPTHRU_TRANSP
#define FN_XFORMS_DESIGN_MODE
#define FN_CHANGE_DBFIELD
#define FN_CONVERT_TABLE_TO_TEXT
#define FN_FORMAT_PAGE_SETTING_DLG
#define FN_EDIT_CURRENT_REGION
#define FN_PAGE_STYLE_SET_PAPER_BIN
#define FN_GOTO_NEXT_MARK
#define FN_FORMAT_TITLEPAGE_DLG
#define FN_PASTE_NESTED_TABLE
#define FN_FRAME_WRAP_RIGHT
#define FN_FORMAT_PAGE_COLUMN_DLG
#define FN_WRAP_ANCHOR_ONLY
#define FN_PAGE_STYLE_SET_UL_MARGIN
#define FN_FRAME_TO_ANCHOR
#define FN_FRAME_WRAPTHRU_TOGGLE
#define FN_FORMAT_PAGE_DLG
#define FN_CONVERT_TEXT_TABLE
#define FN_FRAME_WRAP_CONTOUR
#define FN_PAGE_STYLE_SET_PAPER_SIZE
#define FN_GOTO_PREV_MARK
#define FN_FRAME_WRAPTHRU
#define FN_TABLE_PASTE_ROW_BEFORE
#define FN_FRAME_WRAP_LEFT
#define FN_UPDATE_INPUTFIELDS
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
SFX_IMPL_SUPERCLASS_INTERFACE(DrawDocShell, SfxObjectShell)
FrameTypeFlags
values can be combined via logical or
@ Parent
Check only parents.
#define FONT_GROUP_DEFAULT
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CTL_FONTSIZE(28)
constexpr TypedWhichId< SwFormatURL > RES_URL(117)
bool isCHRATR(const sal_uInt16 nWhich)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_FONTSIZE(8)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_LANGUAGE(10)
constexpr TypedWhichId< SvxWeightItem > RES_CHRATR_WEIGHT(15)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CTL_LANGUAGE(29)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(109)
constexpr TypedWhichId< SvxFontHeightItem > RES_CHRATR_CJK_FONTSIZE(23)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(113)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(108)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SvxLanguageItem > RES_CHRATR_CJK_LANGUAGE(24)
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(105)
constexpr TypedWhichId< SvxPostureItem > RES_CHRATR_POSTURE(11)
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(110)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SwFormatRefMark > RES_TXTATR_REFMARK(RES_TXTATR_WITHEND_BEGIN)
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(107)
SVX_DLLPUBLIC SvxIMapDlg * GetIMapDlg()
::std::vector< OUString > TargetList
#define LANGUAGE_DONTKNOW
#define LINK(Instance, Class, Member)
SvtScriptType GetScriptTypeOfLanguage(LanguageType nLang)
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)
HashMap_OWString_Interface aMap
SwMoveFnCollection const & fnTableStart
sal_uInt16 mnRowsToRepeat
SwInsertTableFlags mnInsMode
Marks a position in the document model.
sal_Int32 GetContentIndex() const
std::function< void(sal_Int32)> maEndDialogFn
Reference< XModel > xModel
OUString SwResId(TranslateId aId)
constexpr SwTwips DEF_GUTTER_WIDTH
bool GotoPrevTable(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosTable, bool bInReadOnly)
SVXCORE_DLLPUBLIC std::unique_ptr< SvxBrushItem > getSvxBrushItemFromSourceSet(const SfxItemSet &rSourceSet, sal_uInt16 nBackgroundID, bool bSearchInParents=true, bool bXMLImportHack=false)
SVXCORE_DLLPUBLIC void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem &rBrush, SfxItemSet &rToSet)
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLUSESLIDEBACKGROUND)