Categories > [old] TbsOoo & TinyDoc >

GetBlockSource

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: SunWuKung
Date: 2006-10-26
Time: 09:35

GetBlockSource

Hi,
how could I use the GetBlockSource function when working with TBSOo?

Thx.
SWK
By: Olivier Loynet
Date: 2006-10-26
Time: 11:40

Re: GetBlockSource

Ask to Skrol29 on the forum, because this method come from tbs

http://www.tinybutstrong.com/forum.php?cat_id=1

Olivier
By: SunWuKung
Date: 2006-10-28
Time: 09:36

Re: GetBlockSource

Sorry my question wasn't clear. Its not the syntax or usage I wanted to ask but when I am using an Oo object this method is not available. Is there a way to work with an Oo file and still be able to use the GetBlockSource method?

thx
SWK
By: Olivier Loynet
Date: 2006-10-28
Time: 18:18

Re: GetBlockSource

Hi,

I've send a email to Skrol for your question on the method GetBlockSource to use it in the class

Olivier
By: Skrol29
Date: 2006-10-28
Time: 18:36

Re: GetBlockSource

Hi,

I'm surprised you say the method is not available with tbsOOo.
It should exists and work the same way as for TBS.
tbsOOo is an extend class from TBS.
By: SunWuKung
Date: 2006-10-29
Time: 11:22

Re: GetBlockSource

sorry, you are right, it does work, I tried to use it after the MergeBlock

$def_tags = true;
$x = $OOo->GetBlockSource('bd',false,$def_tags);
print $x;

returns [bd;block=w:tr][bd.itemcontent][bd.optioncontent] to me
is there a way to get back everything from <w:tr> to </w:tr>, not just the TBS block definition?