Description
Test if all the texts and pictures in the current layer are 'ready': fitting, not dummy, in a specified workstate etc.
Returns EOK if everything is ok or if the user confirmed, ECANCELLED otherwise
Syntax
Page.LayerTest (int1, lng2, lng3, lng4) |
int1
prompting: 0=no prompt, 1=display the list of 'offending' elements, 2=display the list and allow the user to proceed
lng2
bit-field that specifies which conditions are required
lng3
required workstate id for texts
lng4
required workstate id for pictures
Remarks
Tests are numbered as:
1=fitting text, 2=text in the specified workstate, 4=text not in use, 8=no dummy pictures, 16=no pictures to update, 32=pictures in the specified workstate, 64=no empty frames, 128=fitting local text, 256=All the layers must be visible, 512=objects in basket with no view privilege for user, 1024=overlapping elements of different layers , 2048=texts with justification errors, 4096=check for overfull lines in text, 8192=check for paragraph with more or less lines than specified in the format, 16384=check if elements on page (not the carbon copy ones) are of the right spot color, if defined for that page/half-page, 32768=check if pictures on page contains spot colors that are not defined as colors for the current title. This check is useful only if the preference 'Ignore spot colors in EPS pictures' is set; 65536=check overlaps on the same layer; 131072=check for picture placeholders
To enable more tests at once, sum the numbers, e.g 2049 means 1+2048, e.g. it tests for fitting texts and for text with justification errors.
To enable all tests, specify -1.
Context
Page designer
All layers related commands
GetCurLayer, GetLayerId, GetLayerLockLevel, GetLayerName, GetLayersCount,GetLayerTypeId, GetLayerUserId, GetLayerUserName
IsLayerChecked, IsLayerFrozen, IsLayerListChecked, IsLayerLocked, IsLayerVisible
LayerAdd, LayerDelete, LayerEditDlg, LayerJumpTo, LayerListToggleCheck, LayerMerge, LayerNoJumpTo, LayerRecover, LayersCopyContent, LayerSelect, LayerSelectIdName, LayerTest, LayerToBack, LayerToFront, LayerToggleCheck, LayerToggleFreeze, LayerToggleLock, LayerToggleVisible