//======================================================================================== // // $File$ // // Owner: Adobe Developer Technologies // // $Author$ // // $DateTime$ // // $Revision$ // // $Change$ // // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance // with the terms of the Adobe license agreement accompanying it. If you have received // this file from a source other than Adobe, then your use, modification, or // distribution of it requires the prior written permission of Adobe. // //======================================================================================== #include "VCPlugInHeaders.h" // General includes: #include "ActionDef.fh" #include "ActionDefs.h" #include "MenuDef.fh" #include "objectmodeltypes.fh" #include "StringTable.fh" #include "Widgets.fh" #include "ActionID.h" #include "AdobeMenuPositions.h" #include "BuildNumber.h" #include "CommandID.h" #include "IControlViewDefs.h" #include "InterfaceColorDefines.h" #include "LocaleIndex.h" #include "PMLocaleIds.h" #include "ShuksanID.h" #include "SysControlIds.h" #include "TextID.h" // for IID_ITEXTFOCUSDATA #include "TextPanelID.h" #include "widgetid.h" #include "WorkspaceID.h" // Project includes: #include "GenericID.h" #include "WatermarkUIID.h" #include "PlugInModel_UIAttributes.h" #include "TreeViewDefs.h" //#include "BscSlDlgID.h" #include "SDKSharedPNG.fr" #include "EveInfo.fh" #ifdef __ODFRC__ /* Plugin version definition. */ resource PluginVersion (kSDKDefPluginVersionResourceID) { kTargetVersion, kWatermarkUIPluginID, kSDKDefPlugInMajorVersionNumber, kSDKDefPlugInMinorVersionNumber, kSDKDefHostMajorVersionNumber, kSDKDefHostMinorVersionNumber, kWatermarkUICurrentMajorFormatNumber, kWatermarkUICurrentMinorFormatNumber, {kInDesignProduct}, {kWildFS }, kUIPlugIn, kWatermarkUIVersion }; /* The ExtraPluginInfo resource adds extra information to the Missing Plug-in dialog that is popped when a document containing this plug-in's data is opened, but this plug-in is not present. These strings are not translatable strings since they must be available when the plug-in isn't around. They get stored in any document that this plug-in contributes data to. */ resource ExtraPluginInfo(1) { kWatermarkUICompanyValue, // Company name kWatermarkUIMissingPluginURLValue, // URL kWatermarkUIMissingPluginAlertValue, // Missing plug-in alert text }; /* Boss class definition. */ resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) {{{ /** This boss class implements the list box of the left pane using tree view widget. @ingroup basicselectabledialog */ Class { kWMSlDlgTreeViewWidgetBoss, kTreeViewWidgetBoss, { IID_ITREEVIEWWIDGETMGR, kWMSlDlgTreeViewWidgetMgrImpl, IID_ITREEVIEWHIERARCHYADAPTER, kWMSlDlgTreeViewAdapterImpl, /** Hold names of the list item */ IID_ISTRINGLISTDATA, kStringListDataImpl, } }, Class { kWMSlDlgTreeViewWidgetBoss2, kTreeViewWidgetBoss, { IID_ITREEVIEWWIDGETMGR, kWMSlDlgTreeViewWidgetMgrImpl, IID_ITREEVIEWHIERARCHYADAPTER, kWMSlDlgTreeViewAdapterImpl, /** Hold names of the list item */ IID_ISTRINGLISTDATA, kStringListDataImpl, } }, /** This boss class supports two interfaces: IActionComponent and IPMPersist. @ingroup watermarkui */ Class { kWatermarkUIActionComponentBoss, kInvalidClass, { /** Handle the actions from the menu. */ IID_IACTIONCOMPONENT, kWatermarkUIActionComponentImpl, /** Persist the state of the menu across application instantiation. Implementation provided by the API.*/ IID_IPMPERSIST, kPMPersistImpl, } }, /** This boss class implements the dialog for this plug-in. All dialogs must implement IDialogController. Specialization of IObserver is only necessary if you want to handle widget changes dynamically rather than just gathering their values and applying in the IDialogController implementation. In this implementation IObserver is specialized because the dialog includes a 'preview' button. In the Observer's Update method, values are grabbed from the widgets, and the watermark is updated and redrawn. @ingroup watermarkui */ Class { kWatermarkUIDialogBoss, kDialogBoss, //kSelectableDialogBoss, //kDialogBoss, { /** Provides management and control over the dialog. */ IID_IDIALOGCONTROLLER, kWatermarkUIDialogControllerImpl, /** Allows dynamic processing of dialog changes. */ IID_IOBSERVER, kWatermarkUIDialogObserverImpl, IID_ITEXTFOCUSDATA, kTextFocusDataImpl, // TextTargetObserver IID_ITEXTTARGETSERVER, kTextTargetServerImpl, // see TextPanel plugin. //IID_ISELECTABLEDIALOGSWITCHER, kWMSlDlgTreeViewDlgSwitcherImpl, } }, Class { kPreviewableColorListDropDownWidgetBoss, kColorListDropDownWidgetBoss, { /** Aggregates a second observer on the ColorListDropDownWidgetBoss. See PreviewableColorListObserver.cpp for more details. */ IID_IPREVIEWABLECOLORLISTOBSERVER, kPreviewableColorListObserverImpl, IID_ICONTROLVIEWOBSERVERS, kCControlViewObserversImpl, } }, Class { kAnglePopupSliderComboWidgetBoss, kPopupSliderComboBoxWidgetBoss, { /** Implements an Angle edit box in conjunction with a popup slider control. */ IID_ITEXTDATAVALIDATION, kAngleTextValidationImpl, IID_ITEXTVALUE, kAngleTextValueImpl, IID_IDISABLEMULTIBYTESCRIPT, kFalseInitBoolDataImpl, IID_IINTEGERCONTROLDATA, kCIntegerControlDataImpl, } }, }}}; /* Implementation definition. */ resource FactoryList (kSDKDefFactoryListResourceID) { kImplementationIDSpace, { #include "WatermarkUIFactoryList.h" } }; /* Menu definition. */ resource MenuDef (kSDKDefMenuResourceID) { { // The About Plug-ins sub-menu item for this plug-in. kWatermarkUIAboutActionID, // ActionID (kInvalidActionID for positional entries) kWatermarkUIAboutMenuPath, // Menu Path. kSDKDefAlphabeticPosition, // Menu Position. kSDKDefIsNotDynamicMenuFlag, // kSDKDefIsNotDynamicMenuFlag or kSDKDefIsDynamicMenuFlag // The Plug-ins menu sub-menu items for this plug-in. kWatermarkUIDialogActionID, kWatermarkUIPluginsMenuPath, kWatermarkUIDialogMenuItemPosition, kSDKDefIsNotDynamicMenuFlag, } }; /* Action definition. */ resource ActionDef (kSDKDefActionResourceID) { { kWatermarkUIActionComponentBoss, // ClassID of boss class that implements the ActionID. kWatermarkUIAboutActionID, // ActionID. kWatermarkUIAboutMenuKey, // Sub-menu string. kOtherActionArea, // Area name (see ActionDefs.h). kNormalAction, // Type of action (see ActionDefs.h). kDisableIfLowMem, // Enabling type (see ActionDefs.h). kInvalidInterfaceID, // Selection InterfaceID this action cares about or kInvalidInterfaceID. kSDKDefInvisibleInKBSCEditorFlag, // kSDKDefVisibleInKBSCEditorFlag or kSDKDefInvisibleInKBSCEditorFlag. kWatermarkUIActionComponentBoss, kWatermarkUIDialogActionID, kWatermarkUIDialogMenuItemKey, kOtherActionArea, kNormalAction, kDisableIfLowMem, kInvalidInterfaceID, kSDKDefVisibleInKBSCEditorFlag, } }; /* LocaleIndex The LocaleIndex should have indicies that point at your localizations for each language system that you are localized for. */ /* String LocaleIndex. */ resource LocaleIndex (kSDKDefStringsResourceID) { kStringTableRsrcType, { kWildFS, k_enUS, kSDKDefStringsResourceID + index_enUS kWildFS, k_enGB, kSDKDefStringsResourceID + index_enUS kWildFS, k_deDE, kSDKDefStringsResourceID + index_enUS kWildFS, k_frFR, kSDKDefStringsResourceID + index_enUS kWildFS, k_esES, kSDKDefStringsResourceID + index_enUS kWildFS, k_ptBR, kSDKDefStringsResourceID + index_enUS kWildFS, k_svSE, kSDKDefStringsResourceID + index_enUS kWildFS, k_daDK, kSDKDefStringsResourceID + index_enUS kWildFS, k_nlNL, kSDKDefStringsResourceID + index_enUS kWildFS, k_itIT, kSDKDefStringsResourceID + index_enUS kWildFS, k_nbNO, kSDKDefStringsResourceID + index_enUS kWildFS, k_fiFI, kSDKDefStringsResourceID + index_enUS kInDesignJapaneseFS, k_jaJP, kSDKDefStringsResourceID + index_jaJP } }; resource LocaleIndex (kSDKDefStringsNoTransResourceID) { kStringTableRsrcType, { kWildFS, k_Wild, kSDKDefStringsNoTransResourceID + index_enUS } }; resource StringTable (kSDKDefStringsNoTransResourceID + index_enUS) { k_enUS, // Locale Id kEuropeanMacToWinEncodingConverter, // Character encoding converter { // No-Translate strings go here: } }; /* Dialog LocaleIndex. */ resource LocaleIndex (kSDKDefDialogResourceID) { kViewRsrcType, { kWildFS, k_Wild, kSDKDefDialogResourceID + index_enUS } }; /* Type definition. */ type WatermarkUIDialogWidget(kViewRsrcType) : DialogBoss(ClassID = kWatermarkUIDialogBoss) { WidgetEveInfo; }; type EVEPreviewableColorListDropDownWidget (kViewRsrcType) : ColorListDropDownWidget (ClassID = kPreviewableColorListDropDownWidgetBoss) { CControlViewObservers; // allows multiple observers WidgetEveInfo; }; type EVEAnglePopupSliderComboBoxWidget (kViewRsrcType) : AngleEditBoxWidget (ClassID = kAnglePopupSliderComboWidgetBoss) { CIntegerControlData; // On screen length of slider, in pixels WidgetEveInfo; }; type EVECharFontFamilyWidget (kViewRsrcType) : DropDownListWidget (ClassID = kTextFontFamilyObserverBoss) { WidgetEveInfo; }; type EVECharFontStyleWidget (kViewRsrcType) : DropDownListWidget (ClassID = kTextFontStyleObserverBoss) { WidgetEveInfo; }; type WMSlDlgTreeViewWidget2 (kViewRsrcType) : TreeViewWidget (ClassID = kWMSlDlgTreeViewWidgetBoss2) { WidgetEveInfo; }; type WMSlDlgTreeViewWidget (kViewRsrcType) : TreeViewWidget (ClassID = kWMSlDlgTreeViewWidgetBoss) { WidgetEveInfo; }; /* Dialog definition. This view is not localised: therefore, it can reside here. However, if you wish to localise it, it is recommended to locate it in one of the localised framework resource files (i.e. WatermarkUI_enUS.fr etc.) and update your Dialog LocaleIndex accordingly. */ resource WatermarkUIDialogWidget (kSDKDefDialogResourceID + index_enUS) { __FILE__, __LINE__, kWatermarkUIDialogWidgetID, // WidgetID kPMRsrcID_None, // RsrcID kBindNone, // Binding Frame(0,0,825,440) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWatermarkUIDialogTitleKey, // Dialog name { EVEGenericPanelWidget // First row in dialog: checlboxes and OK/Cancel buttons ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter| kEVEArrangeChildrenInRow, { EVEGroupPanelWidget // Watermark Info ( 0, // The Identifier for this Widget kPMRsrcID_None, // The Resource ID kBindNone, // The Plugin ID Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kWatermarkUIInfoGroupLabelWidgetID, // header widget ID kEVEAlignFill | kEVEExtraLargeSpaceAfter | kEVEArrangeChildrenInColumn | kEVERegularMargin, { EVEStaticTextWidget // Group label, "Watermark Info" ( kWatermarkUIInfoGroupLabelWidgetID, // widget ID kSysStaticTextPMRsrcId, // PMRsrc ID kBindNone, // frame binding Frame(0,0,0,0) // left, top, right, bottom kTrue, // visible kTrue, // enabled // StaticTextAttributes properties kAlignCenter, // Alignment kEllipsizeEnd, kTrue // Ellipsize style, Convert ampersands kWatermarkUIInfoLabelItemKey, // control label 0, // associated widget ID kEVERegularSpaceAfter, ), WMSlDlgTreeViewWidget2 ( kSelectDialogSelectionWidgetID, kPMRsrcID_None,// WidgetId, RsrcId kBindNone, Frame(15,15,400,225), // Frame kTrue, kTrue, // Visible, Enabled kTrue, // EraseBeforeDraw kInterfacePaletteFill, // InterfaceColor "", kHideRootNode | kDrawBorder, //Options kFalse, //Use H Scroll bar kFalse, //Use V scroll bar 20, // Vertical Scroll Button Increment 20, // Vertical Thumb Scroll Increment 0, // Horizontal Scroll Button Increment - Not Used 0, // Horizontal Thumb Scroll Increment - Not Used 1, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection kFalse, // Allow children from multiple parents to be selected kFalse, // Allow discontiguous selection { } kEVEExtraLargeSpaceAfter ), EVEGenericPanelWidget // First row of controls: text ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter | kEVEArrangeChildrenInRow, { EVETextEditBoxWidget // Watermark text field ( kWatermarkUIEditBoxWidgetID, // WidgetId kSysEditBoxPMRsrcId, // RsrcId kBindNone, Frame(0,0,200,0) // Frame kTrue, kTrue, // Visible, Enabled 0, // widget id of nudge button 1, // small nudge amount 100, // large nudge amount 0, // max num chars(0 = no limit) kFalse, // is read only kTrue, // should notify each key stroke (NEW) kFalse, // range checking enabled kFalse, // blank entry allowed 0, 0, // upper/lower bounds "", // initial text kEVERegularSpaceAfter, ), EVEGenericPanelWidget // Second row of controls: color, opacity, rotation ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter | kEVEArrangeChildrenInColumn, { EVEButtonWidget // OK button ( kOKButtonWidgetID, // WidgetID kSysButtonPMRsrcId, // RsrcID kBindNone, // Binding Frame(0,0,0,0) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWMAddArticleButtonStringKey, // Button text kEVELargeSpaceAfter, ), EVEButtonWidget // OK button ( kOKButtonWidgetID, // WidgetID kSysButtonPMRsrcId, // RsrcID kBindNone, // Binding Frame(0,0,0,0) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWMRemArticleButtonStringKey, // Button text kEVELargeSpaceAfter, ), } ), } ), } ), // End of Watermark Info group EVEGroupPanelWidget // Watermark Info ( 0, // The Identifier for this Widget kPMRsrcID_None, // The Resource ID kBindNone, // The Plugin ID Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kWatermarkUIInfoGroupLabelWidgetID, // header widget ID kEVEAlignFill | kEVEExtraLargeSpaceAfter | kEVEArrangeChildrenInColumn | kEVERegularMargin, { EVEStaticTextWidget // Group label, "Watermark Info" ( kWatermarkUIInfoGroupLabelWidgetID, // widget ID kSysStaticTextPMRsrcId, // PMRsrc ID kBindNone, // frame binding Frame(0,0,0,0) // left, top, right, bottom kTrue, // visible kTrue, // enabled // StaticTextAttributes properties kAlignCenter, // Alignment kEllipsizeEnd, kTrue // Ellipsize style, Convert ampersands kWMArticleTitleStringKey, // control label 0, // associated widget ID kEVERegularSpaceAfter, ), WMSlDlgTreeViewWidget ( kWMArticleElementListWidgetId, kPMRsrcID_None,// WidgetId, RsrcId kBindNone, Frame(15,15,400,225), // Frame kTrue, kTrue, // Visible, Enabled kTrue, // EraseBeforeDraw kInterfacePaletteFill, // InterfaceColor "", kHideRootNode | kDrawBorder, //Options kFalse, //Use H Scroll bar kFalse, //Use V scroll bar 20, // Vertical Scroll Button Increment 20, // Vertical Thumb Scroll Increment 0, // Horizontal Scroll Button Increment - Not Used 0, // Horizontal Thumb Scroll Increment - Not Used 1, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection kFalse, // Allow children from multiple parents to be selected kFalse, // Allow discontiguous selection { } kEVEExtraLargeSpaceAfter ), EVEGenericPanelWidget // First row of controls: text ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter | kEVEArrangeChildrenInRow, { EVEButtonWidget // OK button ( kOKButtonWidgetID, // WidgetID kSysButtonPMRsrcId, // RsrcID kBindNone, // Binding Frame(0,0,0,0) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWMClearButtonStringKey, // Button text kEVELargeSpaceAfter, ), EVEGenericPanelWidget // Second row of controls: color, opacity, rotation ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter | kEVEArrangeChildrenInColumn, { EVEButtonWidget // OK button ( kOKButtonWidgetID, // WidgetID kSysButtonPMRsrcId, // RsrcID kBindNone, // Binding Frame(0,0,0,0) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWMApplyButtonStringKey, // Button text kEVELargeSpaceAfter, ), EVEButtonWidget // OK button ( kOKButtonWidgetID, // WidgetID kSysButtonPMRsrcId, // RsrcID kBindNone, // Binding Frame(0,0,0,0) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWMExportAllButtonStringKey, // Button text kEVELargeSpaceAfter, ), } ), } ), } ), // End of Watermark Info group } ), EVEGenericPanelWidget // Column containing the font family and style labels ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter | kEVEArrangeChildrenInRow, { EVEGroupPanelWidget // Font group ( 0, // The Identifier for this Widget kPMRsrcID_None, // The Resource ID kBindNone, // The Plugin ID Frame(0,0,0,0) kTrue, // Is this visible kTrue, // Is this enabled kWatermarkUICharacterGroupLabelWidgetID, // header widget ID kEVEAlignFill | kEVEExtraLargeSpaceAfter | kEVEArrangeChildrenInRow | kEVERegularMargin, { /* EVEStaticTextWidget // Group label ( kWatermarkUICharacterGroupLabelWidgetID, // widget ID kSysStaticTextPMRsrcId, // PMRsrc ID kBindNone, // frame binding Frame(0,0,0,0) // Frame(l,t,r,b) kFalse, // visible kFalse, // enabled kAlignCenter, // Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWatermarkUICharacterLabelItemKey, // control label 0, // associated widget ID kEVERegularSpaceAfter, ), */ EVEGenericPanelWidget // Column containing the font family and style labels ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter | kEVEArrangeChildrenInColumn, { EVEStaticTextWidget // Label, "Family" ( kWatermarkUICharFontTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWatermarkUIFamilyLabelItemKey, kWMBusUnDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), EVEStaticTextWidget // Label, "Style" ( kWatermarkUICharPanelStaticTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWatermarkUIStyleLabelItemKey, kWMIssDtDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), EVEStaticTextWidget // Label, "Family" ( kWMPubNmTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWMPubNmDropDownItemKey, kWMPubNmDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), EVEStaticTextWidget // Label, "Style" ( kWMCityStaticTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWMCityItemKey, kWMCityDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), EVEStaticTextWidget // Label, "Style" ( kWMPrntArtStaticTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWMPrntArtKey, kWMPrntArtDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), } ), EVEGenericPanelWidget // Column containing the font family and style controls ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVEJumboSpaceAfter | kEVEArrangeChildrenInColumn, { EVECharFontFamilyWidget // Font family drop down ( kWatermarkUICharFontFamilyDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kFalse, kFalse, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMBusUnDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMIssDtDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMPubNmDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMCityDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMPrntArtDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), } ), /* EVEGenericPanelWidget // Row containing the size controls ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignRight | kEVEArrangeChildrenInRow | kEVEChildAlignRight, { EVEStaticTextWidget // Label, "Size" ( kWatermarkUIFontSizeStaticWidgetID, // The Identifier for this Widget kSysStaticTextPMRsrcId, // The Plugin ID kBindNone, // Frame binding Frame(0,0,0,0) // Frame(l,t,r,b) kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Where to ellipsize the string if the size is larger than its frame kWatermarkUISizeLabelItemKey, // The String value kWatermarkUIFontSizeWidgetID, // The Widget ID for associated control for shortcut focus kEVERegularSpaceAfter, ), EVENudgeControlWidget // Font size nudge control ( kWatermarkUIFontSizeNudgeWidgetID, // The Identifier for this Widget kPMRsrcID_None, // The Plugin ID kBindNone, // Frame binding Frame(0,0,0,0) // Frame(l,t,r,b) kTrue, // Is this visible kTrue, // Is this enabled kEVENoSpaceAfter, ), EVETextSizeMeasureComboBoxWidget // Font size drop down control ( kWatermarkUIFontSizeWidgetID, // The Identifier for this Widget kPMRsrcID_None, // The Plugin ID kBindNone, // Frame binding Frame(0,0,70,20) // Frame(l,t,r,b) kTrue, // Is this visible kTrue, // Is this enabled kWatermarkUIFontSizeNudgeWidgetID, // The WidgetID for the nudge button 1, // A small nudge amount 1, // A large nudge amount 0, // The maximum number of characters kFalse, // integer readOnly value kFalse, // Notify on key stroke kTrue, // Enable range checking kFalse, // Allow blank entry 1296, // The upper limit 0.1, // The lower limit "48 pt", { { } }, kEVERegularSpaceAfter, ), } ), */ } ), EVEGroupPanelWidget // Font group ( 0, // The Identifier for this Widget kPMRsrcID_None, // The Resource ID kBindNone, // The Plugin ID Frame(0,0,0,0) kTrue, // Is this visible kTrue, // Is this enabled kWMRightListWidgetID, // header widget ID kEVEAlignFill | kEVEExtraLargeSpaceAfter | kEVEArrangeChildrenInRow | kEVERegularMargin, { /* EVEStaticTextWidget // Group label ( kWatermarkUICharacterGroupLabelWidgetID, // widget ID kSysStaticTextPMRsrcId, // PMRsrc ID kBindNone, // frame binding Frame(0,0,0,0) // Frame(l,t,r,b) kFalse, // visible kFalse, // enabled kAlignCenter, // Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWatermarkUICharacterLabelItemKey, // control label 0, // associated widget ID kEVERegularSpaceAfter, ), */ EVEGenericPanelWidget // Column containing the font family and style labels ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVERegularSpaceAfter | kEVEArrangeChildrenInColumn, { EVEStaticTextWidget // Label, "Family" ( kWMSecTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kFalse, kFalse, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWMSecItemKey, kWMSecDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), EVEStaticTextWidget // Label, "Family" ( kWMSec2TextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWMSec2ItemKey, kWMSec2DropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), EVEStaticTextWidget // Label, "Style" ( kWMSubSecStaticTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWMSubSecLabelItemKey, kWMSubSecDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), EVEStaticTextWidget // Label, "Family" ( kWMSupStaticTextWidgetId, // WidgetId kSysStaticTextPMRsrcId, // RsrcId kBindNone, Frame(0,0,0,0) // Frame kTrue, kTrue, kAlignRight, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands kWMWMSupDropDownItemKey, kWMWMSupDropDownWidgetId, kEVEAlignRight | kEVERegularSpaceAfter, ), } ), EVEGenericPanelWidget // Column containing the font family and style controls ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignFill | kEVEJumboSpaceAfter | kEVEArrangeChildrenInColumn, { EVECharFontFamilyWidget // Font family drop down ( kWMSecDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kFalse, kFalse, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMSec2DropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMSubSecDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), EVECharFontStyleWidget // Font style drop down ( kWMWMSupDropDownWidgetId, // WidgetId kSysDropDownRsrcId, // RsrcId 0, kBindNone, Frame(0,0,255,20) // Frame kTrue, kTrue, // Visible, Enabled { {"Dummy entry", } }, kEVERegularSpaceAfter, ), } ), } ), } ), EVEGenericPanelWidget // First row in dialog: checlboxes and OK/Cancel buttons ( kInvalidWidgetID, // WidgetId 0 // RsrcId 0, // Widget EVE Info kBindNone, // Frame binding Frame(0,0,0,0) // Frame kTrue, // Visible kTrue, // Enabled kEVEAlignRight | kEVERegularSpaceAfter| kEVEArrangeChildrenInRow, { EVEDefaultButtonWidget // OK button ( kOKButtonWidgetID, // WidgetID kSysButtonPMRsrcId, // RsrcID kBindNone, // Binding Frame(0,0,0,0) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWMSetButtonStringKey, // Button text kEVELargeSpaceAfter, ), EVECancelButtonWidget // Cancel button ( kCancelButton_WidgetID, // WidgetID kSysButtonPMRsrcId, // RsrcID kBindNone, // Binding Frame(0,0,0,0) // Frame (l,t,r,b) kTrue, kTrue, // Visible, Enabled kWMCloseButtonStringKey, // Button name kFalse, // Change to Reset on option-click. kEVELargeSpaceAfter, ), } ), // End of first row of controls } kEVEArrangeChildrenInColumn | kEVELargeMargin, }; type WMSDlgTreeNodeWidget (kViewRsrcType) : PrimaryResourcePanelWidget (ClassID = kTreeNodeWidgetBoss){ }; resource WMSDlgTreeNodeWidget (kWMSlDlgTreeNodeRsrcID) { __FILE__, __LINE__, kWMSDlgTreeNodeWidgetID, kPMRsrcID_None, // WidgetId, RsrcId kBindLeft | kBindRight, Frame(0,0,149,18), // Frame kTrue, kTrue, // Visible, Enabled "", // Panel name { InfoStaticTextWidget ( kWMSDlgTreeNodeNameWidgetID, kSysStaticTextPMRsrcId, // WidgetId, RsrcId kBindNone, // Frame binding Frame(3,1,120,17) // Frame kTrue, kTrue, kAlignLeft, // Visible, Enabled, Alignment kDontEllipsize, kTrue, // Ellipsize style, Convert ampersands "", 0, kDialogWindowSmallFontId, kDialogWindowSmallHiliteFontId, ), } } #endif // __ODFRC__ #include "WatermarkUI_enUS.fr" #include "WatermarkUI_jaJP.fr"