GVDocument.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at http://www.graphviz.org/
  9. *************************************************************************/
  10. #import <Foundation/Foundation.h>
  11. #import <AppKit/AppKit.h>
  12. @class GVExportViewController;
  13. @class GVZGraph;
  14. @interface GVDocument : NSDocument
  15. {
  16. GVExportViewController *_exporter;
  17. GVZGraph *_graph;
  18. }
  19. @property(readonly) GVZGraph *graph;
  20. - (id)init;
  21. - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError;
  22. - (BOOL)writeToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError;
  23. - (void)makeWindowControllers;
  24. - (void)setPrintInfo:(NSPrintInfo *)printInfo;
  25. - (IBAction)exportDocument:(id)sender;
  26. - (void)exporterDidEnd:(GVExportViewController *)exporter;
  27. - (void)fileDidChange:(NSString *)path;
  28. - (void)graphDidChange:(NSNotification *)notification;
  29. - (void)dealloc;
  30. @end