Lines Matching refs:rFont
49 void SvxUnoFontDescriptor::ConvertToFont( const awt::FontDescriptor& rDesc, Font& rFont ) in ConvertToFont() argument
51 rFont.SetName( rDesc.Name ); in ConvertToFont()
52 rFont.SetStyleName( rDesc.StyleName ); in ConvertToFont()
53 rFont.SetSize( Size( rDesc.Width, rDesc.Height ) ); in ConvertToFont()
54 rFont.SetFamily( (FontFamily)rDesc.Family ); in ConvertToFont()
55 rFont.SetCharSet( (CharSet)rDesc.CharSet ); in ConvertToFont()
56 rFont.SetPitch( (FontPitch)rDesc.Pitch ); in ConvertToFont()
57 rFont.SetOrientation( (short)(rDesc.Orientation*10) ); in ConvertToFont()
58 rFont.SetKerning( rDesc.Kerning ); in ConvertToFont()
59 rFont.SetWeight( VCLUnoHelper::ConvertFontWeight(rDesc.Weight) ); in ConvertToFont()
60 rFont.SetItalic( (FontItalic)rDesc.Slant ); in ConvertToFont()
61 rFont.SetUnderline( (FontUnderline)rDesc.Underline ); in ConvertToFont()
62 rFont.SetStrikeout( (FontStrikeout)rDesc.Strikeout ); in ConvertToFont()
63 rFont.SetWordLineMode( rDesc.WordLineMode ); in ConvertToFont()
66 void SvxUnoFontDescriptor::ConvertFromFont( const Font& rFont, awt::FontDescriptor& rDesc ) in ConvertFromFont() argument
68 rDesc.Name = rFont.GetName(); in ConvertFromFont()
69 rDesc.StyleName = rFont.GetStyleName(); in ConvertFromFont()
70 rDesc.Width = sal::static_int_cast< sal_Int16 >(rFont.GetSize().Width()); in ConvertFromFont()
71 rDesc.Height = sal::static_int_cast< sal_Int16 >(rFont.GetSize().Height()); in ConvertFromFont()
72 rDesc.Family = sal::static_int_cast< sal_Int16 >(rFont.GetFamily()); in ConvertFromFont()
73 rDesc.CharSet = rFont.GetCharSet(); in ConvertFromFont()
74 rDesc.Pitch = sal::static_int_cast< sal_Int16 >(rFont.GetPitch()); in ConvertFromFont()
75 rDesc.Orientation = static_cast< float >(rFont.GetOrientation() / 10); in ConvertFromFont()
76 rDesc.Kerning = rFont.IsKerning(); in ConvertFromFont()
77 rDesc.Weight = VCLUnoHelper::ConvertFontWeight( rFont.GetWeight() ); in ConvertFromFont()
78 rDesc.Slant = (awt::FontSlant)rFont.GetItalic(); in ConvertFromFont()
79 rDesc.Underline = sal::static_int_cast< sal_Int16 >(rFont.GetUnderline()); in ConvertFromFont()
80 rDesc.Strikeout = sal::static_int_cast< sal_Int16 >(rFont.GetStrikeout()); in ConvertFromFont()
81 rDesc.WordLineMode = rFont.IsWordLineMode(); in ConvertFromFont()