Re: [dev] AutoText via API not working

2008-01-28 Thread Matthias B.
On Jan 21, 2008 6:22 PM, Oliver Brinzing [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi Matthias,

 |
 | http://qa.openoffice.org/issues/show_bug.cgi?id=85426
 | http://qa.openoffice.org/issues/show_bug.cgi?id=85427

 could you please check if one of your issues deal with

 http://qa.openoffice.org/issues/show_bug.cgi?id=73459
 http://qa.openoffice.org/issues/show_bug.cgi?id=45368
 http://qa.openoffice.org/issues/show_bug.cgi?id=45412
 http://qa.openoffice.org/issues/show_bug.cgi?id=47079


I don't see a connection and I can not confirm these issues with OOo
2.3. I tried to reproduce the first 3 issues on this list and they're
all WORKSFORME. I haven't tried the 3rd, but as a comment says the
invocation is simply wrong. In any case it's unrelated to what I'm
doing.

Matthias

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



Re: [dev] AutoText via API not working

2008-01-21 Thread Matthias B.
On Jan 17, 2008 2:23 PM, Oliver Specht - Sun Germany - ham02 - Hamburg
[EMAIL PROTECTED] wrote:

 Please file an issue.

I've filed

http://qa.openoffice.org/issues/show_bug.cgi?id=85426

and

http://qa.openoffice.org/issues/show_bug.cgi?id=85427

Matthias

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



Re: [dev] AutoText via API not working

2008-01-21 Thread Oliver Brinzing

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Matthias,

|
| http://qa.openoffice.org/issues/show_bug.cgi?id=85426
| http://qa.openoffice.org/issues/show_bug.cgi?id=85427

could you please check if one of your issues deal with

http://qa.openoffice.org/issues/show_bug.cgi?id=73459
http://qa.openoffice.org/issues/show_bug.cgi?id=45368
http://qa.openoffice.org/issues/show_bug.cgi?id=45412
http://qa.openoffice.org/issues/show_bug.cgi?id=47079

thanks

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlNTSTiyrQM/QSkURAl7eAKCPOPe2I0/NdNmhuk83Ghzb6uIRzACfcyBO
uxe8y2KkCMLaReFaFvIuLwM=
=FVCU
-END PGP SIGNATURE-

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



Re: [dev] AutoText via API not working

2008-01-17 Thread Oliver Specht - Sun Germany - ham02 - Hamburg

Hi,
Matthias B. wrote:

On Jan 16, 2008 2:53 PM, Oliver Specht [EMAIL PROTECTED] wrote:
  

Hi,
the group name contains a path index separated by '*'. If this is not
supplied then the first AutoText path is used to create the new group
file. This file is usually placed in the share layer. If your share
layer is not writeable insertNewByName() will fail. Use
autoTextContainer.insertNewByName(TempGroup1*1) instead.



Thanks. Oliver. This works. I have 2 questions however:

1) What exactly is this AutoText path you're talking about. My
Tools/Options/Paths/AutoText lists only my personal .openoffice.org
user folder. Is the shared folder implicitly prepended to this path?
  
it's listed in the path configuration 
(share/registry/org/openoffice/Office/Paths.xcu).  The first path entry 
is marked as internal and therefor not displayed in the path options 
dialog.

2) I can't see this documented in the DevGuide nor in the IDL docs. Am
I overlooking something or should I file issues for this omission?


  

Please file an issue.

Regards,
Oliver


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



[dev] AutoText via API not working

2008-01-16 Thread Matthias B.
I'm trying to create a new AutoText via API, but it doesn't work. I've
copy'n'pasted the example from the Dev Guide and it throws a
RuntimeException (with no detail message) on the call to
XAutoTextGroup.insertNewByName(). I've tried creating an AutoText via
Basic, but it has the same problem. Below is my code. You need to
create a Bookmark Test for it to work.

Can someone tell me what's the problem?

Matthias

Sub Main
  doc = ThisComponent

  autoTextContainer = createUnoService(com.sun.star.text.AutoTextContainer)
  if autoTextContainer.hasByName(TempGroup1) then
autoTextContainer.removeByName(TempGroup1)
  end if

  atgroup = autoTextContainer.insertNewByName(TempGroup1)
  range = doc.Bookmarks.getByName(Test).Anchor
  atgroup.insertNewByName(T,Test,range)

End Sub

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



[dev] AutoText via API not working

2008-01-16 Thread Matthias B.
I'm trying to create a new AutoText via API, but it doesn't work. I've
copy'n'pasted the example from the Dev Guide and it throws a
RuntimeException (with no detail message) on the call to
XAutoTextGroup.insertNewByName(). I've tried creating an AutoText via
Basic, but it has the same problem. Below is my code. You need to
create a Bookmark Test for it to work.

Can someone tell me what's the problem?

Matthias

Sub Main
  doc = ThisComponent

  autoTextContainer = createUnoService(com.sun.star.text.AutoTextContainer)
  if autoTextContainer.hasByName(TempGroup1) then
autoTextContainer.removeByName(TempGroup1)
  end if

  atgroup = autoTextContainer.insertNewByName(TempGroup1)
  range = doc.Bookmarks.getByName(Test).Anchor
  atgroup.insertNewByName(T,Test,range)

End Sub

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



Re: [dev] AutoText via API not working

2008-01-16 Thread linuxa linux
Happy New Year!  I have a project for either on a FOSS
basis or non-commercial project pricing basis  -

There are 26 etc alphabets, a to z, in
English/European languages and in OpenOffice software 
package.

Project:
1 of these alphabets needs changing from
english/european to sanskrit.  When user presses this
alphabet key on their local machine the chosen
alphabet shows as a sanskrit alphabet instead of the
english/european alphabet.
 
1:1 alteration in the alphabet - from
english/european alphabet to a sanskrit alphabet.
Instead of user having to write the content on their
local machine and then having to change one of the
alphabet through find and replace function, they now
can process  immediately. 

I need you to make the necessary changes to the
Alphabet, Menu, Dictionary, Help/FAQs.  

Could you please tell your decision urgently.

Regards,


Meeku


--- Matthias B. [EMAIL PROTECTED] wrote:

 I'm trying to create a new AutoText via API, but it
 doesn't work. I've
 copy'n'pasted the example from the Dev Guide and it
 throws a
 RuntimeException (with no detail message) on the
 call to
 XAutoTextGroup.insertNewByName(). I've tried
 creating an AutoText via
 Basic, but it has the same problem. Below is my
 code. You need to
 create a Bookmark Test for it to work.
 
 Can someone tell me what's the problem?
 
 Matthias
 
 Sub Main
   doc = ThisComponent
 
   autoTextContainer =

createUnoService(com.sun.star.text.AutoTextContainer)
   if autoTextContainer.hasByName(TempGroup1) then
 autoTextContainer.removeByName(TempGroup1)
   end if
 
   atgroup =
 autoTextContainer.insertNewByName(TempGroup1)
   range = doc.Bookmarks.getByName(Test).Anchor
   atgroup.insertNewByName(T,Test,range)
 
 End Sub
 

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



  __
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com


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



Re: [dev] AutoText via API not working

2008-01-16 Thread Matthias B.
On Jan 16, 2008 2:53 PM, Oliver Specht [EMAIL PROTECTED] wrote:
 Hi,
 the group name contains a path index separated by '*'. If this is not
 supplied then the first AutoText path is used to create the new group
 file. This file is usually placed in the share layer. If your share
 layer is not writeable insertNewByName() will fail. Use
 autoTextContainer.insertNewByName(TempGroup1*1) instead.

Thanks. Oliver. This works. I have 2 questions however:

1) What exactly is this AutoText path you're talking about. My
Tools/Options/Paths/AutoText lists only my personal .openoffice.org
user folder. Is the shared folder implicitly prepended to this path?

2) I can't see this documented in the DevGuide nor in the IDL docs. Am
I overlooking something or should I file issues for this omission?

Matthias

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