On Tue, Sep 2, 2008 at 8:32 AM, Oliver Specht - Sun Germany - ham02 -
Hamburg <[EMAIL PROTECTED]> wrote:

Hi,

> What do you want to achieve with your code?

I have two dimensional array with some values and I want to replace
tag with these values. The purpose of "{$tl:languages}" tag is mark
top / left corner of a table and "{$tl}" tags mark where the
additional columns should start. Example - I have a text table with
following texts ...

 - A1 - "Languages\r{$tl:languages}"
 - B1 - "Level\r{$tl}"

... and my two dimensional array contains { { "English", "10" }, {
"Polish", "10" } } and the filled table should contain ...

 - A1 - "Languages\rEnglish\rPolish"
 - B1 - "Level\r10\r10"

I use XSearchable and regular expression capability to search for
{$tl:...} tags. When I found {$tl:...}, I get the TextTable, Cell,
TextTableCursor and go right to the next cell. Then I create
WordCursor and iterates through text in this cell to find {$tl} and
return text range where to place "10\r10", ...

It would be nice to use XSearchable interface in this cell, but AFAIK
I can't use XSearchable interface in css.text.Text, Cell, ...

I forgot to mention that I tested this with OO.o 2.4.1. Is there a way
how to temporarily replace break iterator? Break iterator is common
for all languages or it has different implementations / settings for
different languages?

Regards,

-- 
Robert Vojta

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to