LibreOffice Module filter (master) 1
Functions | Variables
js2hxx Namespace Reference

Functions

def get_var_decl (n)
 

Variables

int MAX_LINES = 150
 
string VARIABLE_NAME = 'aSVGScript'
 
 script_name = os.path.basename( sys.argv[0] )
 
 infile_name = sys.argv[1]
 
 outfile_name = sys.argv[2]
 
 infile = open( infile_name, 'r' )
 
list in_lines = [line.rstrip() for line in infile.readlines()]
 
list valid_lines = []
 
bool is_multiline_comment = False
 
int lineNumber = 0
 
int emptyLineCount = 0
 
 index = line.find('"')
 
 sline = line.strip()
 
 dline = line.replace( 'NAVDBG.on', 'NAVDBG.off' )
 
string escaped_line = '%s' % dline
 
int total_valid_lines = len (valid_lines) + 2
 
int total_fragments = total_valid_lines / MAX_LINES
 
list out_lines = []
 
int i = 2
 
int fragment = 0
 
 outfile = open( outfile_name, 'w' )
 
string header_info = '/* !! This file is auto-generated, do not edit !! */'
 

Function Documentation

◆ get_var_decl()

def js2hxx.get_var_decl (   n)

Definition at line 26 of file js2hxx.py.

Variable Documentation

◆ dline

js2hxx.dline = line.replace( 'NAVDBG.on', 'NAVDBG.off' )

Definition at line 76 of file js2hxx.py.

◆ emptyLineCount

int js2hxx.emptyLineCount = 0

Definition at line 47 of file js2hxx.py.

◆ escaped_line

string js2hxx.escaped_line = '%s' % dline

Definition at line 80 of file js2hxx.py.

◆ fragment

int js2hxx.fragment = 0

Definition at line 115 of file js2hxx.py.

◆ header_info

string js2hxx.header_info = '/* !! This file is auto-generated, do not edit !! */'

Definition at line 142 of file js2hxx.py.

◆ i

int js2hxx.i = 2

Definition at line 114 of file js2hxx.py.

◆ in_lines

list js2hxx.in_lines = [line.rstrip() for line in infile.readlines()]

Definition at line 40 of file js2hxx.py.

◆ index

js2hxx.index = line.find('"')

◆ infile

js2hxx.infile = open( infile_name, 'r' )

Definition at line 39 of file js2hxx.py.

◆ infile_name

js2hxx.infile_name = sys.argv[1]

Definition at line 30 of file js2hxx.py.

◆ is_multiline_comment

bool js2hxx.is_multiline_comment = False

Definition at line 45 of file js2hxx.py.

◆ lineNumber

int js2hxx.lineNumber = 0

Definition at line 46 of file js2hxx.py.

◆ MAX_LINES

int js2hxx.MAX_LINES = 150

Definition at line 23 of file js2hxx.py.

◆ out_lines

list js2hxx.out_lines = []

Definition at line 108 of file js2hxx.py.

◆ outfile

js2hxx.outfile = open( outfile_name, 'w' )

Definition at line 135 of file js2hxx.py.

◆ outfile_name

js2hxx.outfile_name = sys.argv[2]

Definition at line 31 of file js2hxx.py.

◆ script_name

js2hxx.script_name = os.path.basename( sys.argv[0] )

Definition at line 29 of file js2hxx.py.

◆ sline

js2hxx.sline = line.strip()

Definition at line 54 of file js2hxx.py.

◆ total_fragments

int js2hxx.total_fragments = total_valid_lines / MAX_LINES

Definition at line 102 of file js2hxx.py.

◆ total_valid_lines

int js2hxx.total_valid_lines = len (valid_lines) + 2

Definition at line 101 of file js2hxx.py.

◆ valid_lines

list js2hxx.valid_lines = []

Definition at line 44 of file js2hxx.py.

◆ VARIABLE_NAME

string js2hxx.VARIABLE_NAME = 'aSVGScript'

Definition at line 24 of file js2hxx.py.