aligned_header = FALSE; if (state->align_stack != NULL) { intn type;
header = (LO_HeadingStruct*)lo_NewElement(context, state, LO_HEADING, NULL, 0); XP_ASSERT(header); if (!header) return;
lo_CloseHeader(MWContext *context, lo_DocState *state){	Bool aligned_header;	/*	 * Check the top of the alignment stack to see if we are closing	 * a header that explicitly set an alignment.	 */	aligned_header = FALSE;	if (state->align_stack != NULL)	{		intn type;		type = state->align_stack->type;		if ((type == P_HEADER_1)||(type == P_HEADER_2)||		    (type == P_HEADER_3)||(type == P_HEADER_4)||		    (type == P_HEADER_5)||(type == P_HEADER_6))		{			aligned_header = TRUE;		}	}	lo_SetLineBreakState ( context, state, FALSE, LO_LINEFEED_BREAK_HARD, 1, FALSE);	if (aligned_header != FALSE)	{		lo_AlignStack *aptr;		aptr = lo_PopAlignment(state);		if (aptr != NULL)		{			XP_DELETE(aptr);		}	}		/*	 * Now that we are on the line after the header, we	 * don't want the next blank line to be the height of the probably	 * large header, so reset it to the default here.	 */	state->line_height = state->default_line_height;}