1<?php 2 3define('PAGE_BREAK_AUTO' ,0); 4define('PAGE_BREAK_ALWAYS',1); 5define('PAGE_BREAK_AVOID' ,2); 6define('PAGE_BREAK_LEFT' ,3); 7define('PAGE_BREAK_RIGHT' ,4); 8 9class CSSPageBreak extends CSSPropertyStringSet { 10 function CSSPageBreak() { 11 $this->CSSPropertyStringSet(false, 12 false, 13 array('inherit' => CSS_PROPERTY_INHERIT, 14 'auto' => PAGE_BREAK_AUTO, 15 'always' => PAGE_BREAK_ALWAYS, 16 'avoid' => PAGE_BREAK_AVOID, 17 'left' => PAGE_BREAK_LEFT, 18 'right' => PAGE_BREAK_RIGHT)); 19 } 20 21 function default_value() { 22 return PAGE_BREAK_AUTO; 23 } 24} 25?>