LibreOffice Module sw (master)  1
Classes | Typedefs | Functions
nodes.cxx File Reference
#include <stdlib.h>
#include <libxml/xmlwriter.h>
#include <osl/diagnose.h>
#include <node.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <pam.hxx>
#include <txtfld.hxx>
#include <fmtfld.hxx>
#include <numrule.hxx>
#include <ndtxt.hxx>
#include <ndnotxt.hxx>
#include <swtable.hxx>
#include <section.hxx>
#include <ddefld.hxx>
#include <swddetbl.hxx>
#include <txtatr.hxx>
#include <tox.hxx>
#include <fmtrfmrk.hxx>
#include <fmtftn.hxx>
#include <docsh.hxx>
Include dependency graph for nodes.cxx:

Go to the source code of this file.

Classes

struct  HighLevel
 

Typedefs

typedef std::vector< SwStartNode * > SwStartNodePointers
 

Functions

static sal_uInt16 HighestLevel (SwNodes &rNodes, const SwNodeRange &rRange)
 Calculate the highest level in a range. More...
 
static bool TstIdx (sal_uLong nSttIdx, sal_uLong nEndIdx, sal_uLong nStt, sal_uLong nEnd)
 
static bool lcl_HighestLevel (const SwNodePtr &rpNode, void *pPara)
 

Typedef Documentation

typedef std::vector<SwStartNode*> SwStartNodePointers

Definition at line 47 of file nodes.cxx.

Function Documentation

sal_uInt16 HighestLevel ( SwNodes rNodes,
const SwNodeRange rRange 
)
static

Calculate the highest level in a range.

Parameters
rNodesthe nodes array
rRangethe range to inspect
Returns
the highest level

Definition at line 1423 of file nodes.cxx.

References SwNodeRange::aEnd, SwNodeRange::aStart, SwNodes::ForEach(), SwNodes::GetSectionLevel(), lcl_HighestLevel(), and HighLevel::nTop.

Referenced by SwNodes::SectionUp().

static bool lcl_HighestLevel ( const SwNodePtr rpNode,
void pPara 
)
static

Definition at line 1404 of file nodes.cxx.

References SwNode::GetEndNode(), SwNode::GetStartNode(), HighLevel::nLevel, and HighLevel::nTop.

Referenced by HighestLevel().

static bool TstIdx ( sal_uLong  nSttIdx,
sal_uLong  nEndIdx,
sal_uLong  nStt,
sal_uLong  nEnd 
)
static

Definition at line 1305 of file nodes.cxx.

Referenced by SwNodes::CheckNodesRange().