OpenOffice-OODoc - Trouble while trying to update Textbox style for an odp file

Posted on Mon Aug 11 11:38:14 2008 by yvan137
Trouble while trying to update Textbox style for an odp file
Hello everybody, I use an odp template in which I have saved some Graphics styles I use to create TextBoxes : $content = ooDocument (.... member => "content"): $styles = ooDocument (.... member => "styles"): $slide = $content->getDrawPage(1); content->createTextBox ( name => "Title slide", attachment => $slide, size => '25.5cm, 2cm', position => '0cm, 0cm', style => 'Slide title', content => "blah blah blah" ) But when I try to update one of the styles I have created, it doesn't work. Here I try to change th +e background color of the textboxes associated with the style 'Slide title' : $styles->updateStyle ( "Slide title", properties => { 'fo:background-color' => '#ff0000' } ); I thought that maybe it doesn't work with this option because 'Slide title' is a Graphics style but + when I try to change for example draw luminance ('draw:luminance' => '100%') it doesn't work too. So my question is : how can I update the background color (fill color of the box) of an existing Gr +aphics style (used to create textboxes) in an odp template ?
Write a response