home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
SETTINGS.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
6KB
|
187 lines
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
#ifndef _SETTINGS_
#define _SETTINGS_
#ifndef _EXTENSN_
#include "Extensn.idl"
#endif
//==============================================================================
// Theory of Operation
//==============================================================================
/*
ODExtension is implemented as a subclass of ODExtension. The default class
provides for a notebook control with a default pages which are common across
all parts, such as part name, part type, etc. This class can be subclassed
to add or delete pages. Override the AddNotebook pages routine to alter the
pages in the notebook control.
*/
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODSettingsExtension;
//=====================================================================================
// Implementation Types
//=====================================================================================
#ifdef _PLATFORM_OS2_
typedef long PAGE;
typedef PAGE * PPAGE;
typedef long TABSIZE;
typedef TABSIZE * PTABSIZE;
typedef long PAGEINFO;
typedef PAGEINFO * PPAGEINFO;
typedef long SWP;
typedef long HPOINTER;
typedef long HMODULE;
typedef unsigned short USHORT;
typedef long PRECTL;
typedef long PICONINFO;
typedef char * PSZ;
typedef long PHFILE;
typedef long ICONPAGEVARS;
typedef ICONPAGEVARS * PICONPAGEVARS;
typedef long DROPWELLINST;
typedef DROPWELLINST * PDROPWELLINST;
#endif
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODFacet;
interface ODPart;
interface ODTypeList;
interface EditorSet;
interface ODNameSpaceManager;
//==============================================================================
// ODExtension
//==============================================================================
interface ODSettingsExtension : ODExtension
{
void InitSettingsExtension(in ODPart owner);
#ifdef _PLATFORM_OS2_
ODULong AddNotebookPages(in HWND hwndNotebook, in ODULong flPageFlag, in ODULong ulReserved);
ODULong InsertNotebookPage(in HWND hwndNotebook, in PPAGEINFO pPageInfo);
#endif
#ifdef _PLATFORM_OS2_
void TitleChanged(in char * newTitle);
char * QueryTitle();
void IconChanged(in HPOINTER hptrNewIcon);
HPOINTER QueryIcon();
#endif
void ShowSettings(in ODFacet facet);
#ifdef _PLATFORM_OS2_
ODFacet QueryInfoFacet (in HWND hwndNotebook);
ODULong InsertPresentationPage(in HWND hwndNotebook, in ODTypeList presentationList);
ODULong RemoveNotebookPages(in HWND hwndNotebook, in ODULong flPageFlag);
#endif
#ifdef __SOMIDL__
implementation
{
functionprefix = ODSettingsExtension;
override:
somInit,
somUninit,
Release;
releaseorder:
reserved37
,reserved36
,reserved35
,reserved34
,reserved33
,reserved32
,reserved31
,reserved30
,reserved29
,reserved28
,reserved07
,reserved06
,reserved05
,reserved04
,reserved03
,reserved02
,reserved01
,InitSettingsExtension
#ifdef _PLATFORM_OS2_
,AddNotebookPages
,TitleChanged
,QueryTitle
,IconChanged
,QueryIcon
#endif
,ShowSettings
#ifdef _PLATFORM_OS2_
,QueryInfoFacet,
#endif
reservedXXXX
,reserved20
,reserved19
,reserved18
,reserved17
,reserved16
,reserved15
,reserved14
,reserved13
,reserved12
,reserved11
,reserved10
,reserved09
,reserved08
,InsertNotebookPage
,InsertPresentationPage
,RemoveNotebookPages;
};
#endif
//==============================================================================
// Constants public
//==============================================================================
#ifdef _PLATFORM_OS2_
#pragma somemittypes on
const ODULong kODGeneralPage = 0X00000001;
const ODULong kODTypePage = 0X00000002;
const ODULong kODViewPage = 0X00000004;
const ODULong kODFile1Page = 0X00000008;
const ODULong kODFile2Page = 0X00000010;
const ODULong kODStandardPages = 0X0000001F;
const ODULong kODIconViewPage = 0X00000020;
const ODULong kODTreeViewPage = 0X00000040;
const ODULong kODDetailsViewPage= 0X00000080;
const ODULong kODFolderViewPages= 0X000000E0;
const ODULong kODLinkSourcePage = 0x00000200;
const ODULong kODLinkTargetPage = 0X00000400;
const ODULong kODLinkPages = 0X00000600;
const ODULong kODAllPages = 0X000006FF;
#pragma somemittypes off
#endif
};
#endif