Lines Matching refs:rFormat
466 void SmFontSizeDialog::ReadFrom(const SmFormat &rFormat) in ReadFrom() argument
470 Sm100th_mmToPts( rFormat.GetBaseSize().Height() ) ) ); in ReadFrom()
472 aTextSize .SetValue( rFormat.GetRelSize(SIZ_TEXT) ); in ReadFrom()
473 aIndexSize .SetValue( rFormat.GetRelSize(SIZ_INDEX) ); in ReadFrom()
474 aFunctionSize.SetValue( rFormat.GetRelSize(SIZ_FUNCTION) ); in ReadFrom()
475 aOperatorSize.SetValue( rFormat.GetRelSize(SIZ_OPERATOR) ); in ReadFrom()
476 aBorderSize .SetValue( rFormat.GetRelSize(SIZ_LIMITS) ); in ReadFrom()
480 void SmFontSizeDialog::WriteTo(SmFormat &rFormat) const in WriteTo()
482 rFormat.SetBaseSize( Size(0, SmPtsTo100th_mm( static_cast< long >(aBaseSize.GetValue()))) ); in WriteTo()
484 rFormat.SetRelSize(SIZ_TEXT, (sal_uInt16) aTextSize .GetValue()); in WriteTo()
485 rFormat.SetRelSize(SIZ_INDEX, (sal_uInt16) aIndexSize .GetValue()); in WriteTo()
486 rFormat.SetRelSize(SIZ_FUNCTION, (sal_uInt16) aFunctionSize.GetValue()); in WriteTo()
487 rFormat.SetRelSize(SIZ_OPERATOR, (sal_uInt16) aOperatorSize.GetValue()); in WriteTo()
488 rFormat.SetRelSize(SIZ_LIMITS, (sal_uInt16) aBorderSize .GetValue()); in WriteTo()
490 const Size aTmp (rFormat.GetBaseSize()); in WriteTo()
492 rFormat.SetFontSize(i, aTmp); in WriteTo()
494 rFormat.RequestApplyChanges(); in WriteTo()
580 void SmFontTypeDialog::ReadFrom(const SmFormat &rFormat) in ReadFrom() argument
592 aVariableFont.Insert( rFormat.GetFont(FNT_VARIABLE) ); in ReadFrom()
593 aFunctionFont.Insert( rFormat.GetFont(FNT_FUNCTION) ); in ReadFrom()
594 aNumberFont .Insert( rFormat.GetFont(FNT_NUMBER) ); in ReadFrom()
595 aTextFont .Insert( rFormat.GetFont(FNT_TEXT) ); in ReadFrom()
596 aSerifFont .Insert( rFormat.GetFont(FNT_SERIF) ); in ReadFrom()
597 aSansFont .Insert( rFormat.GetFont(FNT_SANS) ); in ReadFrom()
598 aFixedFont .Insert( rFormat.GetFont(FNT_FIXED) ); in ReadFrom()
602 void SmFontTypeDialog::WriteTo(SmFormat &rFormat) const in WriteTo()
614 rFormat.SetFont( FNT_VARIABLE, aVariableFont.Get(0) ); in WriteTo()
615 rFormat.SetFont( FNT_FUNCTION, aFunctionFont.Get(0) ); in WriteTo()
616 rFormat.SetFont( FNT_NUMBER, aNumberFont .Get(0) ); in WriteTo()
617 rFormat.SetFont( FNT_TEXT, aTextFont .Get(0) ); in WriteTo()
618 rFormat.SetFont( FNT_SERIF, aSerifFont .Get(0) ); in WriteTo()
619 rFormat.SetFont( FNT_SANS, aSansFont .Get(0) ); in WriteTo()
620 rFormat.SetFont( FNT_FIXED, aFixedFont .Get(0) ); in WriteTo()
622 rFormat.RequestApplyChanges(); in WriteTo()
984 void SmDistanceDialog::ReadFrom(const SmFormat &rFormat) in ReadFrom() argument
986 Categories[0]->SetValue(0, rFormat.GetDistance(DIS_HORIZONTAL)); in ReadFrom()
987 Categories[0]->SetValue(1, rFormat.GetDistance(DIS_VERTICAL)); in ReadFrom()
988 Categories[0]->SetValue(2, rFormat.GetDistance(DIS_ROOT)); in ReadFrom()
989 Categories[1]->SetValue(0, rFormat.GetDistance(DIS_SUPERSCRIPT)); in ReadFrom()
990 Categories[1]->SetValue(1, rFormat.GetDistance(DIS_SUBSCRIPT)); in ReadFrom()
991 Categories[2]->SetValue(0, rFormat.GetDistance(DIS_NUMERATOR)); in ReadFrom()
992 Categories[2]->SetValue(1, rFormat.GetDistance(DIS_DENOMINATOR)); in ReadFrom()
993 Categories[3]->SetValue(0, rFormat.GetDistance(DIS_FRACTION)); in ReadFrom()
994 Categories[3]->SetValue(1, rFormat.GetDistance(DIS_STROKEWIDTH)); in ReadFrom()
995 Categories[4]->SetValue(0, rFormat.GetDistance(DIS_UPPERLIMIT)); in ReadFrom()
996 Categories[4]->SetValue(1, rFormat.GetDistance(DIS_LOWERLIMIT)); in ReadFrom()
997 Categories[5]->SetValue(0, rFormat.GetDistance(DIS_BRACKETSIZE)); in ReadFrom()
998 Categories[5]->SetValue(1, rFormat.GetDistance(DIS_BRACKETSPACE)); in ReadFrom()
999 Categories[5]->SetValue(3, rFormat.GetDistance(DIS_NORMALBRACKETSIZE)); in ReadFrom()
1000 Categories[6]->SetValue(0, rFormat.GetDistance(DIS_MATRIXROW)); in ReadFrom()
1001 Categories[6]->SetValue(1, rFormat.GetDistance(DIS_MATRIXCOL)); in ReadFrom()
1002 Categories[7]->SetValue(0, rFormat.GetDistance(DIS_ORNAMENTSIZE)); in ReadFrom()
1003 Categories[7]->SetValue(1, rFormat.GetDistance(DIS_ORNAMENTSPACE)); in ReadFrom()
1004 Categories[8]->SetValue(0, rFormat.GetDistance(DIS_OPERATORSIZE)); in ReadFrom()
1005 Categories[8]->SetValue(1, rFormat.GetDistance(DIS_OPERATORSPACE)); in ReadFrom()
1006 Categories[9]->SetValue(0, rFormat.GetDistance(DIS_LEFTSPACE)); in ReadFrom()
1007 Categories[9]->SetValue(1, rFormat.GetDistance(DIS_RIGHTSPACE)); in ReadFrom()
1008 Categories[9]->SetValue(2, rFormat.GetDistance(DIS_TOPSPACE)); in ReadFrom()
1009 Categories[9]->SetValue(3, rFormat.GetDistance(DIS_BOTTOMSPACE)); in ReadFrom()
1011 bScaleAllBrackets = rFormat.IsScaleNormalBrackets(); in ReadFrom()
1020 void SmDistanceDialog::WriteTo(SmFormat &rFormat) /*const*/ in WriteTo() argument
1026 rFormat.SetDistance( DIS_HORIZONTAL, Categories[0]->GetValue(0) ); in WriteTo()
1027 rFormat.SetDistance( DIS_VERTICAL, Categories[0]->GetValue(1) ); in WriteTo()
1028 rFormat.SetDistance( DIS_ROOT, Categories[0]->GetValue(2) ); in WriteTo()
1029 rFormat.SetDistance( DIS_SUPERSCRIPT, Categories[1]->GetValue(0) ); in WriteTo()
1030 rFormat.SetDistance( DIS_SUBSCRIPT, Categories[1]->GetValue(1) ); in WriteTo()
1031 rFormat.SetDistance( DIS_NUMERATOR, Categories[2]->GetValue(0) ); in WriteTo()
1032 rFormat.SetDistance( DIS_DENOMINATOR, Categories[2]->GetValue(1) ); in WriteTo()
1033 rFormat.SetDistance( DIS_FRACTION, Categories[3]->GetValue(0) ); in WriteTo()
1034 rFormat.SetDistance( DIS_STROKEWIDTH, Categories[3]->GetValue(1) ); in WriteTo()
1035 rFormat.SetDistance( DIS_UPPERLIMIT, Categories[4]->GetValue(0) ); in WriteTo()
1036 rFormat.SetDistance( DIS_LOWERLIMIT, Categories[4]->GetValue(1) ); in WriteTo()
1037 rFormat.SetDistance( DIS_BRACKETSIZE, Categories[5]->GetValue(0) ); in WriteTo()
1038 rFormat.SetDistance( DIS_BRACKETSPACE, Categories[5]->GetValue(1) ); in WriteTo()
1039 rFormat.SetDistance( DIS_MATRIXROW, Categories[6]->GetValue(0) ); in WriteTo()
1040 rFormat.SetDistance( DIS_MATRIXCOL, Categories[6]->GetValue(1) ); in WriteTo()
1041 rFormat.SetDistance( DIS_ORNAMENTSIZE, Categories[7]->GetValue(0) ); in WriteTo()
1042 rFormat.SetDistance( DIS_ORNAMENTSPACE, Categories[7]->GetValue(1) ); in WriteTo()
1043 rFormat.SetDistance( DIS_OPERATORSIZE, Categories[8]->GetValue(0) ); in WriteTo()
1044 rFormat.SetDistance( DIS_OPERATORSPACE, Categories[8]->GetValue(1) ); in WriteTo()
1045 rFormat.SetDistance( DIS_LEFTSPACE, Categories[9]->GetValue(0) ); in WriteTo()
1046 rFormat.SetDistance( DIS_RIGHTSPACE, Categories[9]->GetValue(1) ); in WriteTo()
1047 rFormat.SetDistance( DIS_TOPSPACE, Categories[9]->GetValue(2) ); in WriteTo()
1048 rFormat.SetDistance( DIS_BOTTOMSPACE, Categories[9]->GetValue(3) ); in WriteTo()
1049 rFormat.SetDistance( DIS_NORMALBRACKETSIZE, Categories[5]->GetValue(3) ); in WriteTo()
1051 rFormat.SetScaleNormalBrackets( bScaleAllBrackets ); in WriteTo()
1053 rFormat.RequestApplyChanges(); in WriteTo()
1094 void SmAlignDialog::ReadFrom(const SmFormat &rFormat) in ReadFrom() argument
1096 switch (rFormat.GetHorAlign()) in ReadFrom()
1119 void SmAlignDialog::WriteTo(SmFormat &rFormat) const in WriteTo()
1122 rFormat.SetHorAlign(AlignLeft); in WriteTo()
1124 rFormat.SetHorAlign(AlignRight); in WriteTo()
1126 rFormat.SetHorAlign(AlignCenter); in WriteTo()
1128 rFormat.RequestApplyChanges(); in WriteTo()