20#include <com/sun/star/beans/XPropertySet.hpp>
21#include <com/sun/star/container/XChild.hpp>
22#include <com/sun/star/embed/EmbedMisc.hpp>
23#include <com/sun/star/embed/EmbedStates.hpp>
24#include <com/sun/star/embed/EmbedVerbs.hpp>
25#include <com/sun/star/embed/NoVisualAreaSizeException.hpp>
26#include <com/sun/star/chart2/XChartDocument.hpp>
27#include <com/sun/star/util/XModifiable.hpp>
28#include <com/sun/star/lang/XInitialization.hpp>
90#include <osl/diagnose.h>
111#include "../../core/crsr/callnk.hxx"
113#include <viewopt.hxx>
126void collectUIInformation(
const OUString& rAction,
const OUString& aParameters)
129 aDescription.
aAction = rAction;
130 aDescription.
aParameters = {{
"parameters", aParameters}};
131 aDescription.
aID =
"writer_edit";
132 aDescription.
aKeyWord =
"SwEditWinUIObject";
133 aDescription.
aParent =
"MainWindow";
158#define BITFLD_INI_LIST \
168 m_bRetainSelection = false; \
169 m_bIsInClickToEdit = false;
174 if( pACorr && !pACorr->
IsAutoCorrFlag( ACFlags::CapitalStartSentence | ACFlags::CapitalStartWord |
175 ACFlags::AddNonBrkSpace | ACFlags::ChgOrdinalNumber | ACFlags::TransliterateRTL |
176 ACFlags::ChgToEnEmDash | ACFlags::SetINetAttr | ACFlags::Autocorrect |
177 ACFlags::SetDOIAttr ))
212 sal_Int32
nPos = 0, nStt = 0;
213 for( ;
nPos < rStr.getLength();
nPos++ )
216 if( bTmpDelim != bDelim )
232 bool bStarted =
false;
235 bool bDeleted =
false;
248 OUString aTmpStr =
SwResId(STR_START_QUOTE) +
269 if (pTextContentControl)
271 std::shared_ptr<SwContentControl> pContentControl =
276 pContentControl->SetShowingPlaceHolder(
false);
313 bool bSetGrfSize =
true;
314 bool bOwnMgr =
false;
328 if (nAnchorType != RndStdIds::FLY_AT_PARA)
349 if (
IsRedlineOn() && nAnchorType != RndStdIds::FLY_AS_CHAR )
350 pFrameMgr->
SetAnchor( RndStdIds::FLY_AS_CHAR );
362 sal_Int32 nPreferredDPI =
mxDoc->getIDocumentSettingAccess().getImagePreferredDPI();
365 if (nPreferredDPI > 0)
369 aGrfSize =
Size(nWidth, nHeight);
396 pFrameMgr->
SetSize( aGrfSize );
434 case SID_INSERT_OBJECT:
437 aServerList.
Remove( SwDocShell::Factory().GetClassId() );
442 case SID_INSERT_FLOATINGFRAME:
449 aCmd, xStor, &aServerList));
453 bDoVerb = pDlg->IsCreateNew();
454 OUString aIconMediaType;
455 uno::Reference< io::XInputStream > xIconMetaFile = pDlg->GetIconIfIconified( &aIconMediaType );
456 xObj.
Assign( pDlg->GetObject(),
457 xIconMetaFile.is() ? embed::Aspects::MSOLE_ICON : embed::Aspects::MSOLE_CONTENT );
458 if ( xIconMetaFile.is() )
485 MapMode aMapMode( MapUnit::MapTwip );
496 pClient->
DoVerb(embed::EmbedVerbs::MS_OLEVERB_SHOW);
533 bool bStarMath =
true;
534 bool bActivate =
true;
537 uno::Reference < container::XChild > xChild( xRef.
GetObject(), uno::UNO_QUERY );
539 xChild->setParent(
mxDoc->GetDocShell()->GetModel() );
552 uno::Reference < beans::XPropertySet > xSet( xRef->getComponent(), uno::UNO_QUERY );
557 xSet->setPropertyValue(
"Formula",
uno::Any( aMathData ) );
560 catch (
const uno::Exception&)
588 MapMode aMapMode( MapUnit::MapTwip );
606 *pFlyFrameFormat = pFormat;
610 uno::Reference< embed::XEmbeddedObject > xEmbeddedObj = xRef.
GetObject();
611 if ( xEmbeddedObj.is() )
613 bool bDisableDataTableDialog =
false;
615 uno::Reference< beans::XPropertySet > xProps( xEmbeddedObj->getComponent(), uno::UNO_QUERY );
617 ( xProps->getPropertyValue(
"DisableDataTableDialog") >>= bDisableDataTableDialog ) &&
618 bDisableDataTableDialog )
620 xProps->setPropertyValue(
"DisableDataTableDialog",
622 xProps->setPropertyValue(
"DisableComplexChartTypes",
624 uno::Reference< util::XModifiable > xModifiable( xProps, uno::UNO_QUERY );
625 if ( xModifiable.is() )
627 xModifiable->setModified(
true );
657 GetView().GetViewFrame().GetFrame().IsInPlace() )
661 OSL_ENSURE( xRef.
is(),
"OLE not found" );
668 const auto classId = xRef->getClassID();
677 uno::Reference<lang::XInitialization> xOLEInit(xRef.
GetObject(), uno::UNO_QUERY);
680 uno::Sequence<beans::PropertyValue>
aArguments
685 static_cast<SwOleClient*
>(pCli)->SetInDoVerb(
true );
690 static_cast<SwOleClient*
>(pCli)->SetInDoVerb(
false );
698 sal_Int32
nState = xObj->getCurrentState();
699 if (
nState == css::embed::EmbedStates::INPLACE_ACTIVE
700 ||
nState == css::embed::EmbedStates::UI_ACTIVE )
712 catch (
const uno::Exception&)
718 const SwRect *pFlyPrtRect,
719 const SwRect *pFlyFrameRect,
720 const bool bNoTextFramePrtAreaChanged )
724 OSL_ENSURE( xObj.
is(),
"ObjectRef not valid" );
727 if ( nAspect == embed::Aspects::MSOLE_ICON )
731 bool bLinkingChart =
false;
735 nMisc = xObj->getStatus( nAspect );
739 if( embed::EmbedMisc::MS_EMBED_RECOMPOSEONRESIZE & nMisc )
742 SwRect aRect( pFlyPrtRect ? *pFlyPrtRect
754 aSz.Width = aSize.
Width();
755 aSz.Height = aSize.
Height();
759 bool bModified =
false;
760 uno::Reference<util::XModifiable> xModifiable(xObj->getComponent(), uno::UNO_QUERY);
761 if (xModifiable.is())
762 bModified = xModifiable->isModified();
763 xObj->setVisualAreaSize( nAspect, aSz );
764 xModifiable.set(xObj->getComponent(), uno::UNO_QUERY);
765 if (xModifiable.is() && xModifiable->isModified() && !bModified)
766 xModifiable->setModified(bModified);
777 bool bResetEnableSetModified(
false);
778 if (
GetDoc()->GetDocShell()->IsEnableSetModified() )
781 bResetEnableSetModified =
true;
791 if ( bResetEnableSetModified )
799 uno::Reference< chart2::XChartDocument > xChartDocument( xObj->getComponent(), uno::UNO_QUERY );
800 bLinkingChart = ( xChartDocument.is() && !xChartDocument->hasInternalDataProvider() );
803 catch (
const uno::Exception&)
812 if ( (embed::EmbedMisc::EMBED_ACTIVATEIMMEDIATELY & nMisc)
816 || ( bNoTextFramePrtAreaChanged && nMisc & embed::EmbedMisc::EMBED_NEVERRESIZE ) )
830 aSize = xObj->getVisualAreaSize( nAspect );
832 catch (
const embed::NoVisualAreaSizeException&)
834 OSL_FAIL(
"Can't get visual area size!" );
837 catch (
const uno::Exception&)
840 OSL_FAIL(
"Can't get visual area size!" );
844 Size _aVisArea( aSize.Width, aSize.Height );
849 bool bUseObjectSize =
false;
855 const MapMode aTmp( MapUnit::MapTwip );
860 aObjArea = pFlyPrtRect->
SSize();
867 if( !( _aVisArea.
Width() - nX <= aObjArea.
Width() &&
872 if ( nMisc & embed::EmbedMisc::EMBED_NEVERRESIZE )
876 bUseObjectSize =
true;
891 aArea = *pFlyPrtRect;
892 aArea += pFlyFrameRect->
Pos();
900 if ( bUseObjectSize )
904 OSL_ENSURE( pFlyFrameFormat,
"Could not find fly frame." );
905 if ( pFlyFrameFormat )
908 SwRect aRect( pFlyPrtRect ? *pFlyPrtRect
910 aArea += rPoint - aRect.
Pos();
920 if (nWidth && nHeight)
973 collectUIInformation(
"BREAK_PAGE",
"parameter");
992 if (oClear.has_value())
1053 auto pContentControl = std::make_shared<SwContentControl>(
nullptr);
1054 OUString aPlaceholder;
1060 pContentControl->SetShowingPlaceHolder(
true);
1063 pContentControl->SetPlainText(
true);
1067 aPlaceholder =
SwResId(STR_CONTENT_CONTROL_PLACEHOLDER);
1073 pContentControl->SetCheckbox(
true);
1075 pContentControl->SetCheckedState(
u"\u2612");
1077 pContentControl->SetUncheckedState(OUString(
u"\u2610"));
1078 aPlaceholder =
u"\u2610";
1086 pContentControl->SetComboBox(
true);
1090 pContentControl->SetDropDown(
true);
1093 pContentControl->SetShowingPlaceHolder(
true);
1096 aPlaceholder =
SwResId(STR_DROPDOWN_CONTENT_CONTROL_PLACEHOLDER);
1100 pContentControl->SetListItems({ aListItem });
1106 pContentControl->SetShowingPlaceHolder(
true);
1107 pContentControl->SetPicture(
true);
1113 aBitmap.
Erase(aColor);
1119 InsertGraphic(OUString(), OUString(), aBitmap,
nullptr, RndStdIds::FLY_AS_CHAR);
1148 pContentControl->SetShowingPlaceHolder(
true);
1149 pContentControl->SetDate(
true);
1151 sal_uInt32 nStandardFormat = pFormatter->
GetStandardFormat(SvNumFormatType::DATE);
1157 aPlaceholder =
SwResId(STR_DATE_CONTENT_CONTROL_PLACEHOLDER);
1162 if (aPlaceholder.getLength())
1208 if (pTextNode && pTextNode->
IsOutline())
1223 if (rOutlineNodes.
size() >
nPos + 1)
1224 pEndNd = rOutlineNodes[
nPos + 1];
1232 while (++iPos < rOutlineNodes.
size() &&
1233 rOutlineNodes[iPos]->GetTextNode()->GetAttrOutlineLevel() > nLevel);
1245 if (iPos < rOutlineNodes.
size())
1247 SwNode* pStartOfSectionNode = rOutlineNodes[iPos]->StartOfSectionNode();
1253 if (pStartOfSectionNodeSttNd == pStartOfSectionNode)
1254 pEndNd = rOutlineNodes[iPos];
1280 aIdx.
Assign(*pEndNd, -1);
1332 bool bHandled =
false;
1366 bool bContinueFoundNumRule(
false );
1367 bool bActivateOutlineRule(
false );
1368 int nActivateOutlineLvl(
MAXLEVEL );
1383 if ( !pDirectCollRule )
1385 pCollRule =
nullptr;
1391 pNumRule = pCollRule;
1398 if ( pNumRule == pCollRule )
1411 "<SwWrtShell::NumOrBulletOn(..)> - paragraph style with outline rule, but no outline level" );
1417 bActivateOutlineRule =
true;
1422 bContinueFoundNumRule =
true;
1430 bActivateOutlineRule =
true;
1434 else if ( !pNumRule )
1440 if ( pCollRule->
Get( o3tl::narrowing<sal_uInt16>(nActivateOutlineLvl) ).
GetNumberingType()
1445 bActivateOutlineRule =
true;
1450 bContinueFoundNumRule =
true;
1459 "<SwWrtShell::NumOrBulletOn(..)> - paragraph style with outline rule, but no outline level" );
1465 bActivateOutlineRule =
true;
1470 bContinueFoundNumRule =
true;
1473 pNumRule = pCollRule;
1487 !bActivateOutlineRule && !bContinueFoundNumRule )
1494 OUString sContinuedListId;
1498 false, bNum,
false, 0,
1500 bContinueFoundNumRule = pNumRule !=
nullptr;
1508 if ( !bContinueFoundNumRule )
1516 int nLevel = bActivateOutlineRule
1517 ? nActivateOutlineLvl
1526 SwNumFormat aFormat(aNumRule.
Get(o3tl::narrowing<sal_uInt16>(nLevel)));
1543 aNumRule.
Set(o3tl::narrowing<sal_uInt16>(nLevel), aFormat);
1576 const SwTwips nWidthOfTabs = pTextNode
1581 const bool bHtml =
dynamic_cast<SwWebDocShell*
>( pDocSh ) !=
nullptr;
1610 else if ( nWidthOfTabs > 0 )
1623 aNumRule.
Set( nLvl, aFormat );
1632 if ( ( nTextNodeIndent + nWidthOfTabs ) != 0 )
1638 SwTwips nIndentChange = nTextNodeIndent + nWidthOfTabs;
1696 SwNumFormat aFormat(aNumRule.
Get(o3tl::narrowing<sal_uInt16>(nLevel)));
1699 aNumRule.
Set(nLevel, aFormat);
1799 if ( pTextNd && pTextNd->
IsInList() )
1915 SID_ATTR_TABSTOP_DEFAULTS,SID_ATTR_TABSTOP_OFFSET,
1916 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
1917 SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
1918 SID_ATTR_PARA_PAGENUM, SID_ATTR_PARA_PAGENUM> aCoreSet(
GetAttrPool() );
1920 bool bReset =
false;
1922 for (
auto pParaItem = aParaIter.
GetCurItem(); pParaItem; pParaItem = aParaIter.
NextItem())
1926 sal_uInt16 nWhich = pParaItem->Which();
1941 mxDoc->ChgFormat(*pColl, rStyleSet );
1961 bool bStarted =
false;
1970 OUString aTmpStr1 =
SwResId(STR_START_QUOTE) +
1973 OUString aTmpStr3 =
SwResId(STR_START_QUOTE) +
1974 OUStringChar(cChar) +
1998 , m_aNavigationMgr(*this)
2007 IFieldmark *pBM =
nullptr;
2017 , m_aNavigationMgr(*this)
2025 IFieldmark *pBM =
nullptr;
2043 ::std::optional<SwCallLink> aLink(std::in_place, *
this);
2044 return Pop(eDelete, aLink);
2070 if(
GetView().GetDrawFuncPtr())
2098 aResult =
SwResId(STR_GRAPHIC);
2111 aResult =
SwResId(STR_DRAWING_OBJECTS);
2139 std::u16string_view rStyleName,
bool bHeader,
bool bOn,
bool bShowWarning)
2149 bool bExecute =
true;
2150 bool bCursorSet =
false;
2152 nFrom < nTo; ++nFrom )
2155 OUString sTmp(aDesc.
GetName());
2156 if( rStyleName.empty() || rStyleName == sTmp )
2164 bShowWarning =
false;
2176 bExecute = nResult ==
RET_YES;
2206 if( !bCursorSet && bOn )
2211 rStyleName.empty() ? SIZE_MAX : nFrom,
2237 sAuthor = pAuthorItem->GetValue();
2240 std::size_t nAuthor =
SW_MOD()->GetRedlineAuthor();
2241 sAuthor =
SW_MOD()->GetRedlineAuthor(nAuthor);
2247 sText = pTextItem->GetValue();
2272 std::optional<SwPosition> oAnchor;
2279 if ((eAnchorId == RndStdIds::FLY_AS_CHAR || eAnchorId == RndStdIds::FLY_AT_CHAR) && pFormat->
GetAnchor().
GetAnchorNode())
2288 GetView().AttrChangedNotify(
nullptr);
2333 const SwNode* pOutlineNode = rOutlineNodes[
nPos];
2382 bool bDocChanged =
false;
2408 if (nOutlineLevel > nLevel)
2433 if (rOutlineNodes.
size() >
nPos + 1)
2434 pEndNd = rOutlineNodes[
nPos + 1];
2442 while (++iPos < rOutlineNodes.
size() &&
2443 rOutlineNodes[iPos]->GetTextNode()->GetAttrOutlineLevel() > nLevel &&
2444 rOutlineNodes[iPos]->GetTextNode()->GetAttrOutlineLevel() <= nMaxOutlineLevelShown);
2456 if (iPos < rOutlineNodes.
size())
2458 SwNode* pStartOfSectionNode = rOutlineNodes[iPos]->StartOfSectionNode();
2464 if (pStartOfSectionNodeSttNd == pStartOfSectionNode)
2465 pEndNd = rOutlineNodes[iPos];
2480 for (
size_t nOutlinePos =
nPos + 2; nOutlinePos < rOutlineNodes.
size(); nOutlinePos++)
2482 if (!(rOutlineNodes[nOutlinePos]->GetTableBox()))
2484 pEndNd = rOutlineNodes[nOutlinePos];
2495 while (aIdx != *pEndNd)
2508 aIdx.
Assign(*pSttNd, +1);
2511 if (bSetAttrOutlineVisibility)
2516 while (aIdx != *pEndNd)
2522 bool bOutlineContentVisibleAttr =
true;
2524 if (!bOutlineContentVisibleAttr)
2527 if (rOutlineNodes.
Seek_Entry(pTextNd, &iPos))
2538 else if (bSetAttrOutlineVisibility)
2551 bool bOutlineContentVisibleAttr =
true;
2552 rOutlineNds[
nPos]->GetTextNode()->GetAttrOutlineContentVisible(bOutlineContentVisibleAttr);
2553 if (!bIsOutlineContentVisible && bOutlineContentVisibleAttr)
2555 else if (bIsOutlineContentVisible && !bOutlineContentVisibleAttr)
2573 std::vector<SwNode*> aFoldedOutlineNodeArray;
2576 bool bOutlineContentVisibleAttr =
true;
2577 pNd->GetTextNode()->GetAttrOutlineContentVisible(bOutlineContentVisibleAttr);
2578 if (!bOutlineContentVisibleAttr)
2580 aFoldedOutlineNodeArray.push_back(pNd);
2581 pNd->GetTextNode()->SetAttrOutlineContentVisible(
true);
2590 for (
SwNode* pNd: aFoldedOutlineNodeArray)
2591 pNd->GetTextNode()->SetAttrOutlineContentVisible(
false);
2622 !
GetNodes().GetOutLineNds()[
nPos]->GetTextNode()->getLayoutFrame(
nullptr)))
2625 !
GetNodes().GetOutLineNds()[
nPos]->GetTextNode()->getLayoutFrame(
nullptr))
2639 bool bVisibleAttr =
true;
2641 return bVisibleAttr;
2648 SwPaM aPaM(*rPaM.GetMark(), *rPaM.GetPoint());
2652 if (aPointIdx == aMarkIdx)
2656 for (
SwNodeIndex aIdx = aPointIdx; aIdx <= aMarkIdx; ++aIdx)
2670 auto xInfo = std::make_shared<weld::MessageDialogController>(
2671 GetView().
GetFrameWeld(),
"modules/swriter/ui/inforeadonlydialog.ui",
"InfoReadonlyDialog");
2675 xInfo->set_primary_text(
SwResId(STR_INFORODLG_FOLDED_PRIMARY));
2676 xInfo->set_secondary_text(
SwResId(STR_INFORODLG_FOLDED_SECONDARY));
2682 std::unique_ptr<weld::Builder>
2684 "modules/swriter/ui/inforeadonlydialog.ui"));
2685 std::unique_ptr<weld::MessageDialog>
2686 xInfo(xBuilder->weld_message_dialog(
"InfoReadonlyDialog"));
2690 xInfo->set_primary_text(
SwResId(STR_INFORODLG_FOLDED_PRIMARY));
2691 xInfo->set_secondary_text(
SwResId(STR_INFORODLG_FOLDED_SECONDARY));
2701 std::unique_ptr<weld::MessageDialog> xQuery(
2702 xBuilder->weld_message_dialog(
"WarnHiddenSectionDialog"));
2706 xQuery->set_primary_text(
SwResId(STR_INFORODLG_FOLDED_PRIMARY));
2707 xQuery->set_secondary_text(
SwResId(STR_INFORODLG_FOLDED_SECONDARY));
2710 return (
RET_YES == xQuery->run());
2716 VclMessageType::Question, VclButtonsType::YesNo,
SwResId(STR_A11Y_DESIGN_MODE_PRIMARY)));
2717 xQuery->set_default_response(
RET_YES);
2718 xQuery->set_title(
SwResId(STR_A11Y_DESIGN_MODE_TITLE));
2719 xQuery->set_secondary_text(
SwResId(STR_A11Y_DESIGN_MODE_SECONDARY));
2721 return (
RET_YES == xQuery->run());
@ MATH_BASELINE_ALIGNMENT
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
bool Erase(const Color &rFillColor)
bool isLetterNumeric(const OUString &rStr, sal_Int32 nPos) const
const OUString & GetValue() const
void IncreaseLuminance(sal_uInt8 cLumInc)
Size GetSizePixel(const OutputDevice *pRefDevice=nullptr) const
virtual void RemoveLeadingWhiteSpace(const SwPosition &rPos)=0
Removes any leading white space from the paragraph.
virtual SwFieldType * GetFieldType(SwFieldIds nResId, const OUString &rName, bool bDbFieldMatching) const =0
const OUString & getBcp47(bool bResolveSystem=true) const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false)
virtual bool IsTextEdit() const final override
virtual SdrViewContext GetContext() const
void Invalidate(sal_uInt16 nId)
bool SetObjArea(const tools::Rectangle &)
void SetObjAreaAndScale(const tools::Rectangle &, const Fraction &, const Fraction &)
const Fraction & GetScaleHeight() const
const tools::Rectangle & GetObjArea() const
ErrCode DoVerb(sal_Int32 nVerb)
const Fraction & GetScaleWidth() const
virtual bool IsProtected() const
const SfxPoolItem * GetCurItem() const
const SfxPoolItem * NextItem()
SfxItemState GetItemState(bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void EnableSetModified(bool bEnable=true)
const T * GetArg(sal_uInt16 nSlotId) const
const SfxSlot * GetSlot(sal_uInt16 nId) const
SFX2_DLLPUBLIC OUString GetCommand() const
SfxBindings & GetBindings()
weld::Window * GetFrameWeld() const
SfxViewFrame & GetViewFrame() const
SfxInPlaceClient * FindIPClient(const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, vcl::Window *pObjParentWin) const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
static sal_uInt16 IsChart(const SvGlobalName &rName)
static sal_uInt16 IsMath(const SvGlobalName &rName)
void Remove(const SvGlobalName &)
static SvxAbstractDialogFactory * Create()
SvxAutoCorrect * GetAutoCorrect()
static SvxAutoCorrCfg & Get()
bool IsAutoCorrFlag(ACFlags nFlag) const
void SetNumberingType(SvxNumType nSet)
SvxNumType GetNumberingType() const
Class for automated call of Start- and EndAction().
Represents one list item in a content control dropdown list.
OUString m_aValue
This must not be empty.
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
void DelFrames(SwRootFrame const *pLayout)
Method deletes all views of document for the node.
bool Pop(PopMode, ::std::optional< SwCallLink > &roLink)
OUString GetCursorDescr() const
Returns textual description of the current selection.
void Push()
store a copy of the current cursor on the cursor stack
const SwTableNode * IsCursorInTable() const
Check if Point of current cursor is placed within a table.
bool IsInHiddenRange(const bool bSelect)
If the current cursor position is inside a hidden range true is returned.
bool HasSelection() const
Does the current cursor create a selection?
void SetFlyMacroLnk(const Link< const SwFlyFrameFormat *, void > &rLnk)
virtual SwCursor & GetCurrentShellCursor() override
Return the current shell cursor.
void NormalizePam(bool bPointFirst=true)
Ensure point and mark of the current PaM are in a specific order.
bool SetCursorInHdFt(size_t nDescNo, bool bInHeader, bool bEven=false, bool bFirst=false)
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
OUString GetSelText() const
get selected text of a node at current cursor
bool IsEndWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
void EndAction(const bool bIdleEnd=false)
bool GotoFootnoteText()
jump from content to footnote
SwContentFrame * GetCurrFrame(const bool bCalcFrame=true) const
Get current frame in which the cursor is positioned.
bool IsInRightToLeftText() const
bool SetInFrontOfLabel(bool bNew)
SwTextContentControl * CursorInsideContentControl() const
SwShellCursor * getShellCursor(bool bBlock)
Delivers the current shell cursor.
SwTable::SearchType GetEnhancedTableSelection() const
bool Left(sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual=false)
SwOutlineNodes::size_type GetOutlinePos(sal_uInt8 nLevel=UCHAR_MAX, SwPaM *pPaM=nullptr)
search "outline position" before previous outline node at given level
sw::mark::IFieldmark * GetFieldmarkAfter(bool bLoop)
bool IsCursorPtAtEnd() const
void ClearLineNumAttrs(SwPosition const &rPos)
IDocumentContentOperations const & getIDocumentContentOperations() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
const SwNumRule * SearchNumRule(const SwPosition &rPos, const bool bForward, const bool bNum, const bool bOutline, int nNonEmptyAllowed, OUString &sListId, SwRootFrame const *pLayout, const bool bInvestigateStartNode=false)
Searches for a text node with a numbering rule.
SvNumberFormatter * GetNumberFormatter(bool bCreate=true)
SwDocShell * GetDocShell()
sal_uInt16 GetCntType() const
Determine form of content. Return Type at CurrentCursor->SPoint.
void StartAllAction()
For all views of this document.
void SplitNode(bool bAutoFormat=false, bool bCheckTableStart=true)
size_t GetTableFrameFormatCount(bool bUsed=false) const
TABLE.
SwFormat * GetFormatFromPool(sal_uInt16 nId)
return the requested automatic format - base-class !
void ChgDBData(const SwDBData &SwDBData)
virtual void ApplyViewOptions(const SwViewOption &rOpt) override
Apply ViewOptions with Start-/EndAction.
SwFrameFormat & GetTableFrameFormat(size_t nFormat, bool bUsed=false) const
SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId)
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
bool GetGrfSize(Size &) const
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)
SwCharFormat * FindCharFormatByName(const OUString &rName) const
void Overwrite(const OUString &)
svt::EmbeddedObjectRef & GetOLEObject() const
Get OLE object at pointer.
void Insert2(const OUString &, const bool bForceExpandHints=false)
void SetTextFormatColl(SwTextFormatColl *, const bool bResetListAttrs=false)
Add 2nd optional parameter <bResetListAttrs> - see also <SwDoc::SetTextFormatColl(....
void SetCurNumRule(const SwNumRule &, const bool bCreateNewList, const OUString &sContinuedListId=OUString(), const bool bResetIndentAttrs=false)
Optional parameter <bResetIndentAttrs> (default value false).
SwTextFormatColl * FindTextFormatCollByName(const OUString &rName) const
const SwNumRule * GetOutlineNumRule() const
bool GetPaMAttr(SwPaM *pPaM, SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
Apply / remove attributes.
SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId)
const SwNumRule * GetNumRuleAtCurrCursorPos() const
void DelNumRules()
Delete, split enumeration list.
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
void AutoCorrect(SvxAutoCorrect &rACorr, bool bInsertMode, sal_Unicode cChar)
Call AutoCorrect.
SwTextFormatColl * GetCurTextFormatColl() const
Get the named paragraph format of the current selection.
OUString GetUniqueNumRuleName() const
void GetSelectedText(OUString &rBuf, ParaBreakType nHndlParaBreak=ParaBreakType::ToBlank)
Query text within selection.
void FillByEx(SwCharFormat *)
void ResetAttr(const o3tl::sorted_vector< sal_uInt16 > &attrs=o3tl::sorted_vector< sal_uInt16 >(), SwPaM *pCursor=nullptr)
bool IsUsed(const sw::BroadcastingModify &) const
Query if the paragraph-/character-/frame-/page-style is used.
void FlushInBuffer()
Character buffer is inserted into the document.
bool IsFrameAction() const
SwFrameControlsManager & GetFrameControlsManager()
SwFlyFrame * GetSelectedFlyFrame() const
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...
void ChgPageDesc(size_t i, const SwPageDesc &)
SwFlyFrameFormat * InsertObject(const svt::EmbeddedObjectRef &, SfxItemSet *pFlyAttrSet)
SwPageDesc * FindPageDescByName(const OUString &rName, bool bGetFromPool=false, size_t *pPos=nullptr)
bool IsFrameSelected() const
void SetCheckForOLEInCaption(bool bFlag)
size_t GetPageDescCnt() const
SwFrameFormat * GetSelectedFrameFormat() const
If frame then frame style, else 0.
void ToggleHeaderFooterEdit()
void Insert(const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, const SfxItemSet *pFlyAttrSet)
size_t GetCurPageDesc(const bool bCalcFrame=true) const
Size GetGraphicDefaultSize() const
const SwRect & GetAnyCurRect(CurRectType eType, const Point *pPt=nullptr, const css::uno::Reference< css::embed::XEmbeddedObject > &=css::uno::Reference< css::embed::XEmbeddedObject >()) const
bool GetFlyFrameAttr(SfxItemSet &rSet) const
Size RequestObjectResize(const SwRect &rRect, const css::uno::Reference< css::embed::XEmbeddedObject > &)
OLE.
void EndTextEdit()
Deletes object if required.
void ChgCurPageDesc(const SwPageDesc &)
PageDescriptor-interface.
size_t IsObjSelected() const
void CalcBoundRect(SwRect &_orRect, const RndStdIds _nAnchorId, const sal_Int16 _eHoriRelOrient=css::text::RelOrientation::FRAME, const sal_Int16 _eVertRelOrient=css::text::RelOrientation::FRAME, const SwFormatAnchor *_pToCharContentPos=nullptr, const bool _bFollowTextFlow=false, bool _bMirror=false, Point *_opRef=nullptr, Size *_opPercent=nullptr, const SwFormatFrameSize *pFormatFrameSize=nullptr) const
i#17567 - adjustments to allow negative vertical positions for fly frames anchored to paragraph or to...
const SwPageDesc & GetPageDesc(size_t i) const
void ResetFlyFrameAttr(const SfxItemSet *pSet)
const SwFrameFormat * GetFlyFrameFormat() const
Get FlyFrameFormat; for UI macro linkage at Flys.
bool InsertField(SwInsertField_Data &rData)
Instances of SwFields and those derived from it occur 0 to n times.
SwFormatField * FindFormatForField(const SwField *) const
SwFieldType * GetTyp() const
void SetAnchor(RndStdIds eId)
tools::Long CalcWidthBorder()
void SetSize(const Size &rLSize)
RndStdIds GetAnchor() const
const Size & GetSize() const
void DelAttr(sal_uInt16 nId)
tools::Long CalcHeightBorder()
const SfxItemSet & GetAttrSet() const
void SetHeightSizeType(SwFrameSize eType)
general base class for all free-flowing frames
virtual const SwFlyFrameFormat * GetFormat() const override
SfxPoolItem subclass that wraps an SwContentControl.
const std::shared_ptr< SwContentControl > & GetContentControl() const
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
void SetNumOffset(const ::std::optional< sal_uInt16 > &oNum)
bool isFrameAreaDefinitionValid() const
void HideControls(FrameControlType eType)
void SetReadonlyControls(bool bReadonly)
Base class of the Writer layout elements.
Class for automated call of Start- and EndCursorMove().
bool addEntry(const SwPosition &rPos)
Marks a node in the document model.
const SwNodes & GetNodes() const
SwNodeIndex & Assign(SwNodes const &rNds, SwNodeOffset nIdx)
Base class of the Writer document model elements.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwSectionNode * GetSectionNode()
SwNodeOffset GetIndex() const
SwTableBox * GetTableBox() const
If node is in a table return the respective table box.
bool IsContentNode() const
bool IsSectionNode() const
SwTableNode * FindTableNode()
Search table node, in which it is.
const SwStartNode * StartOfSectionNode() const
SwNodeOffset EndOfSectionIndex() const
SwContentNode * GetContentNode()
SwTableNode * GetTableNode()
const SwEndNode * EndOfSectionNode() const
const SwOutlineNodes & GetOutLineNds() const
Array of all OutlineNodes.
SwNode & GetEndOfExtras() const
This is the last EndNode of a special section.
SwTextNode * MakeTextNode(SwNode &rWhere, SwTextFormatColl *pColl, bool bNewFrames=true)
Implementations of "Make...Node" are in the given .cxx-files.
SwNode & GetEndOfContent() const
Regular ContentSection (i.e. the BodyText).
bool IsOutlineRule() const
void ChangeIndent(const sal_Int32 nDiff)
change indent of all list levels by given difference
const SwNumFormat & Get(sal_uInt16 i) const
void Set(sal_uInt16 i, const SwNumFormat *)
bool Seek_Entry(SwNode *rP, size_type *pnPos) const
static constexpr auto npos
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
SwNode & GetPointNode() const
void Normalize(bool bPointFirst=true)
Normalizes PaM, i.e.
const SwPosition * GetPoint() const
const OUString & GetName() const
SwFrameFormat & GetMaster()
void RegisterAnswerText(const OUString &aAnswerText)
OutlinerParaObject * IsAnswer()
const OUString & GetAnswerText() const
SW_DLLPUBLIC bool HasActiveSidebarWin() const
Of course Writer needs its own rectangles.
void Height(tools::Long nNew)
void Pos(const Point &rNew)
void SSize(const Size &rNew)
tools::Rectangle SVRect() const
void Width(tools::Long nNew)
void AddRule(SwUndoArg eWhat, const OUString &rWith)
const SwSection & GetSection() const
SwSectionFormat * GetFormat()
static void Get1PixelInLogic(const SwViewShell &rSh, tools::Long *pX=nullptr, tools::Long *pY=nullptr)
static SW_DLLPUBLIC sal_uInt16 GetPoolIdFromUIName(const OUString &rName, SwGetPoolIdFromName)
const SwTable & GetTable() const
void DelFrames(SwRootFrame const *pLayout=nullptr)
Method deletes all views of document for the node.
SwTable is one table in the document model, containing rows (which contain cells).
const SwFormatContentControl & GetContentControl() const
SwTextAttr subclass that tracks the location of the wrapped SwFormatContentControl.
Represents the style of a paragraph.
bool IsAssignedToListLevelOfOutlineStyle() const
int GetAssignedOutlineStyleLevel() const
SwTextNode is a paragraph in the document model.
bool IsOutline() const
Returns if this text node is an outline.
void GetAttrOutlineContentVisible(bool &bOutlineContentVisibleAttr)
GetAttrOutlineContentVisible.
bool IsCountedInList() const
SwTwips GetAdditionalIndentForStartingNewList() const
SwTwips GetWidthOfLeadingTabs() const
Returns the width of leading tabs/blanks in this paragraph.
SwNumRule * GetNumRule(bool bInParent=true) const
Returns numbering rule of this text node.
int GetActualListLevel(SwListRedlineType eRedline=SwListRedlineType::SHOW) const
Returns the actual list level of this text node, when it is a list item.
int GetAttrOutlineLevel() const
Returns outline level of this text node.
void SetAttrOutlineContentVisible(bool bVisible)
SwTextFormatColl * GetTextColl() const
static void ClearSelection(const SwWrtShell &rSh, const SwFrameShell *pCreator=nullptr)
bool IsShowOutlineContentVisibilityButton() const
bool IsTreatSubOutlineLevelsAsContent() const
bool IsViewLocked() const
bool IsHeaderFooterEdit() const
Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags.
const SwViewOption * GetViewOptions() const
void UnlockPaint(bool bVirDev=false)
const SwNodes & GetNodes() const
rtl::Reference< SwDoc > mxDoc
The document; never 0.
SwRootFrame * GetLayout() const
virtual void SetReadonlyOption(bool bSet)
void LockPaint(LockPaintReason eReason)
const SwPostItMgr * GetPostItMgr() const
void SetSfxViewShell(SfxViewShell *pNew)
const SfxItemPool & GetAttrPool() const
virtual void SetShowHeaderFooterSeparator(FrameControlType eControl, bool bShow)
void AutoCaption(const sal_uInt16 nType, const SvGlobalName *pOleId=nullptr)
bool IsBezierEditMode() const
int GetMaxOutlineLevelShown() const
void SetMaxOutlineLevelShown(int nLevel)
SwPostItMgr * GetPostItMgr()
SwDocShell * GetDocShell()
Used by the UI to modify the document model.
OUString const & GetCurPageStyle() const
bool IsSelFrameMode() const
SAL_DLLPRIVATE tools::Long SetCursorKillSel(const Point *, bool bProp)
void AutoUpdatePara(SwTextFormatColl *pColl, const SfxItemSet &rStyleSet, SwPaM *pPaM=nullptr)
void EnterSelFrameMode(const Point *pStartDrag=nullptr)
virtual void ConnectObj(svt::EmbeddedObjectRef &xIPObj, const SwRect &rPrt, const SwRect &rFrame) override
Connect objects with ActivateWhenVisible at Paint.
bool Right(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
void InsertPostIt(SwFieldMgr &rFieldMgr, const SfxRequest &rReq)
Inserts a new annotation/comment at the current cursor position / selection.
bool IsOutlineContentVisible(const size_t nPos)
bool HasFoldedOutlineContentSelected() const
void addCurrentPosition()
bool GetAttrOutlineContentVisible(const size_t nPos) const
void MakeOutlineLevelsVisible(const int nLevel)
SwWrtShell(SwWrtShell &, vcl::Window *pWin, SwView &rShell)
void InsertLineBreak(std::optional< SwLineBreakClear > oClear=std::nullopt)
void AutoUpdateFrame(SwFrameFormat *pFormat, const SfxItemSet &rStyleSet)
bool GotoFieldmark(::sw::mark::IFieldmark const *const pMark)
bool IsModePushed() const
bool Left(SwCursorSkipMode nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
virtual void CalcAndSetScale(svt::EmbeddedObjectRef &xObj, const SwRect *pFlyPrtRect=nullptr, const SwRect *pFlyFrameRect=nullptr, const bool bNoTextFramePrtAreaChanged=false) override
Client for OleObject has to be up-to-date regarding scaling.
void Insert(const OUString &)
virtual void MoveObjectIfActive(svt::EmbeddedObjectRef &xObj, const Point &rOffset) override
The layout has been changed, so the active object has to be moved after that.
SelectionType GetSelectionType() const
void InsertGraphic(const OUString &rPath, const OUString &rFilter, const Graphic &, SwFlyFrameAttrMgr *=nullptr, RndStdIds nAnchorType=RndStdIds::FLY_AT_PARA)
virtual void SetReadonlyOption(bool bSet) override
bool InsertOleObject(const svt::EmbeddedObjectRef &xObj, SwFlyFrameFormat **pFlyFrameFormat=nullptr)
SwFrameFormat * GetTableStyle(std::u16string_view rFormatName)
void SplitNode(bool bAutoFormat=false)
void InsertContentControl(SwContentControlType eType)
SwCharFormat * GetCharStyle(const OUString &rFormatName, GetStyle eCreate=GETSTYLE_NOCREATE)
virtual void ApplyViewOptions(const SwViewOption &rOpt) override
Apply ViewOptions with Start-/EndAction.
void ChgDBData(const SwDBData &SwDBData)
void NoEdit(bool bHideCursor=true)
void MakeOutlineContentVisible(const size_t nPos, bool bMakeVisible=true, bool bSetAttrOutlineVisibility=true)
void InsertByWord(const OUString &)
void MakeAllFoldedOutlineContentVisible(bool bMakeVisible=true)
SAL_DLLPRIVATE bool PopCursor(bool bUpdate, bool bSelect=false)
void InsertFootnote(const OUString &, bool bEndNote=false, bool bEdit=true)
virtual void SetShowHeaderFooterSeparator(FrameControlType eControl, bool bShow) override
virtual void InfoReadOnlyDialog(bool bAsync) const override
Selected area has readonly content.
SwNavigationMgr m_aNavigationMgr
void GotoOutline(SwOutlineNodes::size_type nIdx)
void ChangeHeaderOrFooter(std::u16string_view rStyleName, bool bHeader, bool bOn, bool bShowWarning)
bool DelRight(bool isReplaceHeuristic=false)
void InsertObject(const svt::EmbeddedObjectRef &, SvGlobalName const *pName, sal_uInt16 nSlotId=0)
void AutoCorrect(SvxAutoCorrect &rACorr, sal_Unicode cChar)
bool HasSelection() const
void InsertPageBreak(const OUString *pPageDesc=nullptr, const ::std::optional< sal_uInt16 > &rPgNum=std::nullopt)
void InvalidateOutlineContentVisibility()
virtual bool WarnSwitchToDesignModeDialog() const override
Switch to Design mode for Forms.
virtual ~SwWrtShell() override
SwTextFormatColl * GetParaStyle(const OUString &rCollName, GetStyle eCreate=GETSTYLE_NOCREATE)
tools::Long ResetSelect(const Point *, bool)
void SetPageStyle(const OUString &rCollName)
void LaunchOLEObj(sal_Int32 nVerb=css::embed::EmbedVerbs::MS_OLEVERB_PRIMARY)
void NumOrBulletOn(bool bNum)
Turns on numbering or bullets.
OUString GetSelDescr() const
virtual bool WarnHiddenSectionDialog() const override
Selected area has hidden content.
bool Pop(SwCursorShell::PopMode, ::std::optional< SwCallLink > &roLink)
const SwView & GetView() const
static UITestLogger & getInstance()
void logEvent(const EventDescription &rDescription)
static MapUnit UnoEmbed2VCLMapUnit(sal_Int32 nUnoEmbedMapUnit)
bool getUserAllowsLinkUpdate() const
void setUserAllowsLinkUpdate(bool bNew)
css::uno::Reference< css::embed::XEmbeddedObject > CreateEmbeddedObject(const css::uno::Sequence< sal_Int8 > &, OUString &, OUString const *pBaseURL=nullptr)
static css::uno::Reference< css::embed::XStorage > GetTemporaryStorage(const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >())
std::vector< Value >::size_type size_type
static bool TryRunningState(const css::uno::Reference< css::embed::XEmbeddedObject > &)
void SetGraphicStream(const css::uno::Reference< css::io::XInputStream > &xInGrStream, const OUString &rMediaType)
void UpdateReplacement(bool bUpdateOle=false)
sal_Int64 GetViewAspect() const
Size GetSize(MapMode const *pTargetMapMode) const
void Assign(const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, sal_Int64 nAspect)
const css::uno::Reference< css::embed::XEmbeddedObject > & GetObject() const
ring_container GetRingContainer()
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define FN_VIEW_META_CHARS
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
@ FlyEmbeddedPrt
Rect of PrtArea of FlyFrame.
@ FlyEmbedded
Rect of current FlyFrame.
@ Fixed
Frame cannot be moved in Var-direction.
constexpr SwTwips DFLT_HEIGHT
constexpr SwTwips DFLT_WIDTH
constexpr sal_uInt16 RES_FRMATR_BEGIN(RES_PARATR_LIST_END)
constexpr sal_uInt16 RES_CHRATR_END(46)
constexpr sal_uInt16 RES_PARATR_BEGIN(RES_TXTATR_END)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr sal_uInt16 RES_FRMATR_END(141)
constexpr sal_uInt16 RES_PARATR_END(82)
constexpr sal_uInt16 RES_CHRATR_BEGIN(HINT_BEGIN)
constexpr TypedWhichId< SwFormatContentControl > RES_TXTATR_CONTENTCONTROL(56)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
CharClass & GetAppCharClass()
Sequence< PropertyValue > aArguments
#define LINK(Instance, Class, Member)
constexpr OUStringLiteral aData
bool isTiledAnnotations()
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
bool IsDefBulletFontUserDefined()
determine if default bullet font is user defined
SvxNumberFormat::SvxNumPositionAndSpaceMode GetDefaultPositionAndSpaceMode()
sal_Unicode GetBulletChar(sal_uInt8 nLevel)
retrieve unicode of character used for the default bullet list for the given list level
const vcl::Font & GetDefBulletFont()
retrieve font used for the default bullet list characters
constexpr auto toTwips(N number, Length from)
bool checkForSelectedCustomShapes(SdrView const *pSdrView, bool bOnlyExtruded)
bool checkForSelectedFontWork(SdrView const *pSdrView)
SwTextNode * GetParaPropsNode(SwRootFrame const &rLayout, SwNode const &rNode)
SwContentNode * GetNode(SwPaM &rPam, bool &rbFirst, SwMoveFnCollection const &fnMove, bool const bInReadOnly, SwRootFrame const *const i_pLayout)
This function returns the next node in direction of search.
constexpr tools::Long constTwips_5mm
@ RES_POOLCHR_BULLET_LEVEL
Bullets.
@ RES_POOLCHR_NUM_LEVEL
Numbering symbols.
bool IsInvalidItem(const SfxPoolItem *pItem)
std::map< OUString, OUString > aParameters
Marks a position in the document model.
void Assign(const SwNode &rNd, SwNodeOffset nDelta, sal_Int32 nContentOffset=0)
These all set both nNode and nContent.
OUString SwResId(TranslateId aId)
constexpr sal_uInt8 MAXLEVEL
static bool lcl_IsAllowed(const SwWrtShell *rSh)
static bool lcl_FoldedOutlineNodeEndOfParaSplit(SwWrtShell *pThis)
static SvxAutoCorrect * lcl_IsAutoCorr()