Re: off-list Re: [libreoffice-users] text width measurement

2011-08-31 Thread alex bodnaru
hello tom,

thanks for your interest. i've got no answer on the list yet.

best regards,
alex

On Wed, Aug 3, 2011 at 17:19, Tom Davies tomdavie...@yahoo.co.uk wrote:
 Hi :)
 Has this issue been sorted out?  I have lost track in the heat here.
 Regards from
 Tom :)

 
 From: alex bodnaru alexbodn.gro...@gmail.com
 To: users@global.libreoffice.org
 Sent: Tue, 2 August, 2011 13:54:52
 Subject: [libreoffice-users] text width measurement

 hello friends,

 i wish to put fields, buttons and fixed text on a dialog built by a macro.

 the location will be automatically calculated, based on the width of the
 labels
 and fixed text, and given width of the input fields. same with combo boxes
 and
 column widths of a grid.

 how can i measure the width taken by a given text string, preferable in ma
 units?

 thanks in advance,
 alex

 --
 Unsubscribe instructions: E-mail to users+h...@global.libreoffice.org
 Problems?
 http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
 Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
 List archive: http://listarchives.libreoffice.org/global/users/
 All messages sent to this list will be publicly archived and cannot be
 deleted




-- 
alex

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] problem with columnwidths in grid

2011-08-07 Thread alex bodnaru
body
  p { margin-bottom: 0.3cm; margin-top: 0pt; }
hello friends,


i'm asking for help with setting the column widths for a grid
  control.


anyone with some insight could help.




thanks in advance,


alex


-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] width of com.sun.star.awt.grid.GridColumn

2011-08-05 Thread alex bodnaru

hello friends,

com.sun.star.awt.grid.GridColumn has a width field, but setting it doesn't seem
to have a benefic effect.
what unit does this field have?
how can i convert map appfont (ma) units to this unit?

thanks in advance,
alex

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] new book

2011-08-05 Thread alex bodnaru
thanks andrew for keeping up this great work.

though a lot has been changed since your first book, would you consider
inserting the new grid control in this new edition?

best regards,
alex

On 08/05/2011 03:49 PM, rogerio dandrea wrote:
 new book

 http://www.pitonyak.org/OOME_3_0.odt

 :0)   thanks Pitonyak  for the excellent work

 :0) From Brazil



-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: fontdescriptor seems to be empty

2011-08-04 Thread alex bodnaru
On 08/03/2011 07:42 AM, Andrew Douglas Pitonyak wrote:
 On 08/02/2011 10:17 PM, alex bodnaru wrote:
 On 08/03/2011 05:00 AM, Andrew Douglas Pitonyak wrote:
 On 08/02/2011 09:52 PM, alex bodnaru wrote:
 On 08/03/2011 02:38 AM, alex bodnaru wrote:
 hello friends,

 i wish to use the fontdescriptor of a control, but i'm receiving an
 empty structure:
 (com.sun.star.awt.FontDescriptor){ Name = (string), Height =
 (short)0x0, Width = (short)0x0, StyleName = (string), Family =
 (short)0x0, CharSet = (short)0x0, Pitch = (short)0x0, CharacterWidth =
 (float)0, Weight = (float)0, Slant =
 (com.sun.star.awt.FontSlant)DONTKNOW, Underline = (short)0x4,
 Strikeout = (short)0x3, Orientation = (float)0, Kerning =
 (boolean)false, WordLineMode = (boolean)false, Type = (short)0x0 }

 should i set this manualy, and in that case, how should i get the system
 font?

 could anybody help please?

 alex

 Do you want to read it or set it?

 Can you provide a code snippet?

 my window is a dialog box. how could i get to it's component that implements
 xfont?

 I have never tried it... The real question, however, is. Do the font
 descriptors available from a container window provide the interface that you
 desire? I assume that the font descriptor is not control or window dependent.
 If you are able to determine the font that will be used by the control, is it
 possible to then find the font descriptor. I have never pursued this (and I do
 not have time now because I must be somewhere in a matter of minutes).

thanks andrew,

i've tried your suggestion on the forum, and could enumerate the font
descriptors of the current doc.

but i'm interested in dialog controls.
few of them feature labels. they have the FontDescriptor and few other relevant
fields and methods (obviously an interface they implement).
and they obviously really use some font to render these labels.

as i said, my problem was that the FontDescriptor shows empty info.
what i can assume is, since i don't specifically set the font, the system font
is being chosen. but in this case, the descriptor of the system font should be
stored there, shouldn't it?
however i think this is a bug, i'd like to go around it, by setting myself the
system font descriptor in the FontDescriptor field of the control or any other 
way.

please advice on how could i obtain the system font.
and' on how could i set the font of a dialog/control.

thanks in advance,
alex

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] text width measurement

2011-08-02 Thread alex bodnaru
hello friends,

i wish to put fields, buttons and fixed text on a dialog built by a macro.

the location will be automatically calculated, based on the width of the labels
and fixed text, and given width of the input fields. same with combo boxes and
column widths of a grid.

how can i measure the width taken by a given text string, preferable in ma 
units?

thanks in advance,
alex

-- 
Unsubscribe instructions: E-mail to users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] fontdescriptor seems to be empty

2011-08-02 Thread alex bodnaru
hello friends,

i wish to use the fontdescriptor of a control, but i'm receiving an
empty structure:
(com.sun.star.awt.FontDescriptor){ Name = (string), Height =
(short)0x0, Width = (short)0x0, StyleName = (string), Family =
(short)0x0, CharSet = (short)0x0, Pitch = (short)0x0, CharacterWidth =
(float)0, Weight = (float)0, Slant =
(com.sun.star.awt.FontSlant)DONTKNOW, Underline = (short)0x4,
Strikeout = (short)0x3, Orientation = (float)0, Kerning =
(boolean)false, WordLineMode = (boolean)false, Type = (short)0x0 }

should i set this manualy, and in that case, how should i get the system font?

-- 
alex

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Re: fontdescriptor seems to be empty

2011-08-02 Thread alex bodnaru
On 08/03/2011 02:38 AM, alex bodnaru wrote:
 hello friends,

 i wish to use the fontdescriptor of a control, but i'm receiving an
 empty structure:
 (com.sun.star.awt.FontDescriptor){ Name = (string), Height =
 (short)0x0, Width = (short)0x0, StyleName = (string), Family =
 (short)0x0, CharSet = (short)0x0, Pitch = (short)0x0, CharacterWidth =
 (float)0, Weight = (float)0, Slant =
 (com.sun.star.awt.FontSlant)DONTKNOW, Underline = (short)0x4,
 Strikeout = (short)0x3, Orientation = (float)0, Kerning =
 (boolean)false, WordLineMode = (boolean)false, Type = (short)0x0 }

 should i set this manualy, and in that case, how should i get the system font?

could anybody help please?

alex

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: fontdescriptor seems to be empty

2011-08-02 Thread alex bodnaru
On 08/03/2011 05:00 AM, Andrew Douglas Pitonyak wrote:
 On 08/02/2011 09:52 PM, alex bodnaru wrote:
 On 08/03/2011 02:38 AM, alex bodnaru wrote:
 hello friends,

 i wish to use the fontdescriptor of a control, but i'm receiving an
 empty structure:
 (com.sun.star.awt.FontDescriptor){ Name = (string), Height =
 (short)0x0, Width = (short)0x0, StyleName = (string), Family =
 (short)0x0, CharSet = (short)0x0, Pitch = (short)0x0, CharacterWidth =
 (float)0, Weight = (float)0, Slant =
 (com.sun.star.awt.FontSlant)DONTKNOW, Underline = (short)0x4,
 Strikeout = (short)0x3, Orientation = (float)0, Kerning =
 (boolean)false, WordLineMode = (boolean)false, Type = (short)0x0 }

 should i set this manualy, and in that case, how should i get the system 
 font?

 could anybody help please?

 alex

 Do you want to read it or set it?

 Can you provide a code snippet?

the question on the forum was mine too. thanks for answering.
i'd like to use getStringWidth() on a dialog made with a macro.
i'm trying, however i might need some further indication.

alex

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Re: fontdescriptor seems to be empty

2011-08-02 Thread alex bodnaru
On 08/03/2011 05:00 AM, Andrew Douglas Pitonyak wrote:
 On 08/02/2011 09:52 PM, alex bodnaru wrote:
 On 08/03/2011 02:38 AM, alex bodnaru wrote:
 hello friends,

 i wish to use the fontdescriptor of a control, but i'm receiving an
 empty structure:
 (com.sun.star.awt.FontDescriptor){ Name = (string), Height =
 (short)0x0, Width = (short)0x0, StyleName = (string), Family =
 (short)0x0, CharSet = (short)0x0, Pitch = (short)0x0, CharacterWidth =
 (float)0, Weight = (float)0, Slant =
 (com.sun.star.awt.FontSlant)DONTKNOW, Underline = (short)0x4,
 Strikeout = (short)0x3, Orientation = (float)0, Kerning =
 (boolean)false, WordLineMode = (boolean)false, Type = (short)0x0 }

 should i set this manualy, and in that case, how should i get the system 
 font?

 could anybody help please?

 alex

 Do you want to read it or set it?

 Can you provide a code snippet?

my window is a dialog box. how could i get to it's component that implements 
xfont?

-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted