Glade UI Dialogs and UNO extensions

Olivier Hallot olivier.hallot at libreoffice.org
Tue Jan 7 14:13:51 PST 2014


Hi Michael, All

Em 07-01-2014 19:32, Michael Meeks escreveu:
> Hi Olivier,
> 
> On Tue, 2014-01-07 at 17:37 -0200, Olivier Hallot wrote:
>>> On 01/07/2014 06:05 PM, Olivier Hallot wrote:
>>>> I have a demand to tweak some dialogs with better layout or widgets
>>>> positions. In order to avoid disruption with the core development, I
>>>> would like to know if these .ui dialogs can be packed into UNO
>>>> extensions.
>>>
>>> No, there is no support for .ui files in .oxt extensions.
> 
> 	So - just to confirm; it's not that you want to add new dialogs, but
> you want to clobber / override existing application .ui dialogs with
> changes / tweaks using an extension ? :-)
> 
> 	Sounds like an interesting idea; but - extremely dangerous code-wise;
> liable to introduce SEGV's all over the place if widgets are not there I
> think.
> 

I have converted tens of SRC file to UI, so I know you can rearrange the
widgets but you can't add nor drop any of them without touching the
dialog ctors.


>> OK, so this is a fact today. Is it doable or are we going to die trying?
>> GSoC 2014? (I know I can get what I want by changing the ui file at
>> installation time)
> 
> 	It's not 100% clear what you'd like - is it that you want to use the
> new .ui file stuff inside an extension [ if so, that's rather do-able I
> think ]. If it is overriding / tweaking existing files it's more
> problematic.

I know I can pick a UI file, rearrange it with Glade, and put back in
place, even in hot mode. If I can do it with an extension (knowing the
caveats), it will get another degree of freedom in my UI.

I have one (easy) situation, which I already sent to UI list, but no
decision was made... It refers to the position of the default button in
Save As dialog. In this dialog, the "keep as MS format" button is the
default and is on the left. IMHO it should be on the right and "Save As
ODF" should be emphasized.

Perhaps I should have open a enhancement UI bug....

Kind regards

-- 
Olivier Hallot
Comunidade LibreOffice
http://ask.libreoffice.org/pt-br


More information about the LibreOffice mailing list