[api-dev] Re: Learning macros: thanks to all

2008-02-15 Thread Jonathan Kaye
Paolo Mantovani wrote: > > Jonathan Kaye ha scritto: >> Hi all, >> Thanks to the excellent advice I've received I now have (I believe) a >> working and bug free macro. One difficult (for me) piece of it was a >> macro called "cutspace" which scans a string until it finds either a >> fullstop or a

Re: [api-dev] Re: looking for DecimalSeparator in OOoBasic

2008-02-15 Thread Cor Nouws
Hi Andreas & Paolo, Thanks a lot. Now I've three methods! Regards, Cor Andreas Saeger wrote (15-2-2008 12:35) Just found a Basic library: -- "The Year of 3" -2008- "Het jaar van 3" Cor Nouws Arnhem - Netherlands - nl.OpenOffice.org - marketing contact

Re: [api-dev] full name of autotext?

2008-02-15 Thread Cor Nouws
Oliver Specht - Sun Germany - ham02 - Hamburg wrote (15-2-2008 13:38) the XAutoTextGroup has a method getTitles() that returns the full names of all entries of the group in the same order as the getElementNames() does for the short names. Thanks Oliver! -- "The Year of 3" -2008- "Het jaar v

Re: [api-dev] full name of autotext?

2008-02-15 Thread Oliver Specht - Sun Germany - ham02 - Hamburg
Cor Nouws wrote: Hi, Am I right if the API only supports the short name of autotext and not the full name? The short name is Shortcut in the UI, and retrieved via ElementNames of the autotextcategory in the API. The full name is Name in the UI. Hi, the XAutoTextGroup has a method getTitles

[api-dev] Re: looking for DecimalSeparator in OOoBasic

2008-02-15 Thread Andreas Saeger
Just found a Basic library: REM * BASIC * Option Explicit Sub test_CurrentLocaleItem Dim sVal$, srv, loc, oLI GlobalScope.BasicLibraries.loadLibrary("myTools") sVal = getOOoSetupValue("/org.openoffice.Setup/L10N","ooLocale") srv = createUnoService("com.sun.star.i18n.Loca

Re: [api-dev] looking for DecimalSeparator in OOoBasic

2008-02-15 Thread Paolo Mantovani
Hi Cor, Cor Nouws ha scritto: > Hi, > > I know how to get the OOoLocale and DecimalSeparatorAsLocale [1], but > I'm looking for the decimal separator itself. > I know I should get XLocaleData, but the dev guide [2] says "No further > functionality is discussed." Cannot find it elsewhere. The fol

[api-dev] Re: looking for DecimalSeparator in OOoBasic

2008-02-15 Thread Andreas Saeger
Since you try with Basic: Option Explicit REM (dot and comma) or (comma and dot) in most cases: Dim sThousandSeparator$, sDecimalSeparator$ Sub setSeparators() Dim sTest$ 'get thousands- and decimal separators from constant test value: sTest = format(1234567.8, "Standard")

Re: [api-dev] Learning macros: thanks to all

2008-02-15 Thread Paolo Mantovani
Jonathan Kaye ha scritto: > Hi all, > Thanks to the excellent advice I've received I now have (I believe) a > working and bug free macro. One difficult (for me) piece of it was a macro > called "cutspace" which scans a string until it finds either a fullstop or > a space (let's call it a chunk) an

[api-dev] full name of autotext?

2008-02-15 Thread Cor Nouws
Hi, Am I right if the API only supports the short name of autotext and not the full name? The short name is Shortcut in the UI, and retrieved via ElementNames of the autotextcategory in the API. The full name is Name in the UI. Thanks, Cor -- "The Year of 3" -2008- "Het jaar van 3" Cor N