Exemple #1
0
 /**
  * Create a new Style_Border
  */
 public function __construct($isSupervisor = false)
 {
     // Supervisor?
     $this->_isSupervisor = $isSupervisor;
     // Initialise values
     $this->_borderStyle = Style_Border::BORDER_NONE;
     $this->_color = new Style_Color(Style_Color::COLOR_BLACK, $isSupervisor);
     // bind parent if we are a supervisor
     if ($isSupervisor) {
         $this->_color->bindParent($this, '_color');
     }
 }
Exemple #2
0
 /**
  * Create a new Style_Fill
  */
 public function __construct($isSupervisor = false)
 {
     // Supervisor?
     $this->_isSupervisor = $isSupervisor;
     // Initialise values
     $this->_fillType = Style_Fill::FILL_NONE;
     $this->_rotation = 0;
     $this->_startColor = new Style_Color(Style_Color::COLOR_WHITE, $isSupervisor);
     $this->_endColor = new Style_Color(Style_Color::COLOR_BLACK, $isSupervisor);
     // bind parent if we are a supervisor
     if ($isSupervisor) {
         $this->_startColor->bindParent($this, '_startColor');
         $this->_endColor->bindParent($this, '_endColor');
     }
 }
Exemple #3
0
 /**
  * Create a new Style_Font
  */
 public function __construct($isSupervisor = false)
 {
     // Supervisor?
     $this->_isSupervisor = $isSupervisor;
     // Initialise values
     $this->_name = 'Calibri';
     $this->_size = 11;
     $this->_bold = false;
     $this->_italic = false;
     $this->_superScript = false;
     $this->_subScript = false;
     $this->_underline = Style_Font::UNDERLINE_NONE;
     $this->_strikethrough = false;
     $this->_color = new Style_Color(Style_Color::COLOR_BLACK, $isSupervisor);
     // bind parent if we are a supervisor
     if ($isSupervisor) {
         $this->_color->bindParent($this, '_color');
     }
 }