Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Caolán

I will analyse the two listboxes approach. I also solved the Hide/Show
issue I had. I am 99% close to completion for page dialog tab.

Two other advises I need.

The first is to handle single strings in src files. Does it make sense
to add hidden labels widget in the UI in order to fetch the strings? e.g.

String STR_INSIDE
    {
        Text [ en-US ] = "I~nner" ;
    };



The second is about the list of page formats. These long lists are well
defined in src and the Id's are very readable. E.g.

StringArray RID_SVXSTRARY_PAPERSIZE_STD
{
    ItemList [ en-US ] =
    {
        < "A6" ; PAPERSIZE_A6 ; > ;
        < "A5" ; PAPERSIZE_A5 ; > ;

(...)

If I add this list to a listbox widget, I will need to transform
PAPERSIZE_A6 to its numeric value, right?. Perfectly doable but we will
loose the mnemonic. On one side, we will get rid of the src file, OTOH,
we loose readability. What do you recomend?

Cheers
Olivier

Em 26-02-2013 07:26, Caolán McNamara escreveu:
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.


- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
The Document Foundation, Zimmerstr. 69, 10117 Berlin, Germany
Fundação responsável civilmente, de acordo com o direito civil
Detalhes Legais: http://www.documentfoundation.org/imprint
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRLOTpAAoJEJp3R7nH3vLx08gH/j33tJ6temb3DOfd1Hk1fUiB
onbg5EaPgzfMT9x0qCxt7KkMOzITnL/Jy0bnt6IziEYjL8z1Iw6ITmo2bw+ckIl0
lVoYZOSUwRxkp8N7Zx1Vj2cCiAWP3/YT+f4MheoSx8mSaK2gNbAOWsBUI8+C4RJo
mwF5KoLeuhT8qx99ii+Ecf7ifFSx+RUipnGfmDS7S37pOU0CYT9f0owLxJKo1bql
IVo79F9A3JAqPazNSN5j2EMYQEdkw+tGF0hjzTL0Jao3Y1WqzEQaZE6xp3CN8j47
FDrqfBmhjVztPEkXWF9Msie+DF43iX8mN0emQ5gMUC25XUfuYOLsS+ALMGP4Y5w=
=oUai
-----END PGP SIGNATURE-----

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.