LibreOffice Module sw (master) 1
Functions
ednumber.cxx File Reference
#include <editsh.hxx>
#include <edimp.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentState.hxx>
#include <ndtxt.hxx>
#include <txtfrm.hxx>
#include <swundo.hxx>
#include <numrule.hxx>
#include <osl/diagnose.h>
Include dependency graph for ednumber.cxx:

Go to the source code of this file.

Functions

static bool lcl_IsOutlineMoveAndCopyable (SwEditShell const &rShell, SwOutlineNodes::size_type const nIdx, bool const bCopy)
 Test whether outline may be moved (bCopy == false) or copied (bCopy == true) Verify these conditions: 1) outline must be within main body (and not in redline) 2) outline must not be within table 3) if bCopy is set, outline must not be write protected. More...
 

Function Documentation

◆ lcl_IsOutlineMoveAndCopyable()

static bool lcl_IsOutlineMoveAndCopyable ( SwEditShell const &  rShell,
SwOutlineNodes::size_type const  nIdx,
bool const  bCopy 
)
static

Test whether outline may be moved (bCopy == false) or copied (bCopy == true) Verify these conditions: 1) outline must be within main body (and not in redline) 2) outline must not be within table 3) if bCopy is set, outline must not be write protected.

Definition at line 611 of file ednumber.cxx.

References SwNode::FindTableNode(), SwViewShell::GetDoc(), SwNodes::GetEndOfExtras(), SwNode::GetIndex(), SwViewShell::GetLayout(), SwDoc::GetNodes(), SwNodes::GetOutLineNds(), SwNode::GetTextNode(), sw::IsParaPropsNode(), and SwNode::IsProtect().

Referenced by SwEditShell::IsOutlineCopyable(), and SwEditShell::IsOutlineMovable().