12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /* $TOG: dtpad.h /main/20 1999/09/15 15:14:33 mgreess $ */
- /**********************************<+>*************************************
- ***************************************************************************
- **
- ** File: dtpad.h
- **
- ** Project: COSE dtpad, a memo maker type editor based on the motif
- ** text widget.
- **
- ** Description:
- ** -----------
- ** This is the header file for the dtpad list of file which include:
- ** dtpad.c
- **
- *******************************************************************
- ** (c) Copyright Hewlett-Packard Company, 1990. All rights are
- ** reserved. Copying or other reproduction of this program
- ** except for archival purposes is prohibited without prior
- ** written consent of Hewlett-Packard Company.
- ********************************************************************
- **
- ********************************************************************
- ** (c) Copyright 1993, 1994 Hewlett-Packard Company
- ** (c) Copyright 1993, 1994 International Business Machines Corp.
- ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- ** (c) Copyright 1993, 1994 Novell, Inc.
- ********************************************************************
- **
- **
- **************************************************************************
- **********************************<+>*************************************/
- #ifndef DTPAD_H
- #define DTPAD_H
- #include <stdio.h>
- #include <stdint.h>
- #include <fcntl.h>
- #include <errno.h>
- #include <limits.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <X11/Xatom.h>
- #include <X11/Intrinsic.h>
- #include <X11/Shell.h>
- #include <Xm/Protocols.h>
- #include <Xm/Xm.h>
- #include <Xm/XmP.h>
- #include <Xm/CascadeB.h>
- #include <Xm/CascadeBG.h>
- #include <Xm/FileSB.h>
- #include <Xm/LabelG.h>
- #include <Xm/List.h>
- #include <Xm/MainW.h>
- #include <Xm/MessageB.h>
- #include <Xm/PushB.h>
- #include <Xm/PushBG.h>
- #include <Xm/RowColumn.h>
- #include <Xm/SelectioB.h>
- #include <Xm/SeparatoG.h>
- #include <Xm/Text.h>
- #include <Xm/TextF.h>
- #include <Xm/ToggleB.h>
- #include <Xm/ToggleBG.h>
- #include <Dt/Session.h>
- #include <Dt/Dt.h>
- #include <Dt/Dts.h>
- #include <Dt/Message.h>
- #include <Dt/UserMsg.h>
- #include <Dt/Editor.h>
- #include <Dt/Print.h>
- #include <Dt/PrintOptionsP.h>
- #include <Tt/tttk.h>
- #define DTPAD_CLASS_NAME "Dtpad"
- #define CHECKSPELLING 0
- #define FINDCHANGE 1
- #define OPTIONS 2
- #define UNKNOWN_ACTION -1
- #define EXTEND_SELECTION 0
- #define OPEN 0
- #define INCLUDE 1
- #define DEFAULT_GEOMETRY_STR "80x24"
- #define DEFAULT_COLS 80
- #define DEFAULT_ROWS 24
- typedef enum {
- SUCCESS,
- COPYOFTEMPFAILED,
- UNWRITABLEFILE,
- NOTEMPFILE
- } WriteStatus;
- /************************************************************************
- * Resources
- ************************************************************************/
- typedef struct {
- Boolean statusLine;
- Boolean wordWrap;
- Boolean overstrike;
- Boolean saveOnClose;
- Boolean missingFileWarning;
- Boolean readOnlyWarning;
- Boolean nameChange;
- Boolean viewOnly;
- String workspaceList;
- String session;
- Boolean standAlone;
- Boolean blocking;
- Boolean server;
- Boolean exitOnLastClose;
- } ApplicationData, *ApplicationDataPtr;
- /************************************************************************
- * structures related to various dialogs
- ************************************************************************/
- typedef struct {
- Widget newl_radio,
- with_newl,
- without_newl;
- } ToggleWidgets;
- /* -----> "Open" file selection box and "Save?" dialog widgets
- * (indentation indicates widget hierarchy) */
- typedef struct {
- Widget file_dialog,
- dir_list,
- filter_text,
- select_text,
- file_list,
- save_warning,
- work_area,
- row_col,
- wkArea_textLabel,
- separator,
- cancelBtn;
- ToggleWidgets toggleWidgets;
- } Select;
- /* -----> "Save As" file selection box and "Already Exists" dialog widgets
- * (indentation indicates widget hierarchy) */
- typedef struct {
- Widget saveAs_form,
- alrdy_exist;
- ToggleWidgets toggleWidgets;
- } SaveAs;
- /* -----> */
- typedef struct _confirm {
- int confirmationStatus; /* status from resource-spec'd comfirm dlg */
- Widget dialog,
- wk_area,
- wkArea_textLabel;
- } ConfirmStuff;
- /************************************************************************
- * structures related to menu bar functions
- ************************************************************************/
- /* -----> structs related to "File" pulldown menu */
- typedef struct {
- Select select;
- SaveAs saveAs;
- Widget gen_warning;
- Widget newBtn;
- Widget openBtn;
- Widget includeBtn;
- Widget saveBtn;
- Widget saveAsBtn;
- Widget printBtn;
- Widget silentPrintBtn;
- Widget xprintBtn; /* Added temporarily to support X Print Service */
- Widget exitBtn;
- } FileWidgets;
- typedef struct {
- void (*pendingFileFunc)();
- void (*pendingFileHelpFunc)();
- Boolean fileExists,
- saveWithNewlines,
- readOnly;
- char *fileName,
- *netfile, /* obpaque Took Talk string handle to file */
- *savingName,
- *lastIncludeName,
- pathDir[512], /* dir in specified path */
- includePathDir[512]; /* dir in specified path */
- FileWidgets fileWidgets;
- XmString openTitle,
- includeTitle,
- saveBtnLabel,
- saveNeededBtnLabel;
- } FileStuff;
- /* -----> structs related to "Edit" pulldown menu */
- typedef struct {
- Widget undoBtn,
- cutBtn,
- copyBtn,
- pasteBtn,
- clearBtn,
- deleteBtn,
- selectAllBtn,
- findChangeBtn,
- checkSpellingBtn;
- } EditWidgets;
- typedef struct {
- EditWidgets widgets;
- } EditStuff;
- /* -----> structs related to "Format" pulldown menu */
- typedef struct {
- Widget separator,
- paragraph,
- all,
- close,
- help,
- formatBtn;
- } FormatWidgets;
- typedef struct {
- FormatWidgets widgets;
- int right_margin; /* format size */
- int left_margin;
- } FormatStuff;
- /* -----> structs related to "Options" pulldown menu */
- typedef struct {
- Widget overstrikeBtn,
- wordWrapBtn,
- statusLineBtn,
- helpBtn,
- optionsBtn;
- } OptionsMenuWidgets;
- typedef struct {
- OptionsMenuWidgets widgets;
- } OptionsStuff;
- /* -----> structs related to "Help" pulldown menu */
- typedef struct _helpStruct {
- struct _helpStruct *pNext;
- struct _helpStruct *pPrev;
- Widget dialog;
- Boolean inUse;
- } HelpStruct;
- /************************************************************************
- * structs related to the status line
- ************************************************************************/
- typedef struct _statusWidgets {
- Widget container,
- lineLabel,
- lineText,
- colLabel,
- colText;
- } StatusWidgets;
- typedef struct _status {
- StatusWidgets widgets;
- int currentLine,
- currentCol;
- } StatusStuff;
- /************************************************************************
- * structs related to a ToolTalk Edit/Display/Instantiate message and any
- * related Quit and Save messages.
- ************************************************************************/
- typedef struct _ttEditRequest {
- Tt_message contract; /* media request */
- char *msg_id; /* id of ToolTalk media request */
- Tttk_op op; /* op code = Edit/Display/Instantiate */
- char *vtype; /* media type */
- Boolean contents; /* indicates file or buffer request */
- Boolean returnBufContents; /* indicates if contents returned in reply */
- char *fileName; /* file name supplied in media request */
- char *docName; /* title of file/buffer */
- Tt_pattern savePattern; /* pattern to handle Save requests */
- } TTEditRequest;
- typedef struct _ttQuitRequest {
- Tt_message contract; /* original TTDT_QUIT request */
- Boolean silent; /* arg #1 */
- Boolean force; /* arg #2 */
- char * operation2Quit; /* arg #3 - window to quit (its Edit msg ID) */
- } TTQuitRequest;
- typedef struct _ttSaveRequest {
- Tt_message contract; /* original TTDT_SAVE request */
- char * messageID; /* window to save (i.e. its Edit message ID) */
- } TTSaveRequest;
- /************************************************************************
- * Editor struct - the primary sturcture for each Editor instance
- ************************************************************************/
- typedef struct _editor {
- char *progname; /* program name without the full pathname */
- char *dialogTitle; /* string retrieved from message catalog */
- Display *display; /* Display */
- XtAppContext app_context; /* Application Context */
- ApplicationData xrdb;
- TTEditRequest ttEditReq; /* ToolTalk Edit/Display/Instantiate msg info */
- TTQuitRequest ttQuitReq; /* ToolTalk Quit msg info */
- TTSaveRequest ttSaveReq; /* ToolTalk Save msg info */
- HelpStruct *pHelpCache;
- FileStuff fileStuff; /* all data for File functions */
- EditStuff editStuff; /* all data for Edit functions */
- FormatStuff formatStuff; /* all data for Format functions */
- OptionsStuff optionsStuff; /* all data for Options functions */
- ConfirmStuff confirmStuff; /* data for resource spec'd confirm dialog */
- StatusStuff statusStuff;
- Boolean nodo,
- saveRestore;
- Boolean iconic;
- Position x,y;
- Dimension width, height;
- String geometry;
- char select_string[512];
- Widget app_shell, /* ApplicationShell */
- editor, /* Dt Editor widget */
- statusLineMsg, /* Dt Editor widget status line text field */
- panedWindow, /* Paned window */
- mainWindow, /* MainWindow */
- menu_bar, /* RowColumn */
- #ifdef POPUP
- popup,
- #endif
- ExitWid,
- MainHelp,
- pseudo;
- unsigned short group_id, /* users group id - for file type checking */
- user_id; /* the users id - for file type checking */
- struct _editor *pNextPad;
- struct _editor *pPrevPad;
- Boolean inUse;
- char *blockChannel;
- int numPendingTasks;
- XtWorkProcId fileExitWorkprocID;
- } Editor;
- typedef struct {
- Editor *pPad;
- int argc;
- char **argv;
- } StartupStruct;
- /************************************************************************
- * Printing structs - structures to support prining using the X Print Service
- ************************************************************************/
- /*
- * Enums for the strings that appear in the header and footer fields
- * on each page.
- */
- typedef enum {
- PRINT_NONE_STRING_TYPE_ENUM,
- PRINT_DATE_STRING_TYPE_ENUM,
- PRINT_DOCNAME_STRING_TYPE_ENUM,
- PRINT_PAGE_NUMBER_STRING_TYPE_ENUM,
- PRINT_USER_NAME_STRING_TYPE_ENUM
- } PrintStringTypeEnum;
- /*
- * Data structure to saving print options from the PrintSetup GUI.
- */
- typedef struct {
- Boolean wordWrap;
- char *marginBottom,
- *marginLeft,
- *marginRight,
- *marginTop;
- PrintStringTypeEnum
- footerLeft,
- footerRight,
- headerLeft,
- headerRight;
- } PrintOptions;
- /*
- * Structure summarizing the setup context for a print job.
- * Includes the widgets which make up the print setup dialog,
- * and the printing options retrieved from the print setup dialog.
- */
- typedef struct print_setup_widgets {
- Widget parent;
- Widget dtprintSetup;
- Widget form;
- Widget hdrftrFrame;
- Widget marginFrame;
- Widget docLabel;
- Widget docNameLabel;
- Widget wordWrapTB;
- } psWidgets;
- typedef struct print_setup {
- char *docName;
- XtCallbackProc
- cancelCB,
- closeDisplayCB,
- printCB,
- setupCB;
- XtPointer cancelClosure,
- closeDisplayClosure,
- printClosure,
- setupClosure;
- Editor *pPad;
- Widget parent;
- Widget dtprintSetup;
- psWidgets *widgets;
- PrintOptions
- options;
- } PrintSetup;
- /*
- * Structure summarizing a print job including the print options used
- * and the current state of the job.
- */
- typedef struct print_output {
- Widget pShell;
- Widget page;
- Widget innerPage;
- Widget headerLeft;
- Widget headerRight;
- Widget editor;
- Widget footerLeft;
- Widget footerRight;
- int currentLine;
- int linesPerPage;
- Dimension marginTop;
- Dimension marginRight;
- Dimension marginBottom;
- Dimension marginLeft;
- } PrintOutput;
- /*
- * Structure summarizing a print job including the print options used
- * and the current state of the job.
- */
- typedef struct print_job {
- struct _editor *pPad;
- Widget parentShell;
- char *tempFileName;
- char *documentName;
- Boolean silent;
- PrintOutput *pOutput;
- PrintSetup *pSetup;
- Widget pShell;
- DtPrintSetupData *printData;
- int npagesDone;
- int npagesTotal;
- Widget nextpageShell,
- nextpageButton;
- } PrintJob;
- /************************************************************************
- * macro to get message catalog strings
- ************************************************************************/
- #ifndef NO_MESSAGE_CATALOG
- # define GETMESSAGE(set, number, string)\
- _DtpadGetMessage(set, number, string)
- #else
- # define GETMESSAGE(set, number, string)\
- string
- #endif
- #define UNNAMED_TITLE ((char *)GETMESSAGE(7, 6, "(UNTITLED)"))
- /*[SuG 5/10/95] Added for fixing print bug. */
- #define UNNAMED_TITLE_P ((char *)GETMESSAGE(5, 21, "UNTITLED"))
- /************************************************************************
- * functions in fileCB.c
- ************************************************************************/
- extern void FileCascadingCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FileNewCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FileOpenCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FileIncludeCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FileSaveCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FileSaveAsCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FilePrintCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FileXpPrintCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FileExitCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void NoSaveCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void CancelFileSelectCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void SaveNewLinesCB(
- Widget w,
- XtPointer client_data,
- XtPointer call_data);
- extern void SaveAsOkCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void AlrdyExistsOkCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void SaveAsCancelCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void AlrdyExistsCancelCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void AskIfSaveCancelCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- /************************************************************************
- * functions in fileDlg.c
- ************************************************************************/
- extern void PostAlreadyExistsDlg(
- Editor *pPad);
- extern void SetSaveAsDefaultString(Editor *pPad);
- extern void CreateSaveAsDialog(
- Editor *pPad);
- extern void ExtractAndStoreDir(
- Editor *pPad,
- char *fileName,
- short type);
- extern void GetFileName(
- Editor *pPad,
- XmString title,
- short type);
- extern char *DialogTitle(
- Editor *pPad);
- extern void Warning(
- Editor *pPad,
- char *mess,
- unsigned char dialogType);
- extern void AskIfSave(
- Editor *pPad);
- extern void PostSaveError(
- Editor *pPad,
- char *saveName,
- DtEditorErrorCode errorCode);
- extern void AskForConfirmation(
- Editor *pPad);
- /************************************************************************
- * functions in editCB.c
- ************************************************************************/
- extern void EditUndoCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void EditCutCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void EditCopyCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void EditPasteCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void EditClearCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void EditDeleteCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void SelectAllCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FindChangeCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void CheckSpellingCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void SetSelectionMenuItems(
- Editor *pPad,
- Boolean sensitivity);
- extern void TextSelectedCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void TextDeselectedCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- /************************************************************************
- * functions in formatCB.c
- ************************************************************************/
- extern void FormatCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FormatParaCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void FormatAllCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- /************************************************************************
- * functions in optionsCB.c
- ************************************************************************/
- extern void OverstrikeCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void WordWrapCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- extern void StatusLineCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data);
- /************************************************************************
- * functions in main.c
- ************************************************************************/
- extern void CreatePad(
- Editor **ppPad);
- extern void StartDbUpdate(
- XtPointer clientData);
- extern void exitCB(
- Widget w,
- XtPointer callData,
- XtPointer clientData);
- extern void setPanicConditions(void);
- extern void SetWindowSize(
- Editor *pPad);
- extern void SetAppShellResizeHints(
- Editor *pPad);
- extern void RealizeNewPad(
- Editor *pPad);
- extern void ManageOldPad(
- Editor *pPad,
- Boolean isCurrentlyVisible);
- extern void InitDtEditSession(
- Editor *pPad,
- int argc,
- char **argv);
- extern void SigcldHndlr(
- int dummy);
- extern void UnmanageAllDialogs(
- Editor *pPad);
- extern void RestoreInitialServerResources(
- Editor *pPad);
- #ifndef NO_MESSAGE_CATALOG
- extern char * _DtpadGetMessage(
- int set,
- int number,
- char *string);
- #endif
- /************************************************************************
- * functions in dtpad.c
- ************************************************************************/
- extern void CreateDefaultImage(
- char *bits,
- int width,
- int height,
- char *name);
- extern void ChangeMainWindowTitle(
- Editor *pPad);
- extern void SetWindowTitles(
- Editor *pPad);
- extern void SetSaveAsLabelAndDialog(
- Editor *pPad);
- extern void CreateMenuBar(
- Editor *pPad);
- extern void CreateEditorWidget(
- Editor *pPad);
- extern Boolean FindOrCreatePad(
- Editor **ppPad);
- extern char *MbStrchr(
- char *str,
- int ch);
- extern char *MbStrchri(
- char *str,
- int ch,
- int* in);
- extern char *MbStrrchr(
- char *str,
- int ch);
- extern char *MbBasename(
- char *str);
- #ifndef NO_MESSAGE_CATALOG
- extern char *GetMessage(
- int set,
- int n,
- char *s);
- #endif
- extern void SetStatusMessage(
- Editor *pPad,
- char *str);
- extern void ClearStatusMessage(
- Editor *pPad);
- /************************************************************************
- * functions in session.c
- ************************************************************************/
- extern void SaveSessionCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void closeCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void restoreSession(
- Editor *pPad);
- extern void RestorePad(
- Editor *pPad,
- int padNum,
- XrmDatabase db);
- /************************************************************************
- * functions in fileIo.c
- ************************************************************************/
- extern void LoadFile(
- Editor *pPad,
- char *include);
- extern char * GetTempFile(
- void);
- extern void PanicSave(
- void);
- extern void SetStatusLineMsg(
- Editor *pPad);
- /************************************************************************
- * functions in helpDlg.c
- ************************************************************************/
- extern void SetHelpVolAndDisplayHelp(
- Editor *pPad,
- char *locationId,
- char *helpVolume);
- extern void DisplayHelp(
- Editor *pPad,
- char *helpVolume,
- char *locationId);
- extern void DisplayNewHelpWindow(
- Editor *pPad,
- char *helpVolume,
- char *locationId);
- extern Widget CreateHelpDialog(
- Editor *pPad);
- extern void DisplayHelpDialog(
- Editor *pPad,
- Widget helpDialog,
- char *helpVolume,
- char *locationId);
- /************************************************************************
- * functions in helpCB.c
- ************************************************************************/
- extern void HelpMenubarCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpFileCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpEditCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpFormatCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpOptionsCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpHelpCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpOpenDialogCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpIncludeDialogCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpSaveAsDialogCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpFileSaveNewLinesCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpAskIfSaveDialogCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpFileAlreadyExistsCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpEditorWidgetCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpPrintSetupDialogCB(
- Widget w,
- XtPointer client_data,
- XtPointer call_data );
- extern void HelpPrintSetupAppSpecificCB(
- Widget w,
- XtPointer client_data,
- XtPointer call_data );
- extern void HelpPrintSetupGenericCB(
- Widget w,
- XtPointer client_data,
- XtPointer call_data );
- extern void HelpPrintSetupPageHeadersFootersCB(
- Widget w,
- XtPointer client_data,
- XtPointer call_data );
- extern void HelpPrintSetupPageMargins(
- Widget w,
- XtPointer client_data,
- XtPointer call_data );
- extern void HelpOverviewCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpTasksCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpTOCCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpReferenceCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpOnItemCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpUsingHelpCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpAboutCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpHyperlinkCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- extern void HelpCloseCB(
- Widget w,
- caddr_t client_data,
- caddr_t call_data );
- /************************************************************************
- * functions in ttMsgSupport.c
- ************************************************************************/
- extern Tt_status TTstartDesktopMediaExchange(
- Widget topLevelWithWmCommand,
- Editor *pPad);
- extern Boolean TTmediaDepositContents(
- Editor *pPad);
- extern Boolean TTmediaReply(
- Editor *pPad);
- extern void TTresetQuitArgs(
- Editor *pPad);
- extern void TTfailPendingQuit(
- Editor *pPad);
- extern Tt_status TTdesktopOpen(
- int *ttFd,
- Editor *pPad,
- Boolean sendStarted );
- extern void TTwarning(
- Editor *pPad,
- Tt_status status,
- char *errsuff);
- /************************************************************************
- * functions in printJob.c
- ************************************************************************/
- extern PrintJob * PrintJobCreate(
- char *documentName,
- char *tempFileName,
- Boolean silent,
- Editor *pPad);
- extern void PrintJobDestroy(
- PrintJob *pJob);
- extern void PrintJobExecute(
- PrintJob *pJob);
- extern void PrintJobCancel(
- PrintJob *pJob);
- extern Display * PrintJobGetErrorPrintDisplay();
- extern void PrintJobSetErrorPrintDisplay(Display *display);
- extern Boolean PrintJobIsActivePrintDisplay(Display *display);
- /************************************************************************
- * functions in printOption.c
- ************************************************************************/
- extern void PrintOptionsGetCurrent(
- PrintOptions *pOptions);
- extern void PrintOptionsGetDefault(
- PrintOptions *pOptions);
- extern void PrintOptionsSave(
- PrintOptions *pOptions);
- /************************************************************************
- * functions in printOutput.c
- ************************************************************************/
- extern PrintOutput *PrintOutputCreate(
- Widget shell);
- extern void PrintOutputDestroy(
- PrintOutput *pOutput);
- extern void PrintOutputHideFooters(
- PrintOutput *pOutput);
- extern void PrintOutputShowFooters(
- PrintOutput *pOutput);
- extern void PrintOutputHideHeaders(
- PrintOutput *pOutput);
- extern void PrintOutputShowHeaders(
- PrintOutput *pOutput);
- extern void PrintOutputSetHdrFtrString(
- PrintOutput *pOutput,
- _DtPrintHdrFtrEnum which,
- char *contents);
- extern void PrintOutputSetHdrFtrStrings(
- PrintOutput *pOutput,
- char *hdrLeft,
- char *hdrRight,
- char *ftrLeft,
- char *ftrRight);
- extern void PrintOutputSetPageMargin(
- PrintOutput *pOutput,
- _DtPrintMarginEnum which,
- const char *margin,
- Boolean *parseError);
- extern void PrintOutputSetPageMargins(
- PrintOutput *pOutput,
- const char *marginTop,
- const char *marginRight,
- const char *marginBottom,
- const char *marginLeft,
- Boolean *parseError);
- extern void PrintOutputSetWordWrap(
- PrintOutput *pOutput,
- Boolean onOff);
- extern int PrintOutputGetLinesPerPage(
- PrintOutput *pOutput);
- extern int PrintOutputGetNumLines(
- PrintOutput *pOutput);
- extern Boolean PrintOutputPageUp(
- PrintOutput *pOutput);
- extern Boolean PrintOutputPageDown(
- PrintOutput *pOutput);
- extern void PrintOutputFirstPage(
- PrintOutput *pOutput);
- extern DtEditorErrorCode PrintOutputLoadFile(
- PrintOutput *pOutput,
- char *file);
- /************************************************************************
- * functions in printSetup.c
- ************************************************************************/
- extern PrintSetup *PrintSetupCreate(
- Widget parent,
- char *docName,
- Boolean wordWrap,
- Editor *pPad,
- XtCallbackProc cancelCB, XtPointer cancelClosure,
- XtCallbackProc closeDisplayCB, XtPointer closeDisplayClosure,
- XtCallbackProc printCB, XtPointer printClosure,
- XtCallbackProc setupCB, XtPointer setupClosure
- );
- extern void PrintSetupDestroy(
- PrintSetup *pSetup);
- extern void PrintSetupDisplay(
- PrintSetup *pSetup);
- extern void PrintSetupSaveOptions(
- PrintSetup *pSetup);
- extern PrintStringTypeEnum PrintSetupGetHdrFtrSpec(
- PrintSetup *pSetup,
- _DtPrintHdrFtrEnum which);
- extern char *PrintSetupGetMarginSpec(
- PrintSetup *pSetup,
- _DtPrintMarginEnum which);
- extern Boolean PrintSetupGetDefaultPrintData(
- PrintSetup *pSetup,
- DtPrintSetupData *pData);
- extern Boolean PrintSetupUseWordWrap(
- PrintSetup *pSetup);
- #endif /* DTPAD_H */
|