LibreOffice Module sw (master)  1
Macros | Functions
docnew.cxx File Reference
#include <config_features.h>
#include <unordered_set>
#include <doc.hxx>
#include <proofreadingiterator.hxx>
#include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/random.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/XmlIdRegistry.hxx>
#include <sal/log.hxx>
#include <sfx2/linkmgr.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/lrspitem.hxx>
#include <svl/zforlist.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 <IGrammarContact.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 <numrule.hxx>
#include <sfx2/Metadatable.hxx>
#include <fmtmeta.hxx>
#include <svx/xfillit0.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() - 2)
 
#define CNTNT_IDX(idx)   ((idx).GetNode().GetIndex() - GetNodes().GetEndOfExtras().GetIndex() - 1)
 

Functions

static void lcl_DelFormatIndices (SwFormat const *pFormat)
 
IGrammarContactgetGrammarContact (const SwTextNode &rTextNode)
 getGrammarContact() delivers the grammar contact of the document (for a given textnode) More...
 
static OUString lcl_FindUniqueName (SwWrtShell *pTargetShell, const OUString &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)
 

Macro Definition Documentation

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

Definition at line 852 of file docnew.cxx.

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

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

Definition at line 854 of file docnew.cxx.

Referenced by SwDoc::AppendDoc().

Function Documentation

IGrammarContact* getGrammarContact ( const SwTextNode )

getGrammarContact() delivers the grammar contact of the document (for a given textnode)

Returns
grammar contact

Definition at line 774 of file docnew.cxx.

References SwNode::GetDoc(), SwDoc::getGrammarContact(), and SwDoc::IsInDtor().

Referenced by SwXTextMarkup::commitMultiTextMarkup(), SwXTextMarkup::commitStringMarkup(), finishGrammarCheck(), and lcl_SetWrong().

static void lcl_CopyFollowPageDesc ( SwWrtShell rTargetShell,
const SwPageDesc rSourcePageDesc,
const SwPageDesc rTargetPageDesc,
const sal_uLong  nDocNo 
)
static
static void lcl_DelFormatIndices ( SwFormat const *  pFormat)
static
static OUString lcl_FindUniqueName ( SwWrtShell pTargetShell,
const OUString &  rStartingPageDesc,
sal_uLong  nDocNo 
)
static

Definition at line 900 of file docnew.cxx.

References SwFEShell::FindPageDescByName().

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

static bool lcl_PageDescOrFollowContainsHeaderFooter ( const SwPageDesc rPageDesc)
static

Returns whether the passed SwPageDesc& or any of its (transitive) follows contains a header or footer.

Definition at line 914 of file docnew.cxx.

References SwPageDesc::GetFollow(), SwFormat::GetFooter(), SwFormat::GetHeader(), SwPageDesc::GetMaster(), SwFormatHeader::IsActive(), and SwFormatFooter::IsActive().

Referenced by SwDoc::AppendDoc().