syncPdf(QString,int,bool)

Parent Previous Next

TW.app.syncPdf(fullFileName : QString, lineNumber: int, showPreview: bool)


This procedure appears to require that the document is open already.


As you may have more than one document open, the first parameter is the full file path of the document that you wish to move to line number  (as shown in the source editor) in the previewer, then the last parameter says whether to bring the previewer forward or not true/false.


If the correct document is already the active document then  TW.target.fileName could be used for full file name


Possible uses could include a choice made by the User in a drop down box which maps to an array of already gathered and assigned line numbers.





From Tw source


syncPdf(const QString& sourceFile, int lineNo, bool activatePreview);


http://www.google.com/codesearch#TCAOwTxChU8/trunk/src/TWApp.h&q=syncPdf%20package:http://texworks%5C.googlecode%5C.com&l=215



Created with the Personal Edition of HelpNDoc: Free PDF documentation generator