windows-nt/Source/XPSP1/NT/windows/richedit/inci/dnutils.h

39 lines
940 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef DNUTILS_DEFINED
#define DNUTILS_DEFINED
#include "lsdefs.h"
#include "plsdnode.h"
#include "objdim.h"
#include "lscbk.h"
#include "plsiocon.h"
#include "pqheap.h"
/* ROUTINES ---------------------------------------------------------------------------*/
LSERR FindListDims(PLSDNODE, PLSDNODE, OBJDIM*);
void FindListDup(PLSDNODE, LSCP, long*);
void FindListFinalPenMovement(PLSDNODE plsdnFirst, PLSDNODE plsdnLast, long *pdur, long *pdvr, long *pdvp);
LSERR DestroyDnodeList(LSCBK*, POLS, PLSIOBJCONTEXT, PLSDNODE plsdn, BOOL fDontReleaseRuns);
long DurBorderFromDnodeInside(PLSDNODE plsdn); /* IN: dnode inside borders */
BOOL FSpacesOnly(PLSDNODE plsdn, DWORD iObjText);
#define MovePointBack(ptpen, dur, dvr) \
(ptpen)->u -= (dur); \
(ptpen)->v -= (dvr);
#define GetPointBeforeDnodeFromPointAfter(pnode, ptpen) \
MovePointBack(ptpen, DurFromDnode(pnode), DvrFromDnode(pnode));
#endif /* DNUTILS_DEFINED */