[dev] How to implement "Exchange Databases" function

2005-05-13 Thread Matthias Benkmann
may help me. I also have the OO sources lying around, so if that could be helpful I'd take a look at the C++ implementation of Exchange Database... if someone tells me where I can find it. Matthias Benkmann - To unsubscri

Re: [dev] How to make OO update table list

2005-05-17 Thread Matthias Benkmann
Hallo Frank, thanks for your help so far. > There might be a somewhat cumbersome and pretty roundabout way if you > want to refresh the data source browser's content (the DSB is the thing > you get view "View->Data Sources"). I.e., if you know that the users are > seeing the data source in a DSB,

[dev] data source not XStorable

2005-06-10 Thread Matthias Benkmann
I'm trying to get the example from the Developer's Guide section 12.2.2 DataSources for adding a new data source to work: XSingleServiceFactory xFac = (XSingleServiceFactory)UnoRuntime.queryInterface( XSingleServiceFactory.class, _rMSF.createInstance("com.sun.star.sdb.DatabaseContext")

Re: [dev] data source not XStorable

2005-06-13 Thread Matthias Benkmann
On 6/10/05, Frank Schönheit - Sun Microsystems Germa ny <[EMAIL PROTECTED]> wrote: > query the data source for XDocumentDataSource, and call its > getDatabaseDocument method. The object returned there is the one > implementing the XStorable. Thank you. That worked. Matthias -

[dev] How to open Data Source Browser

2005-07-06 Thread Matthias Benkmann
I'd like to open the DSB from a script. However, all code I could find (including the code created by recording a macro for the "F4" key) toggles it between on and off. But I want to turn it on unconditionally, i.e. if it is already open it should STAY open and not close again. Thanks for your hel

Re: [dev] How to open Data Source Browser

2005-07-08 Thread Matthias Benkmann
Hi Frank, thanks again for your help. For the archives, here's the working code to open the DSB: Sub openDSB() doc = ThisComponent frame = doc.getCurrentController().getFrame() urlTransformer = createUnoService("com.sun.star.util.URLTransformer") Dim url as new com.sun.star.util.URL ur

[dev] How to restrict local database registration

2005-07-18 Thread Matthias Benkmann
For policy reasons I need to prevent end-users from registering local databases (i.e. databases stored on the local hard disk) in OpenOffice via the GUI. Does someone have an idea how to do this while retaining the ability to register local databases via UNO calls? Matthias --

[dev] How to keep users away from Base

2005-07-19 Thread Matthias Benkmann
isable the Base GUI completely? Any other ideas how I can make life more difficult for users who want to use the Base GUI? Matthias Benkmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] How to keep users away from Base

2005-07-20 Thread Matthias Benkmann
Hallo Frank, > For now, this basically only implies that the "New database" entries are > removed from various places, including the ones you mentioned. > Additionally, the data source browser (F4) is removed, I've just tested m118 without Base and I like the feature set. I especially like the re

Re: [dev] How to keep users away from Base

2005-07-21 Thread Matthias Benkmann
On 7/21/05, Frank Schönheit - Sun Microsystems Germa ny <[EMAIL PROTECTED]> wrote: > Hi Matthias, > > >>One could manually de-register certain UNO services, so that certain > >>functionality becomes unavailable. > > > > How do I do that? > > The following snippet exemplarily disables the query de

[dev] function sequence error on moveToInsertRow

2005-07-23 Thread Matthias Benkmann
The following code gives me a "Function sequence error" SQLException on the moveToInsertRow() statement. I have no idea why. AFAICT I'm doing things exactly as described in the Developer's Guide. databaseContext = createUnoService("com.sun.star.sdb.DatabaseContext") datasource = databaseContex

[dev] How to de-activate calling-home functions?

2005-07-26 Thread Matthias Benkmann
er to cause registration data to be sent back to openoffice.org. Is this possible? Matthias Benkmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] How to de-activate calling-home functions?

