📄 rtpgraph.cpp
字号:
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_INDENT ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_1_5 ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_BULLET ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = Tabs.SetInterval( 1.0 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_ITALIC | LNFONTATTRIBUTEFLAGS_UNDERLINE ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_COURIER ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_RED ) )
throw error;
if ( error = FS.SetPointSize( 10 ) )
throw error;
break;
case 1:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 1.0 ) )
throw error;
if ( error = PS.SetRightMargin( 10.0 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_RIGHT ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NONE ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = Tabs.SetInterval( 3.0 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_PLAIN ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_HELVETICA ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_BLUE ) )
throw error;
if ( error = FS.SetPointSize( 18 ) )
throw error;
break;
case 2:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 2.5 ) )
throw error;
if ( error = PS.SetRightMargin( 8.5 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_FULL ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NONE ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_CENTIMETERS ) )
throw error;
if ( error = Tabs.SetInterval( 2.0 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_STRIKETHROUGH ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_ROMAN ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_MAGENTA ) )
throw error;
if ( error = FS.SetPointSize( 12 ) )
throw error;
break;
case 3:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 0.75 ) )
throw error;
if ( error = PS.SetRightMargin( 10.25 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_CENTER ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NONE ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = Tabs.SetInterval( 1.0 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_UNDERLINE ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_COURIER ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_GREEN ) )
throw error;
if ( error = FS.SetPointSize( 24 ) )
throw error;
break;
case 4: // Use this one for setting back to plain styles.
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 1.0 ) )
throw error;
if ( error = PS.SetRightMargin( 6.0 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_LEFT ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_INDENT ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NONE ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_SINGLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = Tabs.SetInterval( 0.5 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_PLAIN ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_COURIER ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_BLACK ) )
throw error;
if ( error = FS.SetPointSize( 9 ) )
throw error;
break;
case 5:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 3.0 ) )
throw error;
if ( error = PS.SetRightMargin( 8.0 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_LEFT ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_1_5 ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NUMBERED ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_1_5 ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_1_5 ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_CENTIMETERS ) )
throw error;
if ( error = Tabs.SetInterval( 1.0 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_PLAIN | LNFONTATTRIBUTEFLAGS_UNDERLINE ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_HELVETICA ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_DARK_BLUE ) )
throw error;
if ( error = FS.SetPointSize( 18 ) )
throw error;
break;
case 6:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 0.75 ) )
throw error;
if ( error = PS.SetRightMargin( 4.25 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_RIGHT ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_BULLET ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = Tabs.SetInterval( 0.5 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_PLAIN ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_ROMAN ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_DARK_CYAN ) )
throw error;
if ( error = FS.SetPointSize( 10 ) )
throw error;
break;
case 7:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 0.75 ) )
throw error;
if ( error = PS.SetRightMargin( 10.25 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_CENTER ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NUMBERED ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = Tabs.SetInterval( 1.0 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_PLAIN ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_ROMAN ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_GRAY ) )
throw error;
if ( error = FS.SetPointSize( 10 ) )
throw error;
break;
case 8:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 1.5 ) )
throw error;
if ( error = PS.SetRightMargin( 9.5 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_FULL ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NONE ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_CENTIMETERS ) )
throw error;
if ( error = Tabs.SetInterval( 3.0 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_STRIKETHROUGH ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_HELVETICA ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_DARK_MAGENTA ) )
throw error;
if ( error = FS.SetPointSize( 14 ) )
throw error;
break;
case 9:
// Set specific things in the paragraph style.
if ( error = PS.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = PS.SetLeftMargin( 3.0 ) )
throw error;
if ( error = PS.SetRightMargin( 7.5 ) )
throw error;
if ( error = PS.SetAlignment( LNALIGNMENT_RIGHT ) )
throw error;
if ( error = PS.SetFirstLineIndentation( LNINDENTATION_NONE ) )
throw error;
if ( error = PS.SetLineSpacing( LNLINESPACING_SINGLE ) )
throw error;
if ( error = PS.SetListStyle( LNLISTSTYLE_NONE ) )
throw error;
if ( error = PS.SetSpacingAbove( LNLINESPACING_DOUBLE ) )
throw error;
if ( error = PS.SetSpacingBelow( LNLINESPACING_DOUBLE ) )
throw error;
// Set up the tabs for this current paragraph style.
if ( error = Tabs.SetUnits( LNUNITS_INCHES ) )
throw error;
if ( error = Tabs.SetInterval( 1.25 ) )
throw error;
// Set specific things in the font style.
if ( error = FS.SetAttributes( LNFONTATTRIBUTEFLAGS_PLAIN | LNFONTATTRIBUTEFLAGS_ITALIC ) )
throw error;
if ( error = FS.SetFaceID( LNFACEID_COURIER ) )
throw error;
if ( error = FS.SetColor( LNCOLOR_BLUE ) )
throw error;
if ( error = FS.SetPointSize( 12 ) )
throw error;
break;
}
} // END SetUpStyles()
// END rtpgraph.cpp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -