LibreOffice Module sw (master) 1
Macros | Functions | Variables
docnew.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <config_features.h>
#include <config_fuzzers.h>
#include <o3tl/sorted_vector.hxx>
#include <doc.hxx>
#include <proofreadingiterator.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/random.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/XmlIdRegistry.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <sfx2/linkmgr.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/lrspitem.hxx>
#include <svl/numformat.hxx>
#include <unotools/lingucfg.hxx>
#include <svx/svdpage.hxx>
#include <fmtcntnt.hxx>
#include <fmtanchr.hxx>
#include <fmtfsize.hxx>
#include <fmtfordr.hxx>
#include <fmtpdsc.hxx>
#include <pvprtdat.hxx>
#include <rootfrm.hxx>
#include <pagedesc.hxx>
#include <ndtxt.hxx>
#include <ftninfo.hxx>
#include <ftnidx.hxx>
#include <charfmt.hxx>
#include <frmfmt.hxx>
#include <poolfmt.hxx>
#include <dbmgr.hxx>
#include <docsh.hxx>
#include <acorrect.hxx>
#include <visiturl.hxx>
#include <docary.hxx>
#include <lineinfo.hxx>
#include <drawdoc.hxx>
#include <extinput.hxx>
#include <viewsh.hxx>
#include <doctxm.hxx>
#include <shellres.hxx>
#include <laycache.hxx>
#include <mvsave.hxx>
#include <istyleaccess.hxx>
#include "swstylemanager.hxx"
#include <GrammarContact.hxx>
#include <OnlineAccessibilityCheck.hxx>
#include <tblafmt.hxx>
#include <MarkManager.hxx>
#include <UndoManager.hxx>
#include <DocumentDeviceManager.hxx>
#include <DocumentSettingManager.hxx>
#include <DocumentDrawModelManager.hxx>
#include <DocumentChartDataProviderManager.hxx>
#include <DocumentTimerManager.hxx>
#include <DocumentLinksAdministrationManager.hxx>
#include <DocumentListItemsManager.hxx>
#include <DocumentListsManager.hxx>
#include <DocumentOutlineNodesManager.hxx>
#include <DocumentContentOperationsManager.hxx>
#include <DocumentRedlineManager.hxx>
#include <DocumentFieldsManager.hxx>
#include <DocumentStatisticsManager.hxx>
#include <DocumentStateManager.hxx>
#include <DocumentLayoutManager.hxx>
#include <DocumentStylePoolManager.hxx>
#include <DocumentExternalDataManager.hxx>
#include <wrtsh.hxx>
#include <unocrsr.hxx>
#include <fmthdft.hxx>
#include <frameformats.hxx>
#include <numrule.hxx>
#include <sfx2/Metadatable.hxx>
#include <fmtmeta.hxx>
#include <textcontentcontrol.hxx>
#include <svx/xfillit0.hxx>
#include <unotools/configmgr.hxx>
#include <i18nlangtag/mslangid.hxx>
Include dependency graph for docnew.cxx:

Go to the source code of this file.

Macros

#define CNTNT_DOC(doc)    ((doc)->GetNodes().GetEndOfContent().GetIndex() - (doc)->GetNodes().GetEndOfExtras().GetIndex() - SwNodeOffset(2))
 
#define CNTNT_IDX(idx)    ((idx).GetNode().GetIndex() - GetNodes().GetEndOfExtras().GetIndex() - 1)
 

Functions

static void lcl_DelFormatIndices (SwFormat const *pFormat)
 
static OUString lcl_FindUniqueName (SwWrtShell *pTargetShell, std::u16string_view rStartingPageDesc, sal_uLong nDocNo)
 
static bool lcl_PageDescOrFollowContainsHeaderFooter (const SwPageDesc &rPageDesc)
 Returns whether the passed SwPageDesc& or any of its (transitive) follows contains a header or footer. More...
 
static void lcl_CopyFollowPageDesc (SwWrtShell &rTargetShell, const SwPageDesc &rSourcePageDesc, const SwPageDesc &rTargetPageDesc, const sal_uLong nDocNo)
 

Variables

constexpr OUStringLiteral DEFAULT_CHAR_FORMAT_NAME = u"Character style"
 

Macro Definition Documentation

◆ CNTNT_DOC

#define CNTNT_DOC (   doc)     ((doc)->GetNodes().GetEndOfContent().GetIndex() - (doc)->GetNodes().GetEndOfExtras().GetIndex() - SwNodeOffset(2))

Definition at line 887 of file docnew.cxx.

◆ CNTNT_IDX

#define CNTNT_IDX (   idx)     ((idx).GetNode().GetIndex() - GetNodes().GetEndOfExtras().GetIndex() - 1)

Definition at line 889 of file docnew.cxx.

Function Documentation

◆ lcl_CopyFollowPageDesc()

static void lcl_CopyFollowPageDesc ( SwWrtShell rTargetShell,
const SwPageDesc rSourcePageDesc,
const SwPageDesc rTargetPageDesc,
const sal_uLong  nDocNo 
)
static

◆ lcl_DelFormatIndices()

static void lcl_DelFormatIndices ( SwFormat const *  pFormat)
static

◆ lcl_FindUniqueName()

static OUString lcl_FindUniqueName ( SwWrtShell pTargetShell,
std::u16string_view  rStartingPageDesc,
sal_uLong  nDocNo 
)
static

Definition at line 943 of file docnew.cxx.

References SwFEShell::FindPageDescByName().

Referenced by SwDoc::AppendDoc(), and lcl_CopyFollowPageDesc().

◆ lcl_PageDescOrFollowContainsHeaderFooter()

static bool lcl_PageDescOrFollowContainsHeaderFooter ( const SwPageDesc rPageDesc)
static

Variable Documentation

◆ DEFAULT_CHAR_FORMAT_NAME

constexpr OUStringLiteral DEFAULT_CHAR_FORMAT_NAME = u"Character style"
constexpr

Definition at line 118 of file docnew.cxx.