[Libreoffice] Icons in Specialized class ListBox

2012-01-18 Thread Julien Levesy
Hi

I'm working on the file picker dialog. I would like to add a list of places
as those we can see on most common file pickers (bookmarks on the left of
the dialog).

In order to display these places, I use specialization of the SvtListBox
component. I would like to add icons for each item in the list. Do you know
what the best way to display icons in a listbox is ?

Should I re-implement (override) the ListBox::draw() method, or is an other
way to do that more easily ?

Best regards

Julien
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Icons in Specialized class ListBox

2012-01-18 Thread Julien Levesy
Hi

Actually, it was ListBox, not SvtListBox !
Thanks for your help, i managed to display icons !

Best regards

Julien

2012/1/18 Eike Rathke er...@redhat.com

 Hi Julien,

 On Wednesday, 2012-01-18 16:17:32 +0100, Julien Levesy wrote:

  I'm working on the file picker dialog. I would like to add a list of
 places
  as those we can see on most common file pickers (bookmarks on the left of
  the dialog).
 
  In order to display these places, I use specialization of the SvtListBox
  component.

 Don't know which SvtListBox you are referring, there is no such class.

  I would like to add icons for each item in the list. Do you know
  what the best way to display icons in a listbox is ?

 There's the vcl ListBox (maybe that's the one you're already using?)
 that has an InsertEntry() method that takes an Image parameter. You can
 see it in action under Tools-Options-LanguageSettings-Languages
 Default languages for documents where it is used to display the ABC
 check marks for language support.

  Eike

 --
 LibreOffice Calc developer. Number formatter stricken i18n
 transpositionizer.
 GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Hi ! We are new on libo! 2/2

2011-12-20 Thread Julien Levesy
Hi, to follow my friend Martius, i'm introducing myself.

I'm Julien Levesy, french student in CS.
As a school project, I'll will help Martin in reworking file picker, and
implementing new features he has presented in his previous mail.
All this work is mentored by Cedric Bosdonnat.

My nickname in IRC is Jlevesy.

All the best !

 Julien
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice