/* * xfont.idl: * SOM interface description file for the following * XWorkplace classes (in this order): * * -- XWPFontFolder: a subclass of WPFolder, which implements * the XWorkplace Font Folder. * * See src\classes\xfont.c for details. */ /* * Copyright (C) 2001-2003 Ulrich M”ller. * * This file is part of the XWorkplace source package. * XWorkplace is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation, in version 2 as it comes in the * "COPYING" file of the XWorkplace main distribution. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ // #include // this is SOM for WPFolder #include "xfldr.idl" //# WPFolder is replaced with XFolder //# V1.0.1 (2002-12-08) [umoeller] /* CLASS: XWPFontFolder CLASS HIERARCHY: SOMObject ÀÄÄ WPObject [ = XFldObject ] ÀÄÄ WPFileSystem ÀÄÄ WPFolder [ = XFolder ] ÀÄÄ XWPFontFolder */ interface M_XWPFontFolder; // forward reference to metaclass interface XWPFontFolder : XFolder //# WPFolder is replaced with XFolder //# V1.0.1 (2002-12-08) [umoeller] { /* * New instance methods for XWPFontFolder: * */ ULONG xwpAddFontsPage(in HWND hwndDlg); //# V1.0.1 (2002-12-08) [umoeller] //# BOOL xwpProcessViewCommand(in USHORT usCommand, //# in HWND hwndCnr, //# in WPObject pFirstObject, //# in ULONG ulSelectionFlags); //# //# BOOL xwpUpdateStatusBar(in HWND hwndStatusBar, in HWND hwndCnr); //# BOOL xwpChangeFontsCount(in LONG i); attribute BOOL fFilledWithFonts; // this is TRUE after the font folder has been filled // with fonts on the first open #ifdef __SOMIDL__ implementation { releaseorder: xwpAddFontsPage, //# xwpUpdateStatusBar, _get_fFilledWithFonts, _set_fFilledWithFonts, //# xwpProcessViewCommand, xwpChangeFontsCount; /* * Class Modifiers: * */ externalprefix = fon_; externalstem = fon; majorversion = 1; minorversion = 2; filestem = xfont; //# specifies the filestem for sc-generated files metaclass = M_XWPFontFolder; dllname = "xfldr.dll"; callstyle = oidl; //# forget CORBA stuff (*ev and such) /* * The following is forced into the .H file: * */ passthru C_h = ""; /* * Internal instance variables for XWPFontFolder: * */ ULONG ulFontsCurrent; // no. of font objects in the font folder; // initialized to 0, updated by wpPopulate ULONG ulFontsMax; // max. no. of fonts to be created // (for status bar) /* * WPFolder methods overridden by XWPFontFolder: * */ wpInitData: override; //# wpUnInitData: override; V1.0.1 (2002-12-08) [umoeller] xwpProcessViewCommand: override; //# V1.0.1 (2002-12-08) [umoeller] xwpUpdateStatusBar: override; //# V1.0.1 (2002-12-08) [umoeller] //# wpQueryDefaultHelp: override; replaced with class method V0.9.20 (2002-07-12) [umoeller] //# wpOpen: override; wpPopulate: override; wpDeleteContents: override; wpDragOver: override; wpDrop: override; wpAddSettingsPages: override; }; #endif }; //# //# //# Now define Metaclass. //# --------------------- //# interface M_XWPFontFolder : M_XFolder //# WPFolder is replaced with XFolder //# V1.0.1 (2002-12-08) [umoeller] { /* * New class methods for M_XWPFontFolder: * */ XWPFontFolder xwpclsQueryDefaultFontFolder(); #ifdef __SOMIDL__ implementation { releaseorder: xwpclsQueryDefaultFontFolder; /* * Class Modifiers: * */ externalprefix = fonM_; externalstem = fonM; functionprefix = fonM_; majorversion = 1; minorversion = 2; filestem = xfont; //# specifies the filestem for sc-generated files dllname = "xfldr.dll"; callstyle = oidl; /* * Internal instance variables for M_XWPFontFolder: * */ /* * M_WPFolder methods overridden by M_XWPFontFolder: * */ wpclsInitData: override; wpclsUnInitData: override; wpclsQueryTitle: override; wpclsQueryStyle: override; wpclsQueryDefaultHelp: override; wpclsCreateDefaultTemplates: override; wpclsQueryIconData: override; wpclsQueryIconDataN: override; }; #endif };