Custom Widget question

Caolán McNamara caolanm at redhat.com
Tue Feb 26 02:26:59 PST 2013


On Tue, 2013-02-26 at 01:15 -0300, Olivier Hallot wrote:
> 1) On the Page format tab page there is a difference between pages
> formats for Writer+Calc and Draw.
> 
> RID_SVXSTRARY_PAPERSIZE_STD and RID_SVXSTRARY_PAPERSIZE_DRAW (found in
> cui/source/tabpages/page.src)
> 
> Can we swap  ListStores used in ListBoxes through VCL?

Hmm, at the moment anyway no, because the "ListStores" only exist as
glue code in the builder, on the other hand what you can do is make
*two* listboxes, each connected to a different liststore, set both to
visible false and get + show the correct one in the dialog ctor, e.g.
something like

if (bDraw || bImpress)
  get(m_pListBox, "drawpages")
else
  get(m_pListBox, "normalpages")
m_pListBox->Show();

> 2) Is there a special trick to make
> m_pWidget->Show();
> m_pWidget->Hide();
> 
> work?

Not sure what you mean ? Do you mean is it possible to set a widget in
glade to invisible ?, then sure, common: set visible to No (and set No
show all to No)

C.



More information about the LibreOffice mailing list