Add a variable wxfilename which holds the filename of the document.