function show(&$driver)
 {
     // Now set the baseline of a button box to align it vertically when flowing isude the
     // text line
     $this->default_baseline = $this->content[0]->baseline + $this->get_extra_top();
     $this->baseline = $this->content[0]->baseline + $this->get_extra_top();
     /**
      * If we're rendering the interactive form, the field content should not be rendered
      */
     global $g_config;
     if ($g_config['renderforms']) {
         /**
          * Render background/borders only
          */
         $status = GenericFormattedBox::show($driver);
         /**
          * @todo encoding name?
          * @todo font name?
          * @todo check if font is embedded for PDFLIB
          */
         $driver->field_text($this->get_left_padding(), $this->get_top_padding(), $this->get_width() + $this->get_padding_left() + $this->get_padding_right(), $this->get_height(), $this->_value, $this->_field_name);
     } else {
         /**
          * Render everything, including content
          */
         $status = GenericContainerBox::show($driver);
     }
     return $status;
 }
 function show_rendered(&$driver)
 {
     // Now set the baseline of a button box to align it vertically when flowing isude the
     // text line
     $this->default_baseline = $this->content[0]->baseline + $this->get_extra_top();
     $this->baseline = $this->content[0]->baseline + $this->get_extra_top();
     if (is_null(GenericContainerBox::show($driver))) {
         return null;
     }
     $button_height = $this->get_height() + $this->padding->top->value + $this->padding->bottom->value;
     // Show arrow button box
     $driver->setrgbcolor(0.93, 0.93, 0.93);
     $driver->moveto($this->get_right_padding(), $this->get_top_padding());
     $driver->lineto($this->get_right_padding() - $button_height, $this->get_top_padding());
     $driver->lineto($this->get_right_padding() - $button_height, $this->get_bottom_padding());
     $driver->lineto($this->get_right_padding(), $this->get_bottom_padding());
     $driver->closepath();
     $driver->fill();
     // Show box boundary
     $driver->setrgbcolor(0, 0, 0);
     $driver->moveto($this->get_right_padding(), $this->get_top_padding());
     $driver->lineto($this->get_right_padding() - $button_height, $this->get_top_padding());
     $driver->lineto($this->get_right_padding() - $button_height, $this->get_bottom_padding());
     $driver->lineto($this->get_right_padding(), $this->get_bottom_padding());
     $driver->closepath();
     $driver->stroke();
     // Show arrow
     $driver->setrgbcolor(0, 0, 0);
     $driver->moveto($this->get_right_padding() - SELECT_BUTTON_TRIANGLE_PADDING, $this->get_top_padding() - SELECT_BUTTON_TRIANGLE_PADDING);
     $driver->lineto($this->get_right_padding() - $button_height + SELECT_BUTTON_TRIANGLE_PADDING, $this->get_top_padding() - SELECT_BUTTON_TRIANGLE_PADDING);
     $driver->lineto($this->get_right_padding() - $button_height / 2, $this->get_bottom_padding() + SELECT_BUTTON_TRIANGLE_PADDING);
     $driver->closepath();
     $driver->fill();
     return true;
 }
 function show(&$viewport)
 {
     // Now set the baseline of a button box to align it vertically when flowing isude the
     // text line
     $this->default_baseline = $this->content[0]->baseline + $this->get_extra_top();
     $this->baseline = $this->content[0]->baseline + $this->get_extra_top();
     return GenericContainerBox::show($viewport);
 }
Exemple #4
0
 function show_rendered(&$driver)
 {
     // Now set the baseline of a button box to align it vertically when flowing isude the
     // text line
     $this->default_baseline = $this->content[0]->baseline + $this->get_extra_top();
     $this->baseline = $this->content[0]->baseline + $this->get_extra_top();
     if (is_null(GenericContainerBox::show($driver))) {
         return null;
     }
     $this->show_button($driver);
     return true;
 }
 function show(&$driver)
 {
     /**
      * If we're rendering the interactive form, the field content should not be rendered
      */
     global $g_config;
     if ($g_config['renderforms']) {
         $status = GenericFormattedBox::show($driver);
         $driver->field_multiline_text($this->get_left_padding(), $this->get_top_padding(), $this->get_width() + $this->get_padding_left() + $this->get_padding_right(), $this->get_height() + $this->get_padding_top() + $this->get_padding_bottom(), $this->_value, $this->_field_name);
     } else {
         $status = GenericContainerBox::show($driver);
     }
     return $status;
 }
Exemple #6
0
 function show_postponed(&$driver)
 {
     return parent::show($driver);
 }
Exemple #7
0
 function show(&$driver)
 {
     // draw generic box
     return GenericContainerBox::show($driver);
 }
 function show(&$driver)
 {
     $this->offset(0, $driver->offset);
     parent::show($driver);
 }
Exemple #9
0
 /**
  * Render the button using the specified output driver
  * 
  * @param OutputDriver $driver The output driver object
  * 
  * @return boolean flag indicating an error (null value) or success (true)
  */
 function show(&$driver)
 {
     /**
      * Set the baseline of a button box so that the button text will be aligned with 
      * the line box baseline
      */
     $this->default_baseline = $this->content[0]->baseline + $this->get_extra_top();
     $this->baseline = $this->content[0]->baseline + $this->get_extra_top();
     /**
      * Render the interactive button (if requested and possible)
      */
     if ($GLOBALS['g_config']['renderforms']) {
         $status = GenericContainerBox::show($driver);
         $this->_render_field($driver);
     } else {
         $status = GenericContainerBox::show($driver);
     }
     return $status;
 }