MyDocument

Inherits From:
NSDocument

Declared In:
MyDocument.h

Class Description

No class description.


Symbolic Constants

Synopsis:

NUMBEROFERRORS  20
isTeX  0
isPDF  1
isEPS  2
isJPG  3
isTIFF  4


Instance Variables

id textView;
id pdfView;
id textWindow;
id pdfWindow;
id outputWindow;
id outputText;
id popupButton;
id projectPanel;
id projectName;
id requestWindow;
id printRequestPanel;
id linePanel;
id lineBox;
id typesetButton;
id tags;
int whichEngine;
NSString *myTexEngine;
NSString *myLatexEngine;
int myDisplayPref;
int myColorPref;
int myProgramPref;
BOOL colorSyntax;
BOOL matchParen;
BOOL tagLine;
NSTextField *texCommand;
NSPipe *outputPipe;
NSPipe *inputPipe;
NSFileHandle *writeHandle;
NSFileHandle *readHandle;
NSString *aString;
NSTask *texTask;
NSTask *bibTask;
NSTask *indexTask;
NSDate *startDate;
NSPDFImageRep *texRep;
int myPrefResult;
BOOL fileIsTex;
int myImageType;
int errorLine[NUMBEROFERRORS];
int errorNumber;
int whichError;
unsigned colorStart, colorEnd;
NSTimer *colorTE;
unsigned colorLocation;
NSTimer *tagTE;
unsigned tagLocation;
BOOL makeError;
BOOL returnline;
id prefWindow;

textViewtextView displaying the current TeX source
pdfViewview displaying the current preview
textWindowwindow displaying the current document
pdfWindowwindow displaying the current pdf preview
outputWindowNo description.
outputTextNo description.
popupButtonNo description.
projectPanelNo description.
projectNameNo description.
requestWindowNo description.
printRequestPanelNo description.
linePanelNo description.
lineBoxNo description.
typesetButtonNo description.
tagsNo description.
whichEngine0 = tex, 1 = latex, 2 = bibtex
myTexEngineNo description.
myLatexEngineNo description.
myDisplayPrefNo description.
myColorPrefNo description.
myProgramPrefNo description.
colorSyntaxNo description.
matchParenNo description.
tagLineNo description.
texCommandconnected to the command textField on the errors panel
outputPipeNo description.
inputPipeNo description.
writeHandleNo description.
readHandleNo description.
aStringholds the content of the tex document
texTaskNo description.
bibTaskNo description.
indexTaskNo description.
startDateNo description.
texRepNo description.
myPrefResultNo description.
fileIsTexNo description.
myImageTypeNo description.
errorLineNo description.
errorNumberNo description.
whichErrorNo description.
colorEndNo description.
colorTENo description.
colorLocationNo description.
tagTENo description.
tagLocationNo description.
makeErrorNo description.
returnlineNo description.
prefWindowNo description.


Method Types

- doTex:
- doLatex:
- doBibtex:
- doIndex:
- doTypeset:
- doTemplate:
- doTexCommand:
- printSource:
- quitPreferences:
- okPreferences:
- okForRequest:
- okForPrintRequest:
- close
- doLine:
- doTag:
- fixTags:
- chooseProgram:
- saveFinished:didSave:contextInfo:
- pdfView
- displayPref
- colorPref
- doBibJob
- doIndexJob
- toLine:
- doError:
- fixColor::
- fixColor1:
- fixColorBlack:
- textDidChange:
- setupTags
- imageType
- textView:shouldChangeTextInRange:replacementString:
- textView:willChangeSelectionFromCharacterRange:toCharacterRange:

Instance Methods

chooseProgram:

- (void)chooseProgram:sender

No method description.


close

- (void)close

No method description.


colorPref

- (int)colorPref

No method description.


displayPref

- (int)displayPref

No method description.


doBibJob

- (void)doBibJob

No method description.


doBibtex:

- (void)doBibtex:sender

No method description.


doError:

- (void)doError:sender

No method description.


doIndex:

- (void)doIndex:sender

No method description.


doIndexJob

- (void)doIndexJob

No method description.


doLatex:

- (void)doLatex:sender

No method description.


doLine:

- (void)doLine:sender

No method description.


doTag:

- (void)doTag:sender

No method description.


doTemplate:

- (void)doTemplate:sender

No method description.


doTex:

- (void)doTex:sender

No method description.


doTexCommand:

- (void)doTexCommand:sender

No method description.


doTypeset:

- (void)doTypeset:sender

No method description.


fixColor1:

- (void)fixColor1:sender

No method description.


fixColor::

- (void)fixColor:(unsigned)from :(unsigned)to

No method description.


fixColorBlack:

- (void)fixColorBlack:sender

No method description.


fixTags:

- (void)fixTags:sender

No method description.


imageType

- (int)imageType

No method description.


okForPrintRequest:

- (void)okForPrintRequest:sender

No method description.


okForRequest:

- (void)okForRequest:sender

No method description.


okPreferences:

- (void)okPreferences:sender

No method description.


pdfView

- (id)pdfView

No method description.


printSource:

- (void)printSource:sender

No method description.


quitPreferences:

- (void)quitPreferences:sender

No method description.


saveFinished:didSave:contextInfo:

- (void)saveFinished:(NSDocument *)doc didSave:(BOOL)didSave contextInfo:(void *)contextInfo

No method description.


setupTags

- (void)setupTags

No method description.


textDidChange:

- (void)textDidChange:(NSNotification *)aNotification

No method description.


textView:shouldChangeTextInRange:replacementString:

- (BOOL)textView:(NSTextView *)aTextView shouldChangeTextInRange:(NSRange)affectedCharRange replacementString:(NSString *)replacementString

No method description.


textView:willChangeSelectionFromCharacterRange:toCharacterRange:

- (NSRange)textView:(NSTextView *)aTextView willChangeSelectionFromCharacterRange:(NSRange)oldSelectedCharRange toCharacterRange:(NSRange)newSelectedCharRange

No method description.


toLine:

- (void)toLine:(int)line

No method description.


Version 1.1 Copyright ©2001. All Rights Reserved.