list all keyboard shortcuts using a macro

2016-01-22 Thread Jörg Schmidt
Hello, Is there a way to list all keyboard shortcuts using a macro? "all" means, the existing shortcuts for: OpenOffice (global), Writer, Calc, Impress, Draw, ... Greetings, Jörg - To unsubscribe, e-mail: api-unsubscr...@op

BasicAddonBuilder 0.5.2 released

2016-01-09 Thread Jörg Schmidt
Hello, After over a year testing, i have today released Basic Addon Builder 0.5.2, see: http://extensions.openoffice.org/en/project/basicaddonbuilder-extensions-packager#releases This version is compatible with AOO 4.0 and later versions. (A current version for LibreOffice can be downloaded fro

Re: zip/unzip jar archive or add/remove file using a Basic macro?

2015-10-11 Thread Jörg Schmidt
Hello Regina, > From: Regina Henschel [mailto:rb.hensc...@t-online.de] > I want to write a Basic macro to preview an .xhp file while > editing it. > Viewing such file works fine with LoadComponentFromUrl with protocol > "vnd.sun.star.help", if the file is inside a .jar container. > > But ho

Re: read and set the option "Save URLs relative to file system"

2015-09-13 Thread Jörg Schmidt
Hello, Thank you Regina, Thank you Tsutomu. The following works: Sub einstellung_pruefen() 'Speichereinstellung prüfen Dim sNodePath As String Dim oCP, oCUA sNodePath = "/org.openoffice.Office.Common/Save/URL" Dim aProps(0) As New com.sun.star.beans.Proper

read and set the option "Save URLs relative to file system"

2015-09-12 Thread Jörg Schmidt
Hello, I will read and set the Option: Tools-Options-Load/Save-General-Save URLs relative to file system with a Macro. For Changing the MacroSecurityLevel i found this: Sub ChangeMacroSecurity Dim sNodePath As String Dim oCP, oCUA sNodePath = "/org.openoffice.Office.Common/Securi

Re: How to change an entry of a self-created menus via macro

2015-09-10 Thread Jörg Schmidt
Hello, > From: Keith Alcock [mailto:ke...@keithalcock.com] > Sent: Thursday, September 10, 2015 7:50 PM > To: api@openoffice.apache.org > Subject: Re: How to change an entry of a self-created menus via macro > > Jorg, > > Below is code to do such a thing with C++. Basically you > need to wor

How to change an entry of a self-created menus via macro

2015-09-10 Thread Jörg Schmidt
Hello, I have a menu, _created by a addons.xcu-file_ in a extension. Is it possible to change an entry of a self-created menus via macro? With this, i 'catch' only the 'normal' menus, _not my self-created menu_: sMenuBar = "private:resource/menubar/menubar" oModuleCfgMgrSupplier = createUnoSe

How can I change the path for /user/uno_packages

2015-08-27 Thread Jörg Schmidt
Hello, How can I change the path for /user/uno_packages? I know how I can change the complete path /user by using a macro, but only /user/uno_packages? Greetings, Jörg - To unsubscribe, e-mail: api-unsubscr...@openoffice.a

Re: Is the view-cursor in the table of contents?

2015-07-28 Thread Jörg Schmidt
> From: Bernard Marcelly [mailto:marce...@club-internet.fr] > Sent: Tuesday, July 28, 2015 6:59 PM > To: api@openoffice.apache.org > Subject: Re: Is the view-cursor in the table of contents? > > Hi Jörg, > > Dim v_cur As Object, dix As Object > > v_cur = ThisComponent.CurrentController.ViewCurs

Is the view-cursor in the table of contents?

2015-07-27 Thread Jörg Schmidt
Hello, in a text document is my view-cursor: v_cur = ThisComponent.CurrentController.ViewCursor How can I reliably(!) test whether this view-cursor currently located in the table of contents? note: Ok, I can, for example, check: Msgbox v_cur.Textsection.LinkDisplayName but I think this is

Re: StarOffice 8 Programming Guide for Basic

