languages/gen_lyx.py
def insert_table(self, table):
		"""
		Insert lyx table into the generator output.
		Arguments:
			table 		Lyx table in the following format:
							[tableOptions, tableCells] where:
								tableOptions has following format:
									[tagName, tagOptions] where:
										tagName - name of HTML options tag
										tagOptions - dictionary with HTML tag
													 options
								tableCells has following format:
									[[cellx0y0, cellx1y0 ... , cellxny0],
									 [cellx0y1, cellx1y1 ... , cellxny1],
													...
									 [cellx0ym, cellx1ym ... , cellxnym]]
									 for the table of width "n" and height "m".
									 Each "cell" object has structure of list
									 as defined in "insert_table_cell" function.
		"""
		tableOptions = table[0]
		cells = table[1]
		
		self.insert_layout("Standard")
		self.wr_line("\\noindent\n")
		self.wr_line("\\align center\n")
		
		self.insert_inset("Tabular")
		tableDimension = {"version" : "3", "rows" : '{}'.format(len(cells)), 
						"columns" : '{}'.format(len(cells[0]))}
		self.insert_html_table_tag("lyxtabular", tableDimension, True)
		
		for option in tableOptions:
			self.insert_html_table_tag(option[0], tagOptions=option[1],
											endTag=False)
		
		for row in cells:
			self.insert_html_table_tag("row", endTag=True)
			for cell in row:
				self.insert_table_cell(cell)
			self.commit_append_line(1)
	
		self.commit_append_line(1)
		self.wr_line("\n")
		self.commit_append_line(1)
		self.wr_line("\n")
		self.wr_line("\n")
		self.commit_append_line(1)

		Insert lyx table into the generator output.
		Arguments:
			table 		Lyx table in the following format:
							[tableOptions, tableCells] where:
								tableOptions has following format:
									[tagName, tagOptions] where:
										tagName - name of HTML options tag
										tagOptions - dictionary with HTML tag
													 options
								tableCells has following format:
									[[cellx0y0, cellx1y0 ... , cellxny0],
									 [cellx0y1, cellx1y1 ... , cellxny1],
													...
									 [cellx0ym, cellx1ym ... , cellxnym]]
									 for the table of width "n" and height "m".
									 Each "cell" object has structure of list
									 as defined in "insert_table_cell" function.
		
Insert lyx table into the generator output.
Insert lyx table into the generator output .
def insert_table(self, table):
		tableOptions = table[0]
		cells = table[1]
		self.insert_layout("Standard")
		self.wr_line("\\noindent\n")
		self.wr_line("\\align center\n")
		self.insert_inset("Tabular")
		tableDimension = {"version" : "3", "rows" : '{}'.format(len(cells)), 
						"columns" : '{}'.format(len(cells[0]))}
		self.insert_html_table_tag("lyxtabular", tableDimension, True)
		for option in tableOptions:
			self.insert_html_table_tag(option[0], tagOptions=option[1],
											endTag=False)
		for row in cells:
			self.insert_html_table_tag("row", endTag=True)
			for cell in row:
				self.insert_table_cell(cell)
			self.commit_append_line(1)
		self.commit_append_line(1)
		self.wr_line("\n")
		self.commit_append_line(1)
		self.wr_line("\n")
		self.wr_line("\n")
		self.commit_append_line(1)
def insert_table ( self , table ) : tableOptions = table [ 0 ] cells = table [ 1 ] self . insert_layout ( "Standard" ) self . wr_line ( "\\noindent\n" ) self . wr_line ( "\\align center\n" ) self . insert_inset ( "Tabular" ) tableDimension = { "version" : "3" , "rows" : '{}' . format ( len ( cells ) ) , "columns" : '{}' . format ( len ( cells [ 0 ] ) ) } self . insert_html_table_tag ( "lyxtabular" , tableDimension , True ) for option in tableOptions : self . insert_html_table_tag ( option [ 0 ] , tagOptions = option [ 1 ] , endTag = False ) for row in cells : self . insert_html_table_tag ( "row" , endTag = True ) for cell in row : self . insert_table_cell ( cell ) self . commit_append_line ( 1 ) self . commit_append_line ( 1 ) self . wr_line ( "\n" ) self . commit_append_line ( 1 ) self . wr_line ( "\n" ) self . wr_line ( "\n" ) self . commit_append_line ( 1 )
Insert lyx table into the generator output.
Insert lyx table into the generator output .
"""
		Insert lyx table into the generator output.
		Arguments:
			table 		Lyx table in the following format:
							[tableOptions, tableCells] where:
								tableOptions has following format:
									[tagName, tagOptions] where:
										tagName - name of HTML options tag
										tagOptions - dictionary with HTML tag
													 options
								tableCells has following format:
									[[cellx0y0, cellx1y0 ... , cellxny0],
									 [cellx0y1, cellx1y1 ... , cellxny1],
													...
									 [cellx0ym, cellx1ym ... , cellxnym]]
									 for the table of width "n" and height "m".
									 Each "cell" object has structure of list
									 as defined in "insert_table_cell" function.
		"""
self
table
table           Lyx table in the following format
[tableOptions, tableCells] where:
tableOptions has following format:
[tagName, tagOptions] where:
tagName - name of HTML options tag
tagOptions - dictionary with HTML tag
options
tableCells has following format:
[[cellx0y0, cellx1y0 ...
[ tableOptions tableCells ] where : tableOptions has following format : [ tagName tagOptions ] where : tagName - name of HTML options tag tagOptions - dictionary with HTML tag options tableCells has following format : [[ cellx0y0 cellx1y0 ...