[BACK]Return to MyDocument.m CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep

Diff for /OpenXM/src/cfep/MyDocument.m between version 1.5 and 1.7

version 1.5, 2006/03/10 11:48:01 version 1.7, 2007/09/29 05:49:23
Line 276  static NSMenuItem *menuItemPrettyPrint = nil;  // pret
Line 276  static NSMenuItem *menuItemPrettyPrint = nil;  // pret
     cmd0 = [self getContentsOfInputCell];      cmd0 = [self getContentsOfInputCell];
         [self prepareOutputCell];          [self prepareOutputCell];
   }else if (onlySelectedArea) {    }else if (onlySelectedArea) {
     [self outputBorderLine: [NSColor yellowColor]];  
     r = [textViewIn selectedRange];      r = [textViewIn selectedRange];
         // NSLog(@"r=(%d,%d)\n",r.location,r.length);          // NSLog(@"r=(%d,%d)\n",r.location,r.length);
     cmd0 = [textViewIn string];      cmd0 = [textViewIn string];
Line 293  static NSMenuItem *menuItemPrettyPrint = nil;  // pret
Line 292  static NSMenuItem *menuItemPrettyPrint = nil;  // pret
           [textViewIn replaceCharactersInRange: NSMakeRange(pos,0) withString: @"\n"];            [textViewIn replaceCharactersInRange: NSMakeRange(pos,0) withString: @"\n"];
                 }                  }
                 cmd0 = [cmd0 substringWithRange:r ];                  cmd0 = [cmd0 substringWithRange:r ];
         }          }
           [self outputBorderLine: [NSColor magentaColor]];
           [self outputString: cmd0];
           if ([cmd0 length] > 0) {
         if ([cmd0 characterAtIndex: ([cmd0 length]-1)] != 0xa) [self outputString: @"\n"];
       }
       [self outputBorderLine: [NSColor yellowColor]];
   }else{    }else{
     cmd0 = [textViewIn string];      cmd0 = [textViewIn string];
     MyOutputWindowController *mc;      MyOutputWindowController *mc;
Line 1118  int debugInbound = 0;
Line 1123  int debugInbound = 0;
   // NSLog(@"%@",a);    // NSLog(@"%@",a);
   if ([[a objectAtIndex: 0]  hasPrefix: @"notAvailable"]) {    if ([[a objectAtIndex: 0]  hasPrefix: @"notAvailable"]) {
     [self messageDialog:      [self messageDialog:
           NSLocalizedString(@"Typeset the output by TeX is not available. latex, dvips, and pstoimg must be installed.",nil)  with: 0];            NSLocalizedString(@"Typeset the output by TeX is not available. latex and dvipng must be installed.",nil)  with: 0];
         prettyPrint = 1; [self setPrettyPrint: nil];          prettyPrint = 1; [self setPrettyPrint: nil];
         return;          return;
   }     else if ([[a objectAtIndex: 0]  compare: @"showFile"] == NSOrderedSame) {    }     else if ([[a objectAtIndex: 0]  compare: @"showFile"] == NSOrderedSame) {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>