2015-06-29 Thread Jörg Schmidt
> From: papa.br...@laposte.net [mailto:papa.br...@laposte.net] > Sent: Monday, June 29, 2015 6:43 PM > To: api@openoffice.apache.org > Subject: StarOffice 8 Programming Guide for Basic > > Hello, > > Thre's no link to the last version of the programming guide. See: http://web.mit.edu/soffice_

Re: How to change text flow direction in a table with macro?

2015-06-27 Thread Jörg Schmidt
Hello, > From: Hung Mark [mailto:mark...@gmail.com] > The feature might be rarely used by people other than CJK. > I try to put capture the image and put some note to describe > what I'm going > to do: > > http://imagebin.ca/v/26gpFISx24bk OK, I see the words "Western English" in the screen

Re: How to change text flow direction in a table with macro?

2015-06-27 Thread Jörg Schmidt
Hello, > From: Hung Mark [mailto:mark...@gmail.com] > Sorry that I misled you. It is my intention to change text > flow in a cell > to right to left direction. I think you mean the setting of the paragraph: Sub Snippet Dim oCurrentController As Variant Dim oViewCursor As Variant Dim o

Re: How to change text flow direction in a table with macro?

2015-06-27 Thread Jörg Schmidt
Hello, > From: Hung Mark [mailto:mark...@gmail.com] > How to change text flow direction in a table with macro? See this example: Sub Snippet Dim oCurrentController As Variant Dim oViewCursor As Variant Dim oCell As Variant Dim nVertOrient As Integer oCurrentController = ThisCompone

Re: How can I define long tooltips for toolbars?

2015-06-23 Thread Jörg Schmidt
Hi Bernard, > From: Bernard Marcelly [mailto:marce...@club-internet.fr] > Extended tip is handled by the Application Help, using the > help pages of the > extension. Thank you for this information, I did not know so far. > Creating help pages is complex. In fact, that's it. I was already

How can I define long tooltips for toolbars?

2015-06-21 Thread Jörg Schmidt
Hello, In toolbars of OpenOffice, there are buttons with long tooltips. For example, has in the Format-toolbar the button "bold", the tooltip (in a german OO): "Stellt den ausgewählten Text fett dar. Befindet sich der Cursor in einem Wort, so wird das gesamte Wort fett dargestellt. Wenn die Aus

Re: need some help to Accelerators.xcu

2015-06-18 Thread Jörg Schmidt
> From: Oliver Brinzing [mailto:oliver.brinz...@gmx.de] > just found, that there is a service > "com.sun.star.ui.GlobalAcceleratorConfiguration" > maybe this will work: Thank you for the moment. I give feedback in a few days when I tried it. Greetings, Jörg -

need some help to Accelerators.xcu

2015-06-17 Thread Jörg Schmidt
Hello, On the following page I find information on Accelerators.xcu: https://wiki.openoffice.org/wiki/Framework/Article/Accelerators_Configuration This works well so far, but I've noticed the changes of Keys in the area of a module (for example: ) only active if you are restarting openoffice.

UnoControlFixedHyperlinkModel and TabIndex

2015-06-01 Thread Jörg Schmidt
Hello, In a starbasic-dialog I have a part of the background white color (really only(!) a part). For this I use com.sun.star.awt.UnoControlFixedText and set .TabIndex to 1. At the same time there is a com.sun.star.awt.UnoControlFixedHyperlinkModel which should be above the white background.

Re: Get the result of .uno:SelectTables

2015-05-19 Thread Jörg Schmidt
Hello Regina, > From: Regina Henschel [mailto:rb.hensc...@t-online.de] > Do you need the information, which sheet will be selected > before it is > actually selected? Then you might want to write an own dialog > and then > call the dispatcher with argument, e.g Name="Tables" > Value=Array(

Get the result of .uno:SelectTables

2015-05-19 Thread Jörg Schmidt
Hello, with the following code I can call the Select-Tables-Dialog in Calc: dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:SelectTabl

Re: Disable underline - UnoControlFixedHyperlinkModel

2015-04-23 Thread Jörg Schmidt
Hello, > From: Bernard Marcelly [mailto:marce...@club-internet.fr] > Sent: Thursday, April 23, 2015 3:24 PM > To: api@openoffice.apache.org > Subject: Re: Disable underline - UnoControlFixedHyperlinkModel > > Hi Jörg, > That's the usual problem of a structure inside a structure : > you must use

Disable underline - UnoControlFixedHyperlinkModel

2015-04-22 Thread Jörg Schmidt
Hello, How can I stop underlining of hyperlinks in UnoControlFixedHyperlinkModel? My current code is: Dim dia_ueber Dim frm_ueber Dim fhm GlobalScope.BasicLibraries.LoadLibrary("jum") GlobalScope.DialogLibraries.LoadLibrary("jum") frm_ueber = DialogLibraries.jum.dlg_ueber dia_ueber = CreateUno

Re: [Q] using graphics in dialog in an extension

2015-03-18 Thread Jörg Schmidt
> From: Mathias Röllig [mailto:mroellig.n...@gmx.net] > Sent: Tuesday, March 17, 2015 9:18 PM > To: API AOO > Subject: [Q] using graphics in dialog in an extension > > Hello! > > It is not a problem using graphics in a dialog. Simply adding > a graphics > control or adding icons to push button

reliably determine the location of soffice.exe

2015-03-15 Thread Jörg Schmidt
Hello, The following code returns the directory where soffice.exe is: Sub Benutzerverzeichnis() aService = CreateUnoService("com.sun.star.util.PathSubstitution") sUserPath = ConvertFromURL(aService.substituteVariables("$(prog)", true)) InputBox ("Ihr aktuelles OpenOffice.org-Benutzerverzeichn

a API-problem with .HeaderBackColor

2015-01-11 Thread Jörg Schmidt
Hello, There is a nasty problem with .HeaderBackColor in Writer page-templates. When I read all PropertyValues of a page-style "A" and transfer them to page-style "B", the reading is done in a certain, specified by the API, order: BorderDistance|HeaderText|GridLines|HeaderBorderDistance|TopBord

Re: copy an existing style

2015-01-07 Thread Jörg Schmidt
Hello Oliver, *, > From: Oliver Brinzing [mailto:oliver.brinz...@gmx.de] > i think you have to iterate over the "NumberingRules" Objects > and Copy it's properties > > For j = 0 To oPStyle.NumberingRules.getCount()-1 > mArray() =oPStyle.NumberingRules.getByIndex(j) >

Re: copy an existing style

2015-01-06 Thread Jörg Schmidt
Hello, > From: Jörg Schmidt [mailto:joe...@j-m-schmidt.de] > Thank You. The following works for me: > > Sub Vorlage_kopieren() > ... I use the same for numberingstyles it does not work properly. Using the following code will _not_ transfer the setting "position-a

Re: copy an existing style

2015-01-03 Thread Jörg Schmidt
> From: LireCouleur [mailto:lirecoul...@arkaline.fr] > Sent: Sunday, January 04, 2015 8:29 AM > To: api@openoffice.apache.org > Subject: Re: copy an existing style > > Hi Jörg. This is probably not exactly your question but if > you want to > copy styles from one document to another one, the f

Re: copy an existing style

2015-01-03 Thread Jörg Schmidt
> From: Oliver Brinzing [mailto:oliver.brinz...@gmx.de] > Sent: Saturday, January 03, 2015 10:00 AM > To: api@openoffice.apache.org > Subject: Re: copy an existing style > > Hi Jörg, > > or try to set the parent style: > > newStyle.ParentStyle = oldStyle.Name > oStyles.insertByName("myNewStyle"

Re: copy an existing style

2015-01-03 Thread Jörg Schmidt
> From: Oliver Brinzing [mailto:oliver.brinz...@gmx.de] > i think you have to copy all Properties from old to new style. > this should work for Pagestyles: > > > REM * BASIC * > OPTION EXPLICIT > > Sub PageStyle > [...] Thank You. The following works for me: Sub Vorlage_kopieren()

copy an existing style

2015-01-02 Thread Jörg Schmidt
A Happy New Year to all. Hello, I can access a paragraph style as follows: the_style = ThisComponent.getStyleFamilies.getByName("ParagraphStyles").getByName("jms1") I can also add a new style: newStyle = ThisComponent.CreateInstance("com.sun.star.style.ParagraphStyle") ThisComponent.getStyle

Re: access internal graphics of a writer-document

2014-10-16 Thread Jörg Schmidt
Hello Arial, > From: Ariel Constenla-Haile [mailto:arie...@apache.org] > I guess you are using the Dialog Editor, I've tried the Property > Browser, and it does not work well with this protocol: setting > "Graphics" to > vnd.sun.star.GraphicObject:120101B1019D1E3B87B7 is then > conv

access internal graphics of a writer-document

2014-10-14 Thread Jörg Schmidt
Hello, With the StarBasic-Code: ThisComponent.GraphicObjects(0).GraphicURL I can read the internal URL of an embedded graphic in a writer-document, for example "vnd.sun.star.GraphicObject:13AC00DC178CAB87" But can I use this URL as ".GraphicURL" for a graphic control of a dia

Re: COM OLE Automation bridge; property Name not supported

2014-08-29 Thread Jörg Schmidt
> From: Peter Eberlein [mailto:pet@refofd.verwalt-berlin.de] > because aoo cannot open all Word docs without crashing > (https://issues.apache.org/ooo/show_bug.cgi?id=125419), I > wanted to let > do WinWord the job. > > I need to know the names of all bookmarks. > So StarBasic looks like

Re: selecting more than one sheet (Calc / StarBasic)

2014-08-12 Thread Jörg Schmidt
> From: Bernard Marcelly [mailto:marce...@club-internet.fr] > Dim dispatcher As Object, curWin As Object > Dim args(0) As New com.sun.star.beans.PropertyValue > > curWin = ThisComponent.CurrentController.Frame > dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") > args(0).Name =

a new version of BasicAddonBuilder

2014-08-12 Thread Jörg Schmidt
see: https://wiki.openoffice.org/wiki/Extensions_Packager#BasicAddonBuilder_0.5.2 Greetings, Jörg - To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org For additional commands, e-mail: api-h...@openoffice.apache.org

selecting more than one sheet (Calc / StarBasic)

2014-08-11 Thread Jörg Schmidt
Hello, I want to select multiple sheets in Calc simultaneously with StarBasic. Is there only the indirect method via the range-object? for example: https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=45389&hilit=select+sheets#p209791 Greetings, Jörg ---

Change the color palette

2014-07-01 Thread Jörg Schmidt
Hello, how can I add an additional color by starbasic-macro to the current color palette of openoffice? Is that even possible? Greetings, Jörg - To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org For additional co

Re: Some questions about "undo"

2014-03-06 Thread Jörg Schmidt
> From: Ariel Constenla-Haile [mailto:arie...@apache.org] > This looks like an omission from the developer, you might > want to submit > a bug. No, I think not. Please consider the following example: http://www.openoffice.org/api/docs/common/ref/com/sun/star/util/PathSettings.html I do no

Re: Some questions about "undo"

2014-03-06 Thread Jörg Schmidt
Hello Ariel, *, > From: Ariel Constenla-Haile [mailto:arie...@apache.org] > That particular scenario can have a workaround only if your code is > controlling the undo context, oh yes, that helps me a lot. > See http://people.apache.org/~arielch/api/UndoManager.odt Thank you. > The documen

Some questions about "undo"

2014-02-27 Thread Jörg Schmidt
Hello, (a) Is there a way to remove one or several undo actions from the stack, but not all actions? Exemple: My undo-stack is: Eingabe Attribute Eingabe and I would like to have the undo-stack: Eingabe Eingabe (b) How can I in general use the 'undo-API'? I find in the Internet the exam