[Solved] Accessing macro code for dialog GUI

The Application Programming Interface and the OASIS Open Document Format

[Solved] Accessing macro code for dialog GUI

Postby PairOdachs » Fri May 03, 2013 4:33 am

I'm sure this is really, really easy, but I'm not seeing how to do it :( ...

Once I create a dialog in the Dialog Editor (http://wiki.openoffice.org/wiki/Documen ... log_Editor), how can I access the underlying code? For example, I can set a field's "Max. text length" value through the Dialog Editor, or I could set it in macro code via .Max (http://wiki.openoffice.org/wiki/Documen ... Text_Field), so theoretically I should be able to access the macro code set via the Dialog Editor.

 Edit: The solution is that the functionality doesn't exist. :cry: 
Last edited by PairOdachs on Fri May 03, 2013 5:34 pm, edited 1 time in total.
OOo 3.4.1 on Mac OS X 10.6.8
PairOdachs
 
Posts: 31
Joined: Mon Aug 11, 2008 1:10 pm

Re: Accessing macro code for dialog GUI

Postby B Marcelly » Fri May 03, 2013 1:42 pm

Hi,
PairOdachs wrote:Once I create a dialog in the Dialog Editor, how can I access the underlying code?

You can't. The settings of the dialog editor are stored in a *.xdl file, example Dialog1.xdl. This xml file is read and interpreted by the routine CreateUnoDialog.
Bernard

OpenOffice.org 1.1.5 / Apache OpenOffice 4.1.1 / LibreOffice 5.0.5
MS-Windows 7 Home SP1
B Marcelly
Volunteer
 
Posts: 1160
Joined: Mon Oct 08, 2007 1:26 am
Location: France, Paris area

Re: Accessing macro code for dialog GUI

Postby RoryOF » Fri May 03, 2013 1:49 pm

You can try opening it with a plain text editor; if it opens, manipulation will require detailed knowledge of XML.
Apache OpenOffice 4.1.4 on Xubuntu 16.04.03 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 25493
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Accessing macro code for dialog GUI

Postby PairOdachs » Fri May 03, 2013 5:33 pm

Well that's depressing. :cry I had figured out how to access the xdl, but didn't want to have to manually convert the XML to Basic, and it seems like such a simple and useful development feature that assumed it must be there. :(
OOo 3.4.1 on Mac OS X 10.6.8
PairOdachs
 
Posts: 31
Joined: Mon Aug 11, 2008 1:10 pm

Re: [Solved] Accessing macro code for dialog GUI

Postby jza » Tue Oct 28, 2014 12:19 am

You could make the XML gui like, in a similar fashion that Eclipse do with the XML manipulations.

Basically you pass from XML to a table where users can assign or choose different values. Example, width, height, position on the screen, etc.
That said, AOO already do this on the control dialog. So you will basically be cloning the functionality.
Image
AOO 4.1.1 on Arch Linux
User avatar
jza
 
Posts: 239
Joined: Mon Nov 03, 2008 11:33 am
Location: Cancún, Mexico


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 2 guests