# 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`;

textView | textView displaying the current TeX source
pdfView | view displaying the current preview
textWindow | window displaying the current document
pdfWindow | window displaying the current pdf preview
outputWindow | No description.
outputText | No description.
popupButton | No description.
projectPanel | No description.
projectName | No description.
requestWindow | No description.
printRequestPanel | No description.
linePanel | No description.
lineBox | No description.
typesetButton | No description.
tags | No description.
whichEngine | 0 = tex, 1 = latex, 2 = bibtex
myTexEngine | No description.
myLatexEngine | No description.
myDisplayPref | No description.
myColorPref | No description.
myProgramPref | No description.
colorSyntax | No description.
matchParen | No description.
tagLine | No description.
texCommand | connected to the command textField on the errors panel
outputPipe | No description.
inputPipe | No description.
writeHandle | No description.
readHandle | No description.
aString | holds the content of the tex document
texTask | No description.
bibTask | No description.
indexTask | No description.
startDate | No description.
texRep | No description.
myPrefResult | No description.
fileIsTex | No description.
myImageType | No description.
errorLine | No description.
errorNumber | No description.
whichError | No description.
colorEnd | No description.
colorTE | No description.
colorLocation | No description.
tagTE | No description.
tagLocation | No description.
makeError | No description.
returnline | No description.
prefWindow | No 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.