2005-07-26 Thread Matthias Benkmann
On 7/26/05, Jürgen Schmidt <[EMAIL PROTECTED]> wrote: > > i understand your requirement and would like to ask if you plan to > provide this information to openoffice on a different way. If a problem happens often enough for users to complain loudly it may eventually end up as a bug report. Aside f

[dev] Changing cell values from custom sheet function

2005-07-26 Thread Matthias Benkmann
It seems that when I use a custom Basic function in a cell formula, during the executing of this function, I can't write to any cells. Statements such as ThisComponent.Sheets.getByIndex(0).getCellByPosition(4,1).setValue(33) are silently ignored. Why does this happen? Is there a way around it? I'

[dev] Speeding up generation of Calc document

2005-08-21 Thread Matthias Benkmann
Hi, I need to create a large Calc document from scratch via UNO. Calling setFormula() for all the cells is pretty slow (about 1.5ms per Cell on my 2800MHz computer). By introducing un/lockControllers() calls I've managed to reduce the time to about 0.5ms, but when generating a large document this

[dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-08-30 Thread Matthias Benkmann
I'd like to know if the new "programmatic control of menu and toolbar items" feature will allow me to create a custom ComboBox in a toolbar. Thanks. Matthias

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-08-31 Thread Matthias Benkmann
On 8/31/05, Carsten Driesner <[EMAIL PROTECTED]> wrote: > > > If you want to try the hard way, please let me know and I will give a > summary how you can do it. > > That would be great as I'm currently evaluating different implementation options for one of our projects. Matthias

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-09-02 Thread Matthias Benkmann
Hi Carsten, thanks for the info. Pretty complicated but I think I'll at least give it a try. These are the first steps to add a custom combo box into a toolbar. You > should adapt an add-on example from the SDK, so don't have to start from > the scratch. > Do you have any specific example(s) i

[dev] Strange Bug in StarBasic? Function returning null instead of empty

2005-09-02 Thread Matthias Benkmann
I have a problem with a recursive function in one of my macros. The function is supposed to either return an array of strings or Empty (in case there's not enough input data). However, under some circumstances the function mysteriously returns Object/Null instead of Variant/Empty. I'd like to kn

[dev] What is OnCopyTo(Done)

2005-09-05 Thread Matthias Benkmann
I can't find information on the OnCopyTo(Done) events that I'm receiving on my TextDocuments. What are they? Matthias

[dev] How to make DisableCommandsTest.java disable Tools/Macros?

2005-09-05 Thread Matthias Benkmann
I'm trying to change the DisableCommandsTest.java example to disable the Tools/Macros submenu, but I can't find the command name for it. The Macro Recorder is no help as it can't record the opening of a submenu. Is it at all possible to disable a submenu entry with the code from DisableCommands

[dev] How to add a button to a newly created toolbar?

2005-09-05 Thread Matthias Benkmann
I've managed to create my own toolbar with the following code layout = thisComponent.CurrentController.Frame.LayoutManager layout.createElement( "private:resource/toolbar/UITest" ) layout.showElement( "private:resource/toolbar/UITest" ) but I can't seem to find a way to add a button to it. Could

Re: [dev] What is OnCopyTo(Done)

2005-09-06 Thread Matthias Benkmann
> > > >From an API point of view OnCopyTo(Done) is called when storeToURL(...) > is called on the model while OnSaveAs(Done) is called for storeAsURL(...). > > So in my case (I was getting these events without any user interaction) the events were caused by auto-save, right? Matthias

[dev] How to get TextTable from Cell

2005-09-06 Thread Matthias Benkmann
How do I get from a Cell to its containing TextTable? Actually, what I need to do is to get from a Bookmark inside a cell to the containing TextTable. bookmark.getAnchor().getText() gives me the containing Cell, but it seems that Cells don't know their containing tables. The only ways I've found

Re: [dev] Strange Bug in StarBasic? Function returning null instead of empty

2005-09-08 Thread Matthias Benkmann
On 9/7/05, Andrew Douglas Pitonyak <[EMAIL PROTECTED]> wrote: I don't suppose that you can provide an example that causes theproblem...I tried to use the supplied example and there are issues. I've just checked the copy of my mail in the archive for this mailing list and apparently it got mangled

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-09-14 Thread Matthias Benkmann
On 9/2/05, Carsten Driesner <[EMAIL PROTECTED]> wrote: > Matthias Benkmann wrote: > > On 8/31/05, Carsten Driesner <[EMAIL PROTECTED]> wrote: > > That would be great as I'm currently evaluating different implementation > > options for one of our project

[dev] Bug? Creating document based on template locks template file

2005-09-15 Thread Matthias Benkmann
I've noticed that when I create a document based on a template (e.g. double-click the .ott file which creates a new Untitled1 document) the template file is locked until I close the Untitled1 file. I'm pretty sure that this didn't happen with earlier version (I'm on 1.9.125 now). Is this a bug? I s

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-09-21 Thread Matthias Benkmann
Thanks again, Carsten, we're getting closer. We've managed to get our ComboBox into the toolbar but one issue remains: The Combo-Box starts out with the complete item list open and embedded in the toolbar. The downwards-arrow button is completely missing. In other words, the ComboBox behaves like

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-09-21 Thread Matthias Benkmann
Sorry, forgot the attachment. Here it is. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-09-21 Thread Matthias Benkmann
Does this mailing list discard attachments or am I having a problem with GMail? Someone told me that my attachment has not arrived on the list. So here is the code again inline: public XWindow createItemWindow(XWindow xWindow) { // xMSF is set by initialize(Object[]) try {

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-09-22 Thread Matthias Benkmann
On 9/22/05, Carsten Driesner <[EMAIL PROTECTED]> wrote: > > wd.WindowAttributes = WindowAttribute.SHOW|VclWindowPeerAttribute .DROPDOWN; > That did the trick. Thanks for all your help so far. Now there's just one little cosmetic thing: How do we specify the size of the ComboBox so that it scales w

[dev] Where does com.sun.star.script.BasicIDE come from?

2005-09-22 Thread Matthias Benkmann
I wonder where the service com.sun.star.script.BasicIDE comes from. I've searched the sources for an *.idl file that declares it but haven't found any. Is it not possible to regenerate the complete services.rdb just from the *.idl files? Yours Matthias ---

Re: [dev] Where does com.sun.star.script.BasicIDE come from?

2005-09-23 Thread Matthias Benkmann
On 9/22/05, Stephan Bergmann <[EMAIL PROTECTED]> wrote: > > Unfortunately, services.rdb and service descriptions in UNOIDL have > little in common: Interesting. Could you give me a little background information on how services.rdb is generated during the build of OOo? I was under the (apparently m

Re: [dev] Toolbar add-ons - Text, Combo Box entries

2005-10-18 Thread Matthias Benkmann
There is a thread about adding a ComboBox to a toolbar: http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=14674 Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[dev] Zero width space not displayed properly

2005-10-18 Thread Matthias Benkmann
When I insert a zero width space (unicode 200B hex) it is only "displayed" properly (i.e. not as a box) if I format it and the preceding character in OpenSymbol font. If I format just the ZWSP as OpenSymbol, it's still shown as a box. Is that a bug or just some weird feature of unicode characters

[dev] How to determine template URL

2005-10-25 Thread Matthias Benkmann
Is there a way to determine the URL of the template that was used to create a new document in the OnLoad event handler? Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-11-08 Thread Matthias Benkmann
On 9/23/05, Carsten Driesner <[EMAIL PROTECTED]> wrote: > Matthias Benkmann wrote: > > > That did the trick. Thanks for all your help so far. Now there's just > > one little cosmetic thing: How do we specify the size of the ComboBox > > so that it scales wi

Re: [dev] Programmatic control of Toolbar Items: ComboBox possible?

2005-11-17 Thread Matthias Benkmann
On 11/17/05, Carsten Driesner <[EMAIL PROTECTED]> wrote: > > 2.0.1. The height must be calculated manually, there is no way to > retrieve this value. :-( The best way would be to use the font height + the > border (top/bottom, normally 1 pixel) + some space between top/bottom (1 > or 2 pixels).

[dev] How to scroll view to make a certain location visible?

2005-12-29 Thread Matthias Benkmann
I'd like to scroll the view of a writer document so that a given bookmark will be visible or at least that the page the bookmark is on is visible. Can someone give me a clue how to achieve that? The interface XPageCursor allows me to jump to a given page number, but how do I get the page number of

Re: [dev] How to scroll view to make a certain location visible?

2005-12-29 Thread Matthias Benkmann
Thanks a lot. Works magnificently. Just out of curiosity, is there a way to get the page number for a bookmark? Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] deploying a java *.jar program ...

2006-01-11 Thread Matthias Benkmann
Hi Oliver See DevGuide 3.4.1 Java Language Binding, subsection "SDK tooling". It contains instructions on how to build a JAR that can be started with the usual "java -jar jarfilename.jar" with no classpath-fiddling. Ciao Matthias -

Re: [dev] deploying a java *.jar program ...

2006-01-11 Thread Matthias Benkmann
On 1/11/06, Oliver Brinzing <[EMAIL PROTECTED]> wrote: > last question: can this be used with oo 1.1.5 too ? AFAIK it can't. Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[dev] How to add item category to Tools/Customize

2006-01-12 Thread Matthias Benkmann
Is it possible to create a new item category that will be listed in Tools/Customize/Add../Category and to put custom commands into it? I know I can create macros that will appear in the OpenOffice.org macros category, but this is not what I want. I want to create a custom Java component with its o

Re: [dev] How to add item category to Tools/Customize

2006-01-12 Thread Matthias Benkmann
On 1/12/06, Carsten Driesner <[EMAIL PROTECTED]> wrote: > From my point of view you should provide all functions of your > component with an add-on (menu bar, toolbar, popup menu in the add-on > menu). Well, the functionality I want to provide is not supposed to be visible by default, nor do I w

Re: [dev] How to add item category to Tools/Customize

2006-01-12 Thread Matthias Benkmann
> May be you want to write a request for enhancement as we think to extend > our add-on concept for the next major version. Any information what > external developers need can be of great value for us. Done. http://qa.openoffice.org/issues/show_bug.cgi?id=60471 Matthias ---

[dev] Preview window with OOoBean ?

2006-01-30 Thread Matthias Benkmann
I'm developing a Java app that let's the user fill out a form. The Java app uses this data to create a document in Writer. I would like to offer the user a preview window that integrates as seemlessly as possible with the Java app. I thought I could use the OOoBean for that purpose, however I hav

Re: [dev] Preview window with OOoBean ?

2006-01-31 Thread Matthias Benkmann
On 1/31/06, Mathias Bauer <[EMAIL PROTECTED]> wrote: > > If you loaded your file directly with "loadComponentFromURL" or so you > could try to add a property "Preview" with value "True". I don't know > the bean API by memory so I don't know if there is something comarable. Thanks, that seems to do

[dev] Observing changes of input fields

2006-01-31 Thread Matthias Benkmann
I'd like to be notified if the the user changes the contents of an input field. I registered a PropertyChangeListener and a VetoableChangeListener on the textfield's "Content" property, but I'm not seeing any events. Now I've found the following in section 7.3.2 of the Dev Guide: "However, the obj

Re: [dev] Preview window with OOoBean ?

2006-01-31 Thread Matthias Benkmann
I've just encountered another problem with the Preview true mode. I can't change the ZoomValue (ViewSettings of the controller). The value ignores my attempts to change it. If I change Preview true to Preview false the change works as expected, so my code to change the ZoomValue works. Any ideas?

Re: [dev] Preview window with OOoBean ?

2006-02-01 Thread Matthias Benkmann
On 1/31/06, Mathias Bauer <[EMAIL PROTECTED]> wrote: > Matthias Benkmann wrote: > > > On 1/31/06, Mathias Bauer <[EMAIL PROTECTED]> wrote: > > Previews don't have scrollbars in OOo and a preview in OOo always has a > fixed part of the document. I thought th

[dev] How to bring OpenOffice window to front

2006-02-02 Thread Matthias Benkmann
I have the problem that when I launch a new OOo window with loadComponentFromURL() it doesn't always come to the front. Sometimes its button just blinks in the Windows task bar and I have to click it manually to bring it to the front. Is there a way to programmatically bring the window to the front

[dev] Why are the language packs so hard to find?

2006-04-06 Thread Matthias Benkmann
I need an OpenOffice that I can switch between English and German, so I either need a German version with Englisch language pack or the other way around. Now every time a new OOo version comes out I start hunting for a language pack. And I'm always disappointed that no matter where I click on www.o

Re: [dev] Why are the language packs so hard to find?

2006-04-11 Thread Matthias Benkmann
On 4/7/06, Sigrid Kronenberger <[EMAIL PROTECTED]> wrote: > But I can tell you, where you can find the langauge-packs: > Hope, this helps. Thanks. Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

[dev] Where do control colors come from?

2006-07-10 Thread Matthias Benkmann
I've just noticed that form controls have different colors (i.e. different shades of gray for the 3D-borders) under Windows and Linux. Where do those colors come from? I'd like to make OOo under Linux look exactly like OOo under Windows. How do I achieve this?

Re: [dev] Where do control colors come from?

2006-07-10 Thread Matthias Benkmann
On 7/10/06, Frank Schönheit - Sun Microsystems Germany <[EMAIL PROTECTED]> wrote: Hi Matthias, > I've just noticed that form controls have different colors (i.e. > different shades of gray for the 3D-borders) under Windows and Linux. > Where do those colors come from? I'd like to make OOo under

Re: [dev] Where do control colors come from?

2006-07-10 Thread Matthias Benkmann
On 7/10/06, Henrik Sundberg <[EMAIL PROTECTED]> wrote: 2006/7/10, Matthias Benkmann <[EMAIL PROTECTED]>: > I've just noticed that form controls have different colors (i.e. > different shades of gray for the 3D-borders) under Windows and Linux. > Where do those colors c

Re: [dev] Where do control colors come from?

2006-07-10 Thread Matthias Benkmann
On 7/10/06, Frank Schönheit - Sun Microsystems Germany <[EMAIL PROTECTED]> wrote: The colors you describe - are they from the theming of your OS? Indeed, they do seem to react to the KDE Color Theme I select in kcontrol. I should have tried this earlier. Thanks. That's all I wanted know. MSB

Re: [dev] Where do control colors come from?

2006-07-21 Thread Matthias Benkmann
Well, I know for a fact that on the system I have here at work, changing the color theme in KDE changes the colors of the checkboxes. Don't ask me why. Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[dev] Can I listen for changes of the view cursor?

2006-08-03 Thread Matthias Benkmann
I'd like to know if there's a way to get informed whenever the user has moved the view cursor. I've looked at the IDL and the dev guide but I can't seem to find a function/interface for this. Matthias - To unsubscribe, e-mail: [

Re: [dev] Can I listen for changes of the view cursor?

2006-08-21 Thread Matthias Benkmann
On 8/18/06, Mathias Bauer <[EMAIL PROTECTED]> wrote: If the view cursor is moved the selection also changes, so registering as a SelectionChangedListener should be sufficient. Thanks. That works nicely. MSB - To unsubscribe,

[dev] How to remove Database from File/New

2006-09-05 Thread Matthias Benkmann
Is it possible to remove the "Database" entry from File/New? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [dev] How to remove Database from File/New

2006-09-05 Thread Matthias Benkmann
On 9/5/06, Frank Schönheit - Sun Microsystems Germany <[EMAIL PROTECTED]> wrote: Hi Matthias, > Is it possible to remove the "Database" entry from File/New? see share/registry/org/openoffice/Office/Common/Common-base.xcu in your installation. Thanks. It's share/registry/MODULES/..., though :