");
/***** Row for left and right icons *****/
HTM_DIV_Begin ("class=\"FRAME_ICO\"");
/* Contextual icons at left */
if (FunctionToDrawContextualIcons)
{
HTM_DIV_Begin ("class=\"FRAME_ICO_LEFT\"");
FunctionToDrawContextualIcons ();
HTM_DIV_End ();
}
/* Icons at right: help and close */
HTM_DIV_Begin ("class=\"FRAME_ICO_RIGHT\"");
if (HelpLink) // Link to help
{
fprintf (Gbl.F.Out,"
",
Hlp_WIKI,HelpLink);
Ico_PutDivIcon ("CONTEXT_OPT HLP_HIGHLIGHT",
"question.svg",Txt_Help);
fprintf (Gbl.F.Out,"");
}
if (Closable == Box_CLOSABLE) // Icon to close the box
{
fprintf (Gbl.F.Out,"
",
Gbl.Box.Ids[Gbl.Box.Nested]);
Ico_PutDivIcon ("CONTEXT_OPT HLP_HIGHLIGHT",
"close.svg",Txt_Close);
fprintf (Gbl.F.Out,"");
}
HTM_DIV_End ();
/***** End row for left and right icons *****/
HTM_DIV_End ();
/***** Frame title *****/
if (Title)
{
HTM_DIV_Begin ("class=\"FRAME_TITLE %s\"",
Gbl.Box.Nested ? "FRAME_TITLE_SMALL" :
"FRAME_TITLE_BIG");
fprintf (Gbl.F.Out,"%s",Title);
HTM_DIV_End ();
}
}
void Box_EndBoxTable (void)
{
HTM_TABLE_End ();
Box_EndBox ();
}
void Box_EndBoxTableWithButton (Btn_Button_t Button,const char *TxtButton)
{
HTM_TABLE_End ();
Box_EndBoxWithButton (Button,TxtButton);
}
void Box_EndBoxWithButton (Btn_Button_t Button,const char *TxtButton)
{
Btn_PutButton (Button,TxtButton);
Box_EndBox ();
}
void Box_EndBox (void)
{
/***** Check level of nesting *****/
if (Gbl.Box.Nested < 0)
Lay_ShowErrorAndExit ("Trying to end a box not open.");
/***** Free memory allocated for box id string *****/
if (Gbl.Box.Ids[Gbl.Box.Nested])
free (Gbl.Box.Ids[Gbl.Box.Nested]);
/***** End box and box container *****/
HTM_DIV_End ();
HTM_DIV_End ();
/***** Decrease level of nesting *****/
Gbl.Box.Nested--;
}