Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

100 lines
3.5 KiB

#ifndef BREAK_DEFINED
#define BREAK_DEFINED
#include "lsdefs.h"
#include "fmtres.h"
#include "objdim.h"
#include "plssubl.h"
#include "breakrec.h"
#include "brkpos.h"
#include "brkkind.h"
#include "endres.h"
#include "plsdnode.h"
LSERR BreakGeneralCase(
PLSC, /* IN: LineServices context */
BOOL, /* fHardStop */
DWORD, /* IN: size of the output array */
BREAKREC*, /* OUT: output array of break records */
DWORD*, /* OUT:actual number of records in array*/
LSDCP*, /* OUT: dcpDepend */
LSCP*, /* OUT: cpLim */
ENDRES*, /* OUT: how line ended */
BOOL*); /* OUT fSuccessful: false means insufficient fetch */
LSERR BreakQuickCase(
PLSC, /* IN: LineServices context */
BOOL, /* fHardStop */
LSDCP*, /* OUT: dcpDepend */
LSCP*, /* OUT: cpLim */
BOOL* , /* OUT: fSuccessful? */
ENDRES*); /* OUT: how line ended */
LSERR TruncateSublineCore(
PLSSUBL, /* IN: subline context */
long, /* IN: urColumnMax */
LSCP*); /* OUT: cpTruncate */
LSERR FindPrevBreakSublineCore(
PLSSUBL, /* IN: subline context */
BOOL, /* IN: fFirstSubline */
LSCP, /* IN: truncation cp */
long, /* IN: urColumnMax */
BOOL*, /* OUT: fSuccessful? */
LSCP*, /* OUT: cpBreak */
POBJDIM, /* OUT: objdimSub up to break */
BRKPOS*); /* OUT: Before/Inside/After */
LSERR FindNextBreakSublineCore(
PLSSUBL, /* IN: subline context */
BOOL, /* IN: fFirstSubline */
LSCP, /* IN: truncation cp */
long, /* IN: urColumnMax */
BOOL*, /* OUT: fSuccessful? */
LSCP*, /* OUT: cpBreak */
POBJDIM, /* OUT: objdimSub up to break */
BRKPOS*); /* OUT: Before/Inside/After */
LSERR ForceBreakSublineCore(
PLSSUBL, /* IN: subline context */
BOOL, /* IN: fFirstSubline */
LSCP, /* IN: truncation cp */
long, /* IN: urColumnMax */
LSCP*, /* OUT: cpBreak */
POBJDIM, /* OUT: objdimSub up to break */
BRKPOS*); /* OUT: Before/Inside/After */
LSERR SetBreakSublineCore(
PLSSUBL, /* IN: subline context */
BRKKIND, /* IN: Prev/Next/Force/Imposed */
DWORD, /* IN: size of the output array */
BREAKREC*, /* OUT: output array of break records */
DWORD*); /* OUT:actual number of records in array*/
LSERR WINAPI SqueezeSublineCore(
PLSSUBL, /* IN: subline context */
long, /* IN: durTarget */
BOOL*, /* OUT: fSuccessful? */
long*); /* OUT: if nof successful,
extra dur */
LSERR GetMinDurBreaksCore (PLSC plsc, /* IN: LineServices context */
long* pdurMinInclTrail, /* OUT: min dur between breaks including trailing area */
long* pdurMinExclTrail);/* OUT: min dur between breaks excluding trailing area */
LSERR GetLineDurCore (PLSC plsc, /* IN: LineServices context */
long* pdurInclTrail, /* OUT: dur of line incl. trailing area */
long* pdurExclTrail);/* OUT: dur of line excl. trailing area */
LSERR FCanBreakBeforeNextChunkCore(PLSC plsc, /* IN: LineServices context */
PLSDNODE plsdn, /* IN: Last DNODE of the current chunk */
BOOL* pfCanBreakBeforeNextChunk); /* OUT: Can break before next chunk ? */
#endif /* BREAK_DEFINED */