Re: Bug in SalInstanceTreeView::set_column_editables() ?

2025-01-30 Thread Jan Rheinländer
All of my past & future contributions to LibreOffice may be licensed under the MPLv2/LGPLv3+ dual license. Jan Rheinländer Am 29.01.25 um 21:49 schrieb Michael Weghorn: On 2025-01-25 17:50, Jan Rheinländer wrote: So I did find a treeview with editable 3rd column in sw/source/ui/

Re: Bug in SalInstanceTreeView::set_column_editables() ?

2025-01-25 Thread Jan Rheinländer
So I did find a treeview with editable 3rd column in sw/source/ui/misc/bookmark.cxx. This is the "Insert Bookmark" dialog. Submitted bugzilla *164850* Please ignore the first description on bugzilla - the bug was more subtle than

Re: Bug in SalInstanceTreeView::set_column_editables() ?

2025-01-22 Thread Jan Rheinländer
: On 2025-01-14 21:47, Jan Rheinländer wrote: maybe there is a bug in SalInstanceTreeView::set_column_editables(): It calls SvTabListBox::SetTabEditable(), which sets the EDITABLE flag in mvTabList array of SvLBoxTab. But the parent class SvTreeListBox keeps another array of SvLBoxTab called

Bug in SalInstanceTreeView::set_column_editables() ?

2025-01-14 Thread Jan Rheinländer
Hi, maybe there is a bug in SalInstanceTreeView::set_column_editables(): It calls SvTabListBox::SetTabEditable(), which sets the EDITABLE flag in mvTabList array of SvLBoxTab. But the parent class SvTreeListBox keeps another array of SvLBoxTab called aTabs. When the user presses the mouse

Re: Question about weld

2025-01-11 Thread Jan Rheinländer
Thanks for the quick answer. But - is this code actually used somewhere? It doesn't seem to work the same as the gtkinst version. Am 08.01.25 um 22:09 schrieb Caolán McNamara: On Wed, 2025-01-08 at 19:40 +0100, Jan Rheinländer wrote: Where is the salvtables version used? I am developi

Question about weld

2025-01-08 Thread Jan Rheinländer
Hi, adding a method to class TreeView in include/vcl/weld.hxx requires implementing it in vcl/source/app/salvtables.cxx and vcl/unx/gtk3/gtkinst.cxx. Where is the salvtables version used? I am developing on Linux and it uses the code from gtkinst.cxx. How do I test my code in salvtables.cxx?

Chart update in GUI

2022-12-04 Thread Jan Rheinländer
    oSeries2( 1 ) = 23.0        oSeries2( 2 ) = 42.0        oDataArray( 0 ) = oSeries1()        oDataArray( 1 ) = oSeries2()        oDataProvider.Data = oDataArray()    EndIf     Next i End Sub Thanks for any hints, Jan Rheinländer OpenPGP_signature Description: OpenPGP digital signature

Overview of variable naming conventions

2022-02-26 Thread Jan Rheinländer
Hi, is there somewhere a key to naming variables? For example, I see OUString msDocAccTitle DocumentType    meDocType std::unique_ptr mpGrammarContact const OUString& rBuffer SmFormat    maFormat OUString    maAccText bool    mbFormulaArranged sal_uInt16  mnSm

Notification on OLE object insertion

2019-12-21 Thread Jan Rheinländer
Hi, is it possible to be notified when a OLE object is inserted, pasted, moved or deleted from a TextDocument? I checked the following interfaces but could find nothing: XChangesListener -> forms only XClipboardListener -> only gets notify on "Copy" action (when contents of clipboard change) XPr

Memory leak in createEnumeration

2019-11-29 Thread Jan Rheinländer
Hi, there seems to be a memory leak in XEnumerationAccess::createEnumeration(). When I run the following BASIC code on a Writer document, I can watch the memory usage go up: Sub Main     for i = 1 to 10         text = ThisComponent.getText()                 paragraphs = text.createEnumeration

Re: Manifest.xml for 64bit LO

2018-05-01 Thread Jan Rheinländer
Hi, just wanted to confirm that it worked as suggested by Stephan. Thanks! Jan Am 18.02.2018 um 22:28 schrieb Stephan Bergmann: > On 18.02.2018 13:39, Jan Rheinländer wrote: >> in my C++ extension manifest.xml I have the line: >> >> > manifest:media-type="

Manifest.xml for 64bit LO

2018-02-18 Thread Jan Rheinländer
Hi, in my C++ extension manifest.xml I have the line: What is the correct line to use for a 64-bit extension compiled for 64-bit LibreOffice? Can I bundle both 32bit and 64bit extension binaries in the same .oxt? Thanks, Jan ___ LibreOffice mailin

Placement of addon toolbar

2017-09-17 Thread Jan Rheinländer
Hi, my Addon defines a toolbar with the following xml. The user can place this toolbar anywhere on the screen, e.g. on the side. But after every update of the Addon ("unopkg add"), the toolbar is back at the top of the screen. Is there a way to prevent that? http://openoffice.org/2001/registry"

Installed font

2017-09-10 Thread Jan Rheinländer
Hi, does the API offer a way of checking whether a certain font is known to the Office? Inside a C++ extension, I am wanting to change the math font, providing that font is installed on the user's machine. Greetings, Jan ___ LibreOffice mailing

Document options of an extension

2016-08-12 Thread Jan Rheinländer
Hi, what is the correct way to access document-specific options of an extension through the gui? The options are stored in an XNamedGraph. But where would the user expect to find them in the GUI? * File -> Properties? * Extras -> Options -> Writer -> * New menu entry (the extension has i

Re: Order of menu items

2016-07-03 Thread Jan Rheinländer
Hi Oliver, thanks that works! Very interesting that LO on Windows can't sort labels if they start with a digit... Am 30.06.2016 um 20:44 schrieb Oliver Brinzing: > Hi Jan, > > > In Linux LO respects this order and arranges the menu items in order. > > In Windows, it doesn't. > > i use "m001", "m

Order of menu items

2016-06-30 Thread Jan Rheinländer
Hi, my extension adds a menu to the Office menu bar with an .xcu file. The file starts like this: http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; oor:name="Addons" oor:package="org.openoffice.Office"> iMath iMath

Re: Open web page from dialog

2016-06-12 Thread Jan Rheinländer
Thanks everybody. This is how it works now: Reference< XControl > xDialogControl(xDialog, UNO_QUERY_THROW); Reference< XMultiServiceFactory > xControlFactory(xDialogControl->getModel(), UNO_QUERY_THROW); Reference< XPropertySet > xPSLinkHelp(xControlFactory->createInstance("com.s

Re: Open web page from dialog

2016-06-12 Thread Jan Rheinländer
he ControlContainer? Reference< XControlContainer > xControlContainer(xDialog, UNO_QUERY_THROW); xControlContainer->addControl(OU("button_help"), xHyperlinkControl); I have looked all over the UNO API but am not getting anywhere. Thanks, Jan > oDialogModel.createI

Open web page from dialog

2016-06-11 Thread Jan Rheinländer
Hi, is it possible to open a website in the user's preferred browser from a dialog (or from a Basic macro, or through the UNO API)? I see that the "Help" - "About" dialog does this, but it is defined in the source in Glade format, different to the Basic dialogs. Thanks for any ideas! Jan _

Accessing Excel from UNO

2016-04-14 Thread Jan Rheinländer
Hi, is it possible to put something like the following StarBasic code into a C++ extension: oExcel = CreateObject("Excel.Application") oBook = oExcel.Workbooks.Add oBook.SaveAs("C:\temp\testing.xls") oExcel.Quit In other words, can a C++ extension work with ActiveX objects? If not,

Re: Setting data in Writer chart from Basic

2016-01-31 Thread Jan Rheinländer
Hi, something like this: set doc = thisComponent set ctrl = thisComponent.CurrentController xChart = ctrl.getModel().getEmbeddedObjects.getByName("Objekt2") xChart.ExtendedControlOverEmbeddedObject.changeState(0) xChart.ExtendedControlOverEmbeddedObject.changeState(1) x

Re: Setting data in Writer chart from Basic

2016-01-30 Thread Jan Rheinländer
Hi Fernand, thanks for the ideas. Sadly nothing you or anybody else posted helped. Finally I found this hack (here xChart has type Reference< XTextContent > xChart): Reference < XEmbeddedObjectSupplier2 >xEOS2(xChart, UNO_QUERY_THROW); Reference < XEmbeddedObject > xEmbObj(xEOS2->getExtendedC

Setting data in Writer chart from Basic

2016-01-24 Thread Jan Rheinländer
Hi, with this code I can change the data in a Writer chart: set doc = thisComponent set ctrl = thisComponent.CurrentController xChart = ctrl.getModel().getEmbeddedObjects.getByName("Objekt1") set cDoc = xChart.getEmbeddedObject set cDataArray = cDoc.getDataProvider data =

Re: Build error on branch libreoffice-5-0-4

2016-01-05 Thread Jan Rheinländer
Hi Jan-Marek, thank you very much for the hint, the build has now completed successfully. Jan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: Build error on branch libreoffice-5-0-4

2016-01-03 Thread Jan Rheinländer
uild.log. > > Chris > >> On 3 Jan 2016, at 7:21 AM, Jan Rheinländer wrote: >> >> Hi, >> >> I tried building the branch libreoffice-5-0-4 on Windows, following the >> LODE instructions, and got: >> >> >> [build RC ] cppu/default >>

Build error on branch libreoffice-5-0-4

2016-01-02 Thread Jan Rheinländer
x27; make[1]: *** Waiting for unfinished jobs Makefile:250: recipe for target 'build' failed make: *** [build] Error 2 What's wrong? If allowed on this list, I can attach the complete build.log file. Jan Rheinländer ___ LibreOffice mailing

Get notified when a formula object is inserted

2015-12-26 Thread Jan Rheinländer
Hi, is it possible to install some kind of listener that is notified whenever a formula object is inserted into a Writer document? The application is a Writer extension which should become active whenever a new formula object is inserted. Thanks for any hints! Jan Rheinländer

Re: How to create an object of type ::com::sun::star::chart2::data::XLabeledDataSequence ?

2015-05-23 Thread Jan Rheinländer
Hi, thanks for the hints. Finally I managed to get my object from the ServiceManager. Here is the complete code for inserting an (empty) XY-Chart into a Writer document: Reference < XTextContent > insertChart(const Reference < XController > &xCtrl, const Reference < XComponentContext > &xCC) {

How to create an object of type ::com::sun::star::chart2::data::XLabeledDataSequence ?

2015-05-15 Thread Jan Rheinländer
Hi, I'm trying to insert an XYDiagram into a Writer (!) document by code. But I can't figure out how to get any data into it. All the examples on the web are always for Calc, never for Writer. The code I have got is below. Everything works fine until I want to create my sequences. Reference < XT

Re: Re: Extension: Keyboard shortcut for menu item

2015-05-05 Thread Jan Rheinländer
Ok I understand the reason. I'm currently testing a BASIC macro (which I can assign a keyboard shortcut through the UI) which sends a URL to my XDispatch::queryDispatch() method. That seems to be a possible workaround. P.S. How do I answer to a thread if I only get the digest version of the maili

Extension: Keyboard shortcut for menu item

2015-05-02 Thread Jan Rheinländer
Hi, in my extension I have an .xcu file (beginning of file see below). How can I assign a keyboard shortcut to a menu item (e.g. node "010:edit:change")? The schema only offers to put an icon in the beginning of the menu line. But many LO menus have a shortcut defined at the end of the menu line,

Re: VclBuilder in an extension

2015-04-07 Thread Jan Rheinländer
Sorry I forgot to copy this to the list. --- Hi Markus, thanks for the quick answer. 1. How much work is it to expose the new dialog code? Can you give me a short sketch of what that means? 2. If I install the LO source code, wouldn't it be possible to access the VclBuilder class even though it

VclBuilder in an extension

2015-04-06 Thread Jan Rheinländer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, the BASIC dialogs are really ugly :-( But I saw that the LO dialogs have been converted to the .ui format. Is there any way that I can use dialogs in the .ui format in my extension (.oxt) ? - From the web I gathered that I need to use the VclBui