]> git.saurik.com Git - wxWidgets.git/blame - build/script/word_macro.txt
use explicit virtual keyword with overridden virtual methods
[wxWidgets.git] / build / script / word_macro.txt
CommitLineData
cc48c73f
CE
1' This is saved as word macros; opens a pdf and writes out a ps file using
2' laserjet ps driver
96a9f4e8 3' Note that the output dir and hardcoded printer must exist
cc48c73f
CE
4
5Sub wx_ps()
96a9f4e8
CE
6 swxWIN = Environ("WXWIN")
7 do_ps swxWIN & "\docs\pdf\", "wx"
8 do_ps swxWIN & "\contrib\docs\latex\svg", "svg"
9 do_ps swxWIN & "\contrib\docs\latex\ogl", "ogl"
10 do_ps swxWIN & "\contrib\docs\latex\mmedia", "mmedia"
11 do_ps swxWIN & "\contrib\docs\latex\gizmos", "gizmos"
12 do_ps swxWIN & "\contrib\docs\latex\fl", "fl"
13 do_ps swxWIN & "\utils\tex2rtf\docs", "tex2rtf"
cc48c73f
CE
14
15 bye_bye
16End Sub
17
18Sub do_ps(mydir, myfile)
19' wx_ps Macro
20' Macro recorded 04/05/2005 by cje2
21'
96a9f4e8 22 sDAILYIN = Environ("DAILY") & "\in\"
cc48c73f
CE
23 ChangeFileOpenDirectory mydir
24 Documents.Open FileName:=myfile & ".rtf", ConfirmConversions:=False, ReadOnly:= _
25 False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _
26 "", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _
27 Format:=wdOpenFormatAuto
28 ActivePrinter = "\\biolpc22\laserjet"
e822c5c9 29 ActiveDocument.Fields.Update
cc48c73f
CE
30 Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
31 wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
32 Collate:=True, Background:=False, PrintToFile:=True, PrintZoomColumn:=0, _
33 PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0, _
96a9f4e8 34 OutputFileName:=sDAILYIN & myfile & ".ps", Append:=False
cc48c73f 35 ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
96a9f4e8
CE
36 End Sub
37
38Sub bye_bye()
cc48c73f 39
96a9f4e8
CE
40Application.Quit SaveChanges:=wdDoNotSaveChanges
41
cc48c73f 42End Sub