SaveMapDocument.h
// Copyright 2010 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // #ifndef __SAVEMAPDOCUMENT_SAMPLE_H__ #define __SAVEMAPDOCUMENT_SAMPLE_H__ #include <iostream> // Motif Headers #define String esriXString #define Time esriXTime #define Cursor esriXCursor #define Object esriXObject #define ObjectClass esriXObjectClass #include <Xm/Xm.h> #include <Xm/MainW.h> #include <Xm/Form.h> #include <Xm/Protocols.h> #include <Xm/TextF.h> #undef String #undef Time #undef Cursor #undef Object #undef ObjectClass // ArcObjects Headers // Engine #include <ArcSDK.h> // Controls #include <Ao/AoMotifControls.h> // Set up the widgets in their own file #include "WidgetSetup.h" bool OpenDocument(char* fileName); void SaveDocumentAs(char* fileName); void SaveDocument(); extern void SetUpForm(int argc, char* argv[], XtAppContext* app_context); extern void ShowMessage(char *dialogtitle, char *text); #endif // __SAVEMAPDOCUMENT_SAMPLE_H__