Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Can OpenOffice::OODoc create tab stops?

by brap (Pilgrim)
on Jun 08, 2010 at 12:34 UTC ( #843651=note: print w/replies, xml ) Need Help??

in reply to Can OpenOffice::OODoc create tab stops?

The documentation for updateDefaultStyle mentions adjusting the tab stop distance. Maybe that's what you're looking for, or at least hopefully points you in the right direction?
  • Comment on Re: Can OpenOffice::OODoc create tab stops?

Replies are listed 'Best First'.
Re^2: Can OpenOffice::OODoc create tab stops?
by Anonymous Monk on Oct 12, 2012 at 15:10 UTC
    Though propably too late for the original requester, here is how I do this:
    my $tab_stops = self->getStylesRef()->createElement('<style:tab-stops> +'. '<style:tab-stop style:position="0.9839in"/>'. '<style:tab-stop style:position="1.102in"/>'. '</style:tab-stops>'); $styleStore{$styleName} = $self->getStylesRef()->createStyle($styleNam +e, #category => 'named', #namespace => ..., #type => ..., family => "paragraph", #class => ..., check => 'true', parent => $self->getStyleElement('Dashitem1'), #next => ..., properties => { 'fo:margin-left' => "0.3154in", 'fo:margin-right' => "0in", 'fo:margin-top' => "0.0201in", 'fo:margin-bottom' => "0.0193in", 'fo:text-indent' => "0in", 'style:auto-text-indent' => "false", }); my $props = $styleStore{$styleName}->selectChildElement('style:paragra +ph-properties'); $props->appendChild($tab_stops);
    Thought it might be of interest to all googlers dealing with a similar issue.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://843651]
[jedikaiti]: Hi Monks

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2018-04-19 17:53 GMT
Find Nodes?
    Voting Booth?