I'm sure this has been hashed out before. I've been looking through the API
site and can't find the kind of document I'm looking for, so I'm hoping for
a good pointer or two here to help me find what I need.
I was rather active on the API mailing list a few years ago, while
developing an applicat
On Saturday 31 December 2005 06:59 am, Rony G. Flatscher wrote:
> Hi Hal,
> ... cut ...
>
> >I have not yet installed 2.x.x on any of my systems, since I need to keep
> > them "pure" for testing.
>
> Hmm, how about getting a VM-software like VMWare to create sealed off
> virtual machines (VM) havin
I have a section of code that worked fine in 1.1.x and does not work in 2.x.x.
I keep getting the error:
com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported
one.
(I'd paste in code here, but it seems clear that this is a URL problem, and
not something else.)
I've been
Another upgrade question:
I have a point in my Java program where I print out a lot of files in a
directory. It would be nice to speed this process up as quickly as possible.
With OOo 1.x, I found I had problems if I didn't add a print listener.
Basically I'd do this:
Loop
Find Next
I just wanted to say thanks for the quick help and replies this past week. I
have a Java application that was using OOo 1.x and I needed to see how much
effort it would take to upgrade to 2.x (it was either that or use 1.1.5). I
thought, when the time came to actually upgrade to 2.x, that it w
On Monday 09 January 2006 02:35 am, Mathias Bauer wrote:
> Marc Santhoff wrote:
> >> It worked without any problems before, but now it isn't working. I
> >> changed the 3rd line so it would put "//" at the start of the line
> >> instead of "/" so it would change from file:/ to file:// just in case
On Monday 09 January 2006 01:12 pm, Mathias Bauer wrote:
> Hal Vaughan wrote:
> > Another upgrade question:
> >
> > I have a point in my Java program where I print out a lot of files in a
> > directory. It would be nice to speed this process up as quickly as
> >
On Monday 09 January 2006 01:42 pm, Mathias Bauer wrote:
> Hi Hal,
>
> Hal Vaughan wrote:
> > I just wanted to say thanks for the quick help and replies this past
> > week. I have a Java application that was using OOo 1.x and I needed to
> > see how much effort it would
On Tuesday 10 January 2006 08:42 am, Mathias Bauer wrote:
> Hal Vaughan wrote:
> > On Monday 09 January 2006 01:42 pm, Mathias Bauer wrote:
> >> I think you are wrong here. Especially on Windows the new installer is a
> >> big step into the right direction. And AFAIK
On Tuesday 10 January 2006 12:53 pm, Mathias Bauer wrote:
> Hal Vaughan wrote:
> > Again, while not a huge segment of the population of OOo users, it is
> > still needless to pick the version of MSI that makes it difficult for
> > them to distribute OOo. All the work the API
This isn't strictly API, but I figure it's a good place to ask.
I am using a program that installs my own application and OOo. The
problem is I need OOo 2.0 and have to be able to check any existing
instance of OOo on the target computer and see what version it is. I
know usually you can tell
On Sunday 23 April 2006 06:34, Bernard Marcelly wrote:
> Bonjour Hal Vaughan
>
> I have recently filed an issue on this problem
> <http://www.openoffice.org/issues/show_bug.cgi?id=64345>
>
> IMHO it is a defect that it is now impossible to know the exact
> version
On Sunday 23 April 2006 05:54, Hal Vaughan wrote:
...
> The one last thought is that the README files say 2.0. Can I count
> on the version numbers in README to always be compatible? In other
> words, if there is some serious bug or needed change after 2.0.2 that
> creates API comp
On Sunday 23 April 2006 17:02, Marc Santhoff wrote:
> Am Sonntag, den 23.04.2006, 11:52 -0400 schrieb Hal Vaughan:
> > On Sunday 23 April 2006 06:34, Bernard Marcelly wrote:
> > > Bonjour Hal Vaughan
> > >
> > > I have recently filed an issue on this problem
>
I asked this as part of another thread and did not get a clear answer,
so I'm hoping asking it as a specific thread will help.
I am installing my own application on computers and it needs OOo to run.
I want to be able to check the version of OOo on that system if it
exists. On Linux, that's e
On Thursday 27 April 2006 19:29, Gerrit Jasper wrote:
> Hal Vaughan wrote:
> >I asked this as part of another thread and did not get a clear
> > answer, so I'm hoping asking it as a specific thread will help.
> >
> >I am installing my own application on computer
On Friday 28 April 2006 07:58, G. Roderick Singleton wrote:
> On Thu, 2006-04-27 at 19:51 -0400, Hal Vaughan wrote:
> > On Thursday 27 April 2006 19:29, Gerrit Jasper wrote:
> > > Hal Vaughan wrote:
> > > >I asked this as part of another thread and did not get
I'm using OOo 2.0 in an Java application. When the Java program starts,
it attempts to connect with OOo. If it can't, then it runs OOo and
sets a flag to show OOo was not running when the app started. At the
end, if OOo was not running at the start, it'll send a quit command to
OOo.
I've ha
On Thursday 10 May 2007 03:12, Kay Ramme - Sun Germany - Hamburg wrote:
> Hi guys,
>
> if you are stumbling over deadlocks in OOo, it would be nice if you
> can submit issues for that, ideally with some tests to reproduce it
> and some stacktraces. If I remember correctly, there is already a
> tool
On Thursday 10 May 2007 04:24, Kay Ramme - Sun Germany - Hamburg wrote:
> Hal,
>
> Hal Vaughan wrote:
> > On Thursday 10 May 2007 03:12, Kay Ramme - Sun Germany - Hamburg
wrote:
> >> Hi guys,
> >>
> >> if you are stumbling over deadlocks in OOo, it would
On Monday 14 May 2007 04:58, Kay Ramme - Sun Germany - Hamburg wrote:
...
> > I've wondered if it might be a multiple clients issue (and here it
> > makes it hard to keep track, since we're talking about
> > server/clients and my business clients, so I'll use "client apps"
> > to refer to the non-h
I look into this every now and then. I've been searching Google for a
Java class that will print ODF files without using OpenOffice. While
this isn't a "must have" it would make some of my software I have for
my clients a little easier to deal with.
Has anyone seen a Java class or jar that wi
for Windows and Linux (and I could
control it with simple command line arguments!).
I take it that the printing issues are the same if I want to just
convert it to, say, some PDF files?
Hal
> Hal Vaughan wrote:
> > I look into this every now and then. I've been searching Google
> &
I know this isn't exactly an API issue, but it's close, it involves
config, which I tend to see as part of the API, and it's a Linux issue
and in the past (even though it was years ago) it seemed to me there
were more Linux users here who could answer questions than on other
groups.
I have a c
I hope this is a simple and quick question. I have a program I wrote in
Java to work with OpenOffice.org back while it was in version 1.0 and
1.1. At that point, doing anything with the API was quite complex.
All I have to do is:
- open a doc
- print that doc
- close the doc
- quite OOo when
On Wednesday 08 August 2007, Jim White wrote:
> Hal Vaughan wrote:
> > ...
> > Has a simpler interface for the API been set up for versions 2.0
> > and higher (or 2.2 and those to come)? Or am I better off just
> > leaving things as they are and not trying to improve
On Wednesday 08 August 2007, Juergen Schmidt wrote:
> Hal Vaughan wrote:
> > I hope this is a simple and quick question. I have a program I
> > wrote in Java to work with OpenOffice.org back while it was in
> > version 1.0 and 1.1. At that point, doing anything with the API
I'm having problems on a client's Windows XP system which leads to a
number of questions.
I haven't been closely involved in using the OOo API for a couple years.
I wrote a wrapper class to handle the functions I needed to handle,
then had to move on and have been heavily involved with the oth
Sorry to post an obnoxious "Urgent" comment in the header, but I'm
online with a client's computer through VNC and if it's at all possible
I need to resolve this problem while online.
When I wrote my Java program that interfaces with OOo, I was using
1.0.x. All I'm doing is loading a file, pri
On Monday 10 September 2007, Hal Vaughan wrote:
> Sorry to post an obnoxious "Urgent" comment in the header, but I'm
> online with a client's computer through VNC and if it's at all
> possible I need to resolve this problem while online.
>
> When I wrote my
On Monday 10 September 2007, Tobias Krais wrote:
> Hi Hal,
>
>
> [...]
>
> >> I think I've been told, and likely here, that in 2.0.x, print
> >> listeners like this are no longer necessary, but I'm having a bit
> >> of a problem searching and finding this comment and what the
> >> background is.
>
On Monday 10 September 2007, Hal Vaughan wrote:
> Sorry to post an obnoxious "Urgent" comment in the header, but I'm
> online with a client's computer through VNC and if it's at all
> possible I need to resolve this problem while online.
...
> I think I've
On Monday 10 September 2007, Tobias Krais wrote:
> Hi Hal,
>
> > I've found I *have* to have a print listener and watch for when the
> > document is done printing.
> >
> > Here's more detail on what's happening (sorry for things being
> > fragmented, but I'm under tremendous pressure to solve this)
On Tuesday 11 September 2007, Andreas Schlüns wrote:
> Hello Tobias & Hal
>
> >>> I think I've been told, and likely here, that in 2.0.x, print
> >>> listeners like this are no longer necessary, but I'm having a bit
> >>> of a problem searching and finding this comment and what the
> >>> background
On Tuesday 11 September 2007, Andreas Schlüns wrote:
> Hello Hal,
>
> >> The real problem you have ... printing is by default an
> >> asynchronous operation. And of course - if you try to dispose a
> >> document which is currently in printing state it can crash (at
> >> least it shouldnt ... but it
On Tuesday 11 September 2007, Tobias Krais wrote:
> Hi Andreas,
>
> >> So I can set a print option of "Wait" to "true" and my program
> >> will wait until the document is printed? Do I understand that
> >> properly? That would simplify several questions I've had along the
> >> way.
> >
> > It make
The problem is still going on and I thought I had the perfect solution.
I thought it was the print listener or there was a problem with an
extra thread I started that did NOTHING but watch to make sure a call
to OOo completed.
This is on a Windows XP system with 2 CPUs. (Is that part of the i
On Wednesday 12 September 2007, Andreas Schlüns wrote:
> Hello Hal Vaughan,
>
> > Oh, and I am using XCloseable.close(true) to close a document.
>
> mmm ... in my last mail I've mentioned to use close(false) .-)
> It's always better to errors on closing doc
On Wednesday 12 September 2007, Andreas Schlüns wrote:
> Hello Hal ,
>
> >>> 2) How can I keep the Document Recovery Window from popping up
> >>> and get Java to throw an error instead?
> >>
> >> You can disable the whole recovery stuff be passing an option
> >> "-norecovery" to your command line i
On Wednesday 12 September 2007, Andreas Schlüns wrote:
> Hello Hal,
>
> > Here's the weird part: On this client's computer, when I get the
> > recovery window, OOo is STILL running and if I close that window,
> > my program can still connect to OOo.
>
> You must differ between the "crash save" and
I used to have some rather advanced stuff set up in OOoBASIC, but that
was back before 2004. I have use the API from Java to do some work as
well. It's been a good while since I've delved into working with
macros and OOoBASIC. I've got a few questions. I'm not trying to get
anyone to tell m
va) can address that
allow saving or renaming or manipulating macros?
And, on that point, when I'm running OOo and use something that needs
Java, does the JVM stay loaded so if it's needed again there isn't a
delay?
Hal
On Tuesday 24 June 2008, Hal Vaughan wrote:
> I used
nd I'll let you know what I am able
to do and how it works.
Both answers are much appreciated!
Hal
On Tuesday 24 June 2008, Hal Vaughan wrote:
> I used to have some rather advanced stuff set up in OOoBASIC, but
> that was back before 2004. I have use the API from Java to do some
&g
On Wednesday 02 July 2008, Andrew Douglas Pitonyak wrote:
> I wondered if it was the same Hal :-)
Yes. Originally my plans were to do an application completely in
OOBasic, but that never worked out because I needed some functions that
weren't available, such as reliable (and preferably encrypte
On Saturday 05 July 2008, Andrew Douglas Pitonyak wrote:
> Hal Vaughan wrote:
...
> > This next part may be off because it's been so long since I've been
> > able to sit down and write in an actual word processor, so I don't
> > remember if OOo uses the ALT ke
On Saturday 05 July 2008, Andrew Douglas Pitonyak wrote:
...
> > I have wondered about using an F key instead of a key combination.
> > For example, there are some F keys that aren't used. I thought at
> > one point I had found a way to make OOo listen after a keypress.
> > In other words, I cou
I want to do a few things with a dialog from Basic other than just get
the values of some controls.
I can find references for using dialogs and objects from Java, but I
can't find the API reference for OOo Basic. My guess is that this
reference will answer all my questions.
1) I'd like to be
On Sunday 13 July 2008, Oliver Brinzing wrote:
> Hi Hal,
>
> > I want to do a few things with a dialog from Basic other than just
> > get the values of some controls.
>
> maybe this helps:
Okay, so to create an event handler for a control in a dialog, I have to
do it in the XML for the dialog its
Okay. It's in the editor, that's enough for me. It's quick, it's easy,
and I don't have to play the dual-editor game where I make changes in
one editor then have to update the version in the text editor as well.
Thanks!
Hal
> bye
> Christoph
>
> Hal
on and write my own browser routine, but for now there are other
points to work on and I'm hoping it's something overly simple that I've
missed.
On Sunday 13 July 2008, Hal Vaughan wrote:
> I want to do a few things with a dialog from Basic other than just
> get the val
I originally posted this to the General group a day ago, but the more I
think about it, the more I think people here would be more likely to
know how to deal with it. Like the one outstanding issue I'm having
with the dialog in Basic (the file browser won't browse), it looks like
this should j
On Sunday 13 July 2008, Christoph Jopp wrote:
> Hal Vaughan schrieb:
> (...)
>
> >> 3) The File Browser control doesn't open up any kind of browsing
> >> function when I click on "Browse." That would force me to type in
> >> all file paths by ha
On Sunday 13 July 2008, Christoph Jopp wrote:
> Hal Vaughan schrieb:
> > On Sunday 13 July 2008, Christoph Jopp wrote:
> >> Hal Vaughan schrieb:
> >> (...)
> >>
> >>>> 3) The File Browser control doesn't open up any kind of browsing
> >
On Sunday 13 July 2008, Marc Santhoff wrote:
> Am Sonntag, den 13.07.2008, 20:11 -0400 schrieb Hal Vaughan:
> > There is a catch, of course: I want to select a directory, not a
> > file, and it won't let me do that!
>
> So you probably want to exchange the css.ui.
On Sunday 13 July 2008, Marc Santhoff wrote:
> Am Sonntag, den 13.07.2008, 21:10 -0400 schrieb Hal Vaughan:
> > On Sunday 13 July 2008, Marc Santhoff wrote:
> > > Am Sonntag, den 13.07.2008, 20:11 -0400 schrieb Hal Vaughan:
> > > > There is a catch, of course: I w
Could someone at least verify if they're having the same trouble with
this in 2.x or 2.3?
Thanks!
Hal
On Sunday 13 July 2008, Hal Vaughan wrote:
> I originally posted this to the General group a day ago, but the more
> I think about it, the more I think people here would be more
On Monday 14 July 2008, Cor Nouws wrote:
> Hi Hal,
>
> > On Sunday 13 July 2008, Hal Vaughan wrote:
> >> I'm using OOo 2.3 on Ubuntu Linux.
> >>
> >> I have macros that change the paragraph margin indents and want
> >> them to be called fro
On Monday 14 July 2008, Marc Santhoff wrote:
> Hi Hal,
>
> Am Montag, den 14.07.2008, 15:40 -0400 schrieb Hal Vaughan:
> > I think I'm going to switch over to a different idea which involves
> > my own form of auto-text using macros. One thing I want to do is
>
On Tuesday 15 July 2008, Marc Santhoff wrote:
> Am Montag, den 14.07.2008, 23:39 -0400 schrieb Hal Vaughan:
> > I still
> > haven't figured out how to make macros document specific -- is it
> > as simple as specifying the name of the document for the storage
> &g
I recorded a macro to select text, copy it to the keyboard, then to
enter a new character. In the long run, I'm going to want a macro that
selects the character before the cursor, then reads in that character
so I can use it to compare to something else. When I'm done, I'd
delete that charact
I am close to finished with the macros I'm working on. I've created one
that makes it easy for me to start a new script -- I can never remember
things like where to put the title and the simple stuff, so this asks
me the script title and makes a new directory for it, makes a file from
a templa
A couple file related questions:
1) I'm working on Linux, but I want this to work on Windows as well.
When I concatenate a file name I have to use "/" to separate
directories. Is there a way I can specify something like
Java's "File.separator" that will be translated appropriately depending
On Thursday 17 July 2008, Andrew Douglas Pitonyak wrote:
> Hal Vaughan wrote:
> > A couple file related questions:
> >
> > 1) I'm working on Linux, but I want this to work on Windows as
> > well. When I concatenate a file name I have to use "/" to separ
I've finished the macros I've been working on. When I look
back ,they're not too complicated, but the hard part was finding out
how to do what I needed to. It was about as tough for me as learning
Java when I first started because it takes a while to get used to the
Basic API and, at least fo
I have a macro collection I've posted about before. It works like the
AutoCorrect function, but I've customized it for me. If I hit Ctrl-
Shift-T (actually Command-Shift-T since I'm now on an iMac), I get a
dialog that lets me define a key phrase and the AutoText that goes
with it. Then w
On Jun 26, 2009, at 5:28 AM, Cor Nouws wrote:
Hi Hal,
Hal Vaughan wrote (26-6-2009 8:41)
[...]
The only problem with this is if I do this at the start of a
document I end up with a null character or something instead and I
can't do a comparison on it. So is there some way, after m
On Jun 26, 2009, at 7:45 AM, Fernand Vanrie wrote:
when len(sChar) = 0 then you get the error
I had been checking for what sChar is, but kept forgetting to check
for it's length. Thanks.
I also realized I had made another goof. I intended to limit the
length of key phrases to 32 chara
;s a lot like
AutoCorrect, but I can define new key phrases and replacement texts in
a hurry and they are stored in the document, but can be exported to a
text file and imported in another document, so they are document
specific but can be transferred.
Hal
On Jun 26, 2009, at 2:41 AM,
ng, I get a good point from someone
else where I could have just checked the result of goLeft(). I may re-
write it, but that breaks a person coding rule of mine: If it ain't
broke, don't fix it. (I've spend WAY too much of my life in front of
a CRT writing code!)
Hal
Re
On Jun 27, 2009, at 5:12 AM, Bernard Marcelly wrote:
Hi Hal,
Message de Hal Vaughan date 2009-06-26 08:41 :
Sub InsertAutoMacroText
oDoc = ThisComponent
oCurs = oDoc.getCurrentController().getViewCursor()
iEnd = false
iCount = 0
Do
'Go back one character, then get
I have an OOo BASIC macro routine Screenwriting.AllScripts.CharacterName() and
it calls HalLib.AutoTextMacro.InsertAutoMacroText(). Normally there is no
problem with this, but when I first start OOo, then open the screenplay I'm
writing, and press a key that calls Screenwriting.AllScripts.Chara
On Jan 4, 2010, at 3:49 AM, Laurent Godard wrote:
> Hi
>
> may be have a look at BasicLibraries.loadLibrary
> here is a rough example
>
> Laurent
>
>
> function loadMyLib(optional pwd)
>
> if isMissing(pwd) then
> pwd = false
> endif
>
> if not BasicLibraries
This isn't exactly right under API, but it's for more advanced and programming
use, so I think this is probably the best group for these questions.
I have a small business and have been using OpenOffice in it for a while. I
generate reports for my clients with data that I process. On their com
So can I safely assume that there is no version of OOo that can run on Linux
without X Windows running at the same time?
Hal
On Jul 22, 2010, at 1:24 PM, Hal Vaughan wrote:
> This isn't exactly right under API, but it's for more advanced and
> programming use, so I think
k link for any documentation on this? I'm
not quite sure what search terms to use on the OOo website. Just "X" isn't
going to help!
And thanks! That, alone, could help me make some major changes that could make
things work MUCH better with what I'm doing.
Hal
> Ju
It seems the API list is the best place to ask this.
Without going into details, I'm creating a system I need to be able to lock
down. It'll have OpenOffice on it, but I need to restrict OOo users to loading
and saving only from one directory (or any sub directories they create). Is
this some
On Sep 24, 2010, at 1:09 PM, Hal Vaughan wrote:
> It seems the API list is the best place to ask this.
>
> Without going into details, I'm creating a system I need to be able to lock
> down. It'll have OpenOffice on it, but I need to restrict OOo users to
> lo
I haven't been using the API for a while and I'm working on a macros in OO
Basic.
>From what I remember, to add things to a sub menu, I have to do that by hand.
>Am I wrong? Is there a way, using OO Basic to add items to a sub menu?
I'm creating a sticky-note program that will let me make not
While looking through the reference, I can find info on getting and storing
text fields in a document in com.sun.star.text.FieldMaster.User, where I can
name a text field and save the data.
I don't find anything telling me if there is a limit to how long such a field
can be. I think I remember
On Jun 15, 2011, at 2:35 AM, Bernard Marcelly wrote:
> Hi,
>
> Message de Hal Vaughan date 2011-06-15 07:23 :
>>
>> While looking through the reference, I can find info on getting and storing
>> text fields in a document in com.sun.star.text.FieldMaster.User,
I've mentioned the sticky-note project I'm working on yesterday in two emails.
Now I'm running into a problem: I'd like to display a number of sticky-notes,
but to display any kind of dialog in BASIC, I need to do something like this:
oSticky = createUnoDialog(DialogLibraries.HalLib.Stic
I kind of had to drop the idea of displaying the note titles in the menu for a
number of reasons.
Thanks, anyway!
Hal
On Jun 15, 2011, at 2:10 PM, Oliver Brinzing wrote:
> Hi Hal,
>
>> From what I remember, to add things to a sub menu, I have to do that by
>> hand.
>> Am I wrong? Is the
On Jun 16, 2011, at 3:30 AM, Fernand Vanrie wrote:
> Hal ,
>
> Y ou can set a Dialogcontrol visible or not , but we need a timeloop to keep
> it visible
Am I right, then, in assuming that the time loop is there because once that
particular instance of the script terminates, the dialog automat
This leads to a couple other questions:
1) On the CloseDialog() subroutine, if I want to execute it from a button in
the dialog, how can I pass the dialog itself to the routine?
2) Is there any way to run a macro when the "X" on the title bar of the dialog
is clicked?
Thanks!
Hal
On Jun 16
On Jun 16, 2011, at 4:59 AM, Fernand Vanrie wrote:
> On 16/06/2011 10:20, Hal Vaughan wrote:
>> This leads to a couple other questions:
>>
>> 1) On the CloseDialog() subroutine, if I want to execute it from a button in
>> the dialog, how can I pass the dialog itsel
ntObject.source.context is the DialogControl
>
>
>
> oDialogControl = oEvent.source.context
>> On Jun 16, 2011, at 4:59 AM, Fernand Vanrie wrote:
>>
>>> On 16/06/2011 10:20, Hal Vaughan wrote:
>>>> This leads to a couple other questions:
>>&
I've been using this macro for a good while:
sub CharacterName
Dim oDoc As Object
Dim oDispatch As Object
BasicLibraries.LoadLibrary("HalLib")
HalLib.AutoTextMacro.InsertAutoMacroText()
Margin4()
' MsgBox "Debug 1"
oDoc = ThisComponent.Curren
Is there any way, in OOo BASIC, to create something like a vector or linked
list or anything that gives me something like an array that I can keep adding
elements to? (Everything I found with an array indicated it has to be declared
with a set number of members.)
Thanks!
Hal--
---
> On Saturday 18 June 2011, 23:35, Hal Vaughan wrote:
>> Is there any way, in OOo BASIC, to create something like a vector or linked
>> list or anything that gives me something like an array that I can keep
>> adding elements to? (Everything I found with an array indicated it
89 matches
Mail list logo