diff --git a/MPOLnch.fr b/MPOLnch.fr index 395f24f..91d1f49 100644 --- a/MPOLnch.fr +++ b/MPOLnch.fr @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmp.fr $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnch.fr $ // // Owner: Adobe Developer Technologies // @@ -52,8 +52,8 @@ #include "TreeViewDefs.h" // Project includes: -#include "WLBCmpID.h" -#include "WLBCmpRezDefs.h" +#include "MPOLnchID.h" +#include "MPOLnchRezDefs.h" #ifdef __ODFRC__ @@ -63,13 +63,13 @@ resource PluginVersion (kSDKDefPluginVersionResourceID) { kTargetVersion, - kWLBCmpPluginID, + kMPOLnchPluginID, kSDKDefPlugInMajorVersionNumber, kSDKDefPlugInMinorVersionNumber, kSDKDefHostMajorVersionNumber, kSDKDefHostMinorVersionNumber, - kWLBCmpCurrentMajorFormatNumber, kWLBCmpCurrentMinorFormatNumber, + kMPOLnchCurrentMajorFormatNumber, kMPOLnchCurrentMinorFormatNumber, { kInDesignProduct, kInCopyProduct }, { kWildFS }, - kWLBCmpVersion + kMPOLnchVersion }; //================================================================================ @@ -86,12 +86,12 @@ resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) */ Class { - kWLBCmpActionComponentBoss, + kMPOLnchActionComponentBoss, kBaseActionComponentBoss, { /** Handle the actions from the menu. */ - IID_IACTIONCOMPONENT, kWLBCmpActionComponentImpl, + IID_IACTIONCOMPONENT, kMPOLnchActionComponentImpl, } }, @@ -102,7 +102,7 @@ resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) */ Class { - kWLBCmpPanelWidgetBoss, + kMPOLnchPanelWidgetBoss, kPalettePanelWidgetBoss, { /** An implementation of ITextControlData, but with interface @@ -120,17 +120,17 @@ resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) */ Class { - kWLBCmpListBoxWidgetBoss, + kMPOLnchListBoxWidgetBoss, kTreeViewWidgetBoss, { /** Furnishes application framework with widgets as needed */ - IID_ITREEVIEWWIDGETMGR, kWLBCmpTVWidgetMgrImpl, + IID_ITREEVIEWWIDGETMGR, kMPOLnchTVWidgetMgrImpl, /** Adapts our data model to the needs of the application framework */ - IID_ITREEVIEWHIERARCHYADAPTER, kWLBCmpTVHierarchyAdapterImpl, + IID_ITREEVIEWHIERARCHYADAPTER, kMPOLnchTVHierarchyAdapterImpl, /** Hold names of the list item */ IID_ISTRINGLISTDATA, kStringListDataImpl, /** Display selection message */ - IID_IOBSERVER, kWLBCmpListBoxObserverImpl, + IID_IOBSERVER, kMPOLnchListBoxObserverImpl, } }, @@ -139,7 +139,7 @@ resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) */ Class { - kWLBCmpTextWidgetBoss, + kMPOLnchTextWidgetBoss, kInfoStaticTextWidgetBoss, { // Add the following interfaces for a white background (they'd override the default.) @@ -154,13 +154,13 @@ resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) */ Class { - kWLBCmpEyeballWidgetBoss, + kMPOLnchEyeballWidgetBoss, kRollOverIconButtonBoss, { /** Receive Update messages from the application core when end-user clicks on the eyeball iconic button. */ - IID_IOBSERVER, kWLBCmpEyeballObserverImpl, + IID_IOBSERVER, kMPOLnchEyeballObserverImpl, } }, @@ -170,13 +170,13 @@ resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID) */ Class { - kWLBCmpPenWidgetBoss, + kMPOLnchPenWidgetBoss, kRollOverIconButtonBoss, { /** Receive Update messages from the application core when end-user clicks on the pen iconic button. */ - IID_IOBSERVER, kWLBCmpPenObserverImpl, + IID_IOBSERVER, kMPOLnchPenObserverImpl, } }, @@ -189,7 +189,7 @@ resource FactoryList (kSDKDefFactoryListResourceID) { kImplementationIDSpace, { -#include "WLBCmpFactoryList.h" +#include "MPOLnchFactoryList.h" } }; @@ -200,31 +200,31 @@ resource MenuDef (kSDKDefMenuResourceID) { { // The About Plug-ins sub-menu item for this plug-in. - kWLBCmpAboutActionID, // ActionID (kInvalidActionID for positional entries) - kWLBCmpAboutMenuPath, // Menu Path. + kMPOLnchAboutActionID, // ActionID (kInvalidActionID for positional entries) + kMPOLnchAboutMenuPath, // Menu Path. kSDKDefAlphabeticPosition, // Menu Position. kSDKDefIsNotDynamicMenuFlag, // kSDKDefIsNotDynamicMenuFlag or kSDKDefIsDynamicMenuFlag. - kWLBCmpAddItemActionID, - kWLBCmpTargetMenuPath, - kWLBCmpAddItemMenuItemPosition, + kMPOLnchAddItemActionID, + kMPOLnchTargetMenuPath, + kMPOLnchAddItemMenuItemPosition, kSDKDefIsNotDynamicMenuFlag, - kWLBCmpRemoveItemActionID, - kWLBCmpTargetMenuPath, - kWLBCmpRemoveItemMenuItemPosition, + kMPOLnchRemoveItemActionID, + kMPOLnchTargetMenuPath, + kMPOLnchRemoveItemMenuItemPosition, kSDKDefIsNotDynamicMenuFlag, // Separator for the popup menu on the panel - kWLBCmpSeparator1ActionID, - kWLBCmpInternalPopupMenuNameKey kSDKDefDelimiterAndSeparatorPath, // :- to mark an item as a separator. - kWLBCmpSeparator1MenuItemPosition, + kMPOLnchSeparator1ActionID, + kMPOLnchInternalPopupMenuNameKey kSDKDefDelimiterAndSeparatorPath, // :- to mark an item as a separator. + kMPOLnchSeparator1MenuItemPosition, kSDKDefIsNotDynamicMenuFlag, // About this plugin submenu for the popup menu on the panel - kWLBCmpPopupAboutThisActionID, - kWLBCmpTargetMenuPath - kWLBCmpAboutThisMenuItemPosition, + kMPOLnchPopupAboutThisActionID, + kMPOLnchTargetMenuPath + kMPOLnchAboutThisMenuItemPosition, kSDKDefIsNotDynamicMenuFlag, } @@ -236,35 +236,35 @@ resource MenuDef (kSDKDefMenuResourceID) resource ActionDef (kSDKDefActionResourceID) { { - kWLBCmpActionComponentBoss, // ClassID of boss class that implements the ActionID. - kWLBCmpAboutActionID, // ActionID. - kWLBCmpAboutMenuKey, // Sub-menu string. + kMPOLnchActionComponentBoss, // ClassID of boss class that implements the ActionID. + kMPOLnchAboutActionID, // ActionID. + kMPOLnchAboutMenuKey, // Sub-menu string. kHelpMenuActionArea, // 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. - kWLBCmpActionComponentBoss, - kWLBCmpAddItemActionID, - kWLBCmpAddItemMenuItemKey, + kMPOLnchActionComponentBoss, + kMPOLnchAddItemActionID, + kMPOLnchAddItemMenuItemKey, kOtherActionArea, kNormalAction, kDisableIfLowMem, kInvalidInterfaceID, kSDKDefInvisibleInKBSCEditorFlag, - kWLBCmpActionComponentBoss, - kWLBCmpRemoveItemActionID, - kWLBCmpRemoveItemMenuItemKey, + kMPOLnchActionComponentBoss, + kMPOLnchRemoveItemActionID, + kMPOLnchRemoveItemMenuItemKey, kOtherActionArea, kNormalAction, kCustomEnabling, // so that UpdateActionStates will get called kInvalidInterfaceID, kSDKDefInvisibleInKBSCEditorFlag, - kWLBCmpActionComponentBoss, - kWLBCmpPopupAboutThisActionID, + kMPOLnchActionComponentBoss, + kMPOLnchPopupAboutThisActionID, kSDKDefAboutThisPlugInMenuKey, // Key to the name of this action kOtherActionArea, kNormalAction, @@ -305,11 +305,11 @@ resource LocaleIndex (kSDKDefStringsNoTransResourceID) }; // added to support the list elements in the list box -resource LocaleIndex (kWLBCmpListElementRsrcID) +resource LocaleIndex (kMPOLnchListElementRsrcID) { kViewRsrcType, { - kWildFS, k_Wild, kWLBCmpListElementRsrcID + index_enUS + kWildFS, k_Wild, kMPOLnchListElementRsrcID + index_enUS } }; @@ -321,7 +321,7 @@ resource StringTable (kSDKDefStringsNoTransResourceID + index_enUS) // No-Translate strings go here: - kWLBCmpInternalPopupMenuNameKey, kWLBCmpInternalPopupMenuNameKey, // No need to translate, internal menu name. + kMPOLnchInternalPopupMenuNameKey, kMPOLnchInternalPopupMenuNameKey, // No need to translate, internal menu name. } }; @@ -342,17 +342,17 @@ resource LocaleIndex (kSDKDefPanelResourceID) //======================================================================================== // Type definition. //======================================================================================== -type WLBCmpPanelWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kWLBCmpPanelWidgetBoss) +type MPOLnchPanelWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kMPOLnchPanelWidgetBoss) { CPanelMenuData; }; -type WLBCmpListBox (kViewRsrcType) : TreeViewWidget (ClassID = kWLBCmpListBoxWidgetBoss) { }; -type WLBCmpNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kTreeNodeWidgetBoss) +type MPOLnchListBox (kViewRsrcType) : TreeViewWidget (ClassID = kMPOLnchListBoxWidgetBoss) { }; +type MPOLnchNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kTreeNodeWidgetBoss) { }; -type WLBCmpTextWidget (kViewRsrcType) : InfoStaticTextWidget (ClassID = kWLBCmpTextWidgetBoss) { }; -type WLBCmpEyeballWidget (kViewRsrcType) : RollOverIconButtonWidget (ClassID = kWLBCmpEyeballWidgetBoss) {}; -type WLBCmpPenWidget (kViewRsrcType) : RollOverIconButtonWidget (ClassID = kWLBCmpPenWidgetBoss) {}; +type MPOLnchTextWidget (kViewRsrcType) : InfoStaticTextWidget (ClassID = kMPOLnchTextWidgetBoss) { }; +type MPOLnchEyeballWidget (kViewRsrcType) : RollOverIconButtonWidget (ClassID = kMPOLnchEyeballWidgetBoss) {}; +type MPOLnchPenWidget (kViewRsrcType) : RollOverIconButtonWidget (ClassID = kMPOLnchPenWidgetBoss) {}; //================================================================================ // PanelList definition. @@ -362,10 +362,10 @@ resource PanelList (kSDKDefPanelResourceID) { // 1st panel in the list kSDKDefPanelResourceID, // Resource ID for this panel (use SDK default rsrc ID) - kWLBCmpPluginID, // ID of plug-in that owns this panel + kMPOLnchPluginID, // ID of plug-in that owns this panel kNotResizable, - kWLBCmpPanelWidgetActionID, // Action ID to show/hide the panel - kWLBCmpPanelTitleKey, // Shows up in the Window list. + kMPOLnchPanelWidgetActionID, // Action ID to show/hide the panel + kMPOLnchPanelTitleKey, // Shows up in the Window list. "", // Alternate menu path of the form "Main:Foo" if you want your palette menu item in a second place 0.0, // Alternate Menu position Alternate Menu position for determining menu order 0,0, // Rsrc ID, Plugin ID for a PNG icon resource to use for this palette @@ -377,12 +377,12 @@ resource PanelList (kSDKDefPanelResourceID) // PanelView definition. // The view is not currently 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. WLBCmp_enUS.fr etc.). +// the localised framework resource files (i.e. MPOLnch_enUS.fr etc.). //================================================================================ -resource WLBCmpPanelWidget(kSDKDefPanelResourceID + index_enUS) +resource MPOLnchPanelWidget(kSDKDefPanelResourceID + index_enUS) { __FILE__, __LINE__, // Localization macro - kWLBCmpPanelWidgetID, // WidgetID + kMPOLnchPanelWidgetID, // WidgetID kPMRsrcID_None, // RsrcID kBindNone, // Binding (0=none) 0, 0, 207, 95, // Frame: left, top, right, bottom. @@ -390,11 +390,11 @@ resource WLBCmpPanelWidget(kSDKDefPanelResourceID + index_enUS) kFalse, // Erase background kInterfacePaletteFill, // Erase to color kFalse, // Draw dropshadow - kWLBCmpPanelTitleKey, // Panel name + kMPOLnchPanelTitleKey, // Panel name { - WLBCmpListBox //Tree view + MPOLnchListBox //Tree view ( - kWLBCmpListBoxWidgetID, kPMRsrcID_None, // WidgetId, RsrcId + kMPOLnchListBoxWidgetID, kPMRsrcID_None, // WidgetId, RsrcId kBindAll, // Frame binding Frame(-1,0,208,96) // Frame kTrue, kTrue, // Visible, Enabled @@ -419,29 +419,29 @@ resource WLBCmpPanelWidget(kSDKDefPanelResourceID + index_enUS) } - kWLBCmpInternalPopupMenuNameKey // Popup menu name (internal) + kMPOLnchInternalPopupMenuNameKey // Popup menu name (internal) }; -resource WLBCmpNodeWidget (kWLBCmpListElementRsrcID + index_enUS) +resource MPOLnchNodeWidget (kMPOLnchListElementRsrcID + index_enUS) { __FILE__, __LINE__, - kWLBCmpListParentWidgetId, kPMRsrcID_None, // WidgetId, RsrcId + kMPOLnchListParentWidgetId, kPMRsrcID_None, // WidgetId, RsrcId kBindLeft | kBindRight, // Frame binding Frame(0, 0, 194, 20), // Frame kTrue, kTrue, // Visible, Enabled "", // Panel name { - WLBCmpEyeballWidget + MPOLnchEyeballWidget ( - kWLBCmpListElementEyeballWidgetID, kWLBCmpEyeBallIcon, kWLBCmpPluginID, // WidgetId, RsrcId + kMPOLnchListElementEyeballWidgetID, kMPOLnchEyeBallIcon, kMPOLnchPluginID, // WidgetId, RsrcId kBindLeft, // Frame binding Frame(3,1,22,18) // Frame kTrue, kTrue, // Visible, Enabled kADBEIconSuiteButtonType, ), - WLBCmpPenWidget + MPOLnchPenWidget ( - kWLBCmpListElementPenWidgetID, kWLBCmpPenIcon, kWLBCmpPluginID, // WidgetId, RsrcId + kMPOLnchListElementPenWidgetID, kMPOLnchPenIcon, kMPOLnchPluginID, // WidgetId, RsrcId kBindLeft, // Frame binding Frame(25,1,44,18) // Frame kTrue, kTrue, // Visible, Enabled @@ -449,9 +449,9 @@ resource WLBCmpNodeWidget (kWLBCmpListElementRsrcID + index_enUS) ), // Just a info-static text widget with about-box text view to get white bg. - WLBCmpTextWidget + MPOLnchTextWidget ( - kWLBCmpTextWidgetID, kPMRsrcID_None, // WidgetId, RsrcId + kMPOLnchTextWidgetID, kPMRsrcID_None, // WidgetId, RsrcId kBindLeft | kBindRight, // Frame binding Frame(45,1,194,18) // Frame kTrue, kTrue, kAlignLeft,kEllipsizeEnd,kTrue, // Visible, Enabled, ellipsize style, convert ampersands @@ -470,10 +470,10 @@ resource WLBCmpNodeWidget (kWLBCmpListElementRsrcID + index_enUS) #endif // __ODFRC__ -#include "WLBCmp_enUS.fr" -#include "WLBCmp_jaJP.fr" +#include "MPOLnch_enUS.fr" +#include "MPOLnch_jaJP.fr" -// End, WLBCmp.fr. +// End, MPOLnch.fr. diff --git a/MPOLnch.rc b/MPOLnch.rc index b0c0d52..81f0de7 100644 --- a/MPOLnch.rc +++ b/MPOLnch.rc @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmp.rc $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnch.rc $ // // Owner: Adobe Developer Technologies // @@ -23,7 +23,7 @@ #include "WinRezFlags.h" #include "BuildNumber.h" -#include "WLBCmpID.h" +#include "MPOLnchID.h" 1510 ICON DISCARDABLE "Eyeball.ico" 1512 ICON DISCARDABLE "LockPencil.ico" 1514 ICON DISCARDABLE "Pen.ico" @@ -48,10 +48,10 @@ BEGIN VALUE "CompanyName", "Adobe Systems Incorporated\0" VALUE "FileDescription", "Adobe InDesign SDK Plug-in\0" VALUE "FileVersion", "1.0", "\0" - VALUE "InternalName", kWLBCmpPluginName, "\0" + VALUE "InternalName", kMPOLnchPluginName, "\0" VALUE "LegalCopyright", kShortCopyRightStr, "\0" - VALUE "OriginalFilename", kWLBCmpPluginName ".pln\0" + VALUE "OriginalFilename", kMPOLnchPluginName ".pln\0" VALUE "ProductName", "Adobe InDesign\0" VALUE "ProductVersion", kVersionNumberForResourceStr, "\0" VALUE "Copyright", kVersionCopyRightStr, "\0" @@ -64,6 +64,6 @@ BEGIN END -// End, WLBCmp.rc +// End, MPOLnch.rc diff --git a/MPOLnchActionComponent.cpp b/MPOLnchActionComponent.cpp index 4c09cad..6c09512 100644 --- a/MPOLnchActionComponent.cpp +++ b/MPOLnchActionComponent.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpActionComponent.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchActionComponent.cpp $ // // Owner: Adobe Developer Technologies // @@ -37,28 +37,28 @@ // General includes: #include "CActionComponent.h" #include "CAlert.h" -#include "WLBCmpNodeID.h" +#include "MPOLnchNodeID.h" #include "K2Vector.tpp" // For NodeIDList to compile // Project includes: -#include "WLBCmpID.h" +#include "MPOLnchID.h" -/** WLBCmpActionComponent +/** MPOLnchActionComponent All about the user actions @ingroup wlistboxcomposite */ -class WLBCmpActionComponent : public CActionComponent +class MPOLnchActionComponent : public CActionComponent { public: /** Constructor. @param boss interface ptr from boss object on which this interface is aggregated. */ - WLBCmpActionComponent(IPMUnknown* boss); + MPOLnchActionComponent(IPMUnknown* boss); /** The action component should do the requested action. @@ -99,35 +99,35 @@ class WLBCmpActionComponent : public CActionComponent ImplementationID making the C++ code callable by the application. */ -CREATE_PMINTERFACE(WLBCmpActionComponent, kWLBCmpActionComponentImpl) +CREATE_PMINTERFACE(MPOLnchActionComponent, kMPOLnchActionComponentImpl) -/* WLBCmpActionComponent Constructor +/* MPOLnchActionComponent Constructor */ -WLBCmpActionComponent::WLBCmpActionComponent(IPMUnknown* boss) +MPOLnchActionComponent::MPOLnchActionComponent(IPMUnknown* boss) : CActionComponent(boss) { } /* DoAction */ -void WLBCmpActionComponent::DoAction(IActiveContext *myContext, ActionID actionID, GSysPoint mousePoint, IPMUnknown *widget) +void MPOLnchActionComponent::DoAction(IActiveContext *myContext, ActionID actionID, GSysPoint mousePoint, IPMUnknown *widget) { switch (actionID.Get()) { - case kWLBCmpPopupAboutThisActionID: - case kWLBCmpAboutActionID: + case kMPOLnchPopupAboutThisActionID: + case kMPOLnchAboutActionID: { this->DoAbout(); break; } - case kWLBCmpAddItemActionID: + case kMPOLnchAddItemActionID: { this->DoAddItem(widget); break; } - case kWLBCmpRemoveItemActionID: + case kMPOLnchRemoveItemActionID: { this->DoRemoveItem(widget); break; @@ -145,12 +145,12 @@ void WLBCmpActionComponent::DoAction(IActiveContext *myContext, ActionID actionI */ -void WLBCmpActionComponent::UpdateActionStates(IActiveContext *myContext, IActionStateList *listToUpdate, GSysPoint mousePoint, IPMUnknown *widget) +void MPOLnchActionComponent::UpdateActionStates(IActiveContext *myContext, IActionStateList *listToUpdate, GSysPoint mousePoint, IPMUnknown *widget) { do { int listElementCount = 0; - InterfacePtr treeWidget(static_cast(Utils()->QueryRelatedWidget(widget, kWLBCmpListBoxWidgetID, IID_ICONTROLVIEW))); + InterfacePtr treeWidget(static_cast(Utils()->QueryRelatedWidget(widget, kMPOLnchListBoxWidgetID, IID_ICONTROLVIEW))); ASSERT(treeWidget); if(!treeWidget) { break; @@ -173,7 +173,7 @@ void WLBCmpActionComponent::UpdateActionStates(IActiveContext *myContext, IActio switch (action.Get()) { - case kWLBCmpRemoveItemActionID: + case kMPOLnchRemoveItemActionID: if(listElementCount>0) { listToUpdate->SetNthActionState(i,kEnabledAction); } @@ -193,11 +193,11 @@ void WLBCmpActionComponent::UpdateActionStates(IActiveContext *myContext, IActio /* DoAbout */ -void WLBCmpActionComponent::DoAbout() +void MPOLnchActionComponent::DoAbout() { CAlert::ModalAlert ( - kWLBCmpAboutBoxStringKey, // Alert string + kMPOLnchAboutBoxStringKey, // Alert string kOKString, // OK button kNullString, // No second button kNullString, // No third button @@ -208,13 +208,13 @@ void WLBCmpActionComponent::DoAbout() /* DoAddItem */ -void WLBCmpActionComponent::DoAddItem(IPMUnknown *invokedWidget) +void MPOLnchActionComponent::DoAddItem(IPMUnknown *invokedWidget) { - InterfacePtr treeWidget(static_cast(Utils()->QueryRelatedWidget(invokedWidget, kWLBCmpListBoxWidgetID, IID_ICONTROLVIEW))); + InterfacePtr treeWidget(static_cast(Utils()->QueryRelatedWidget(invokedWidget, kMPOLnchListBoxWidgetID, IID_ICONTROLVIEW))); InterfacePtr treeMgr(treeWidget, UseDefaultIID()); InterfacePtr iListData(treeWidget, IID_ISTRINGLISTDATA); K2Vector lists = iListData->GetStringList(); - PMString item(kWLBCmpAddedElementKey); + PMString item(kMPOLnchAddedElementKey); item.Translate(); K2Vector::const_iterator iter = std::find(lists.begin(), lists.end(), item); int32 addIndex = 2; @@ -229,16 +229,16 @@ void WLBCmpActionComponent::DoAddItem(IPMUnknown *invokedWidget) lists.insert(lists.begin(), item); iListData->SetStringList(lists); //make sure that the node added has been processed - NodeID node = WLBCmpNodeID::Create(item); + NodeID node = MPOLnchNodeID::Create(item); treeMgr->NodeAdded(node); } } /* DoRemoveItem */ -void WLBCmpActionComponent::DoRemoveItem(IPMUnknown *invokedWidget) +void MPOLnchActionComponent::DoRemoveItem(IPMUnknown *invokedWidget) { - InterfacePtr treeWidget(static_cast(Utils()->QueryRelatedWidget(invokedWidget, kWLBCmpListBoxWidgetID, IID_ICONTROLVIEW))); + InterfacePtr treeWidget(static_cast(Utils()->QueryRelatedWidget(invokedWidget, kMPOLnchListBoxWidgetID, IID_ICONTROLVIEW))); InterfacePtr treeMgr(treeWidget, UseDefaultIID()); InterfacePtr controller(treeWidget, UseDefaultIID()); @@ -260,7 +260,7 @@ void WLBCmpActionComponent::DoRemoveItem(IPMUnknown *invokedWidget) K2Vector lists = iListData->GetStringList(); for(iter = startIter; iter != endIter; ++iter) { - const WLBCmpNodeID* oneNode = static_cast(iter->Get()); + const MPOLnchNodeID* oneNode = static_cast(iter->Get()); PMString item = oneNode->GetName(); K2Vector::iterator s_iter = std::find(lists.begin(), lists.end(), item); @@ -273,6 +273,6 @@ void WLBCmpActionComponent::DoRemoveItem(IPMUnknown *invokedWidget) } -// End, WLBCmpActionComponent.cpp. +// End, MPOLnchActionComponent.cpp. diff --git a/MPOLnchEyeballObserver.cpp b/MPOLnchEyeballObserver.cpp index ea851e8..1578da8 100644 --- a/MPOLnchEyeballObserver.cpp +++ b/MPOLnchEyeballObserver.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpEyeballObserver.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchEyeballObserver.cpp $ // // Owner: Adobe Developer Technologies // @@ -32,7 +32,7 @@ // Implem includes #include "CAlert.h" #include "CObserver.h" -#include "WLBCmpID.h" +#include "MPOLnchID.h" /** @@ -41,7 +41,7 @@ @ingroup wlistboxcomposite */ -class WLBCmpEyeballObserver : public CObserver +class MPOLnchEyeballObserver : public CObserver { public: @@ -49,13 +49,13 @@ class WLBCmpEyeballObserver : public CObserver Constructor for WLBListBoxObserver class. @param interface ptr from boss object on which this interface is aggregated. */ - WLBCmpEyeballObserver(IPMUnknown *boss); + MPOLnchEyeballObserver(IPMUnknown *boss); /** - Destructor for WLBCmpEyeballObserver class - + Destructor for MPOLnchEyeballObserver class - performs cleanup */ - ~WLBCmpEyeballObserver(); + ~MPOLnchEyeballObserver(); /** AutoAttach is only called for registered observers @@ -87,23 +87,23 @@ class WLBCmpEyeballObserver : public CObserver }; -CREATE_PMINTERFACE(WLBCmpEyeballObserver, kWLBCmpEyeballObserverImpl) +CREATE_PMINTERFACE(MPOLnchEyeballObserver, kMPOLnchEyeballObserverImpl) -WLBCmpEyeballObserver::WLBCmpEyeballObserver(IPMUnknown* boss) +MPOLnchEyeballObserver::MPOLnchEyeballObserver(IPMUnknown* boss) : CObserver(boss) { } -WLBCmpEyeballObserver::~WLBCmpEyeballObserver() +MPOLnchEyeballObserver::~MPOLnchEyeballObserver() { } -void WLBCmpEyeballObserver::AutoAttach() +void MPOLnchEyeballObserver::AutoAttach() { InterfacePtr subject(this, UseDefaultIID()); if (subject != nil) @@ -114,7 +114,7 @@ void WLBCmpEyeballObserver::AutoAttach() } -void WLBCmpEyeballObserver::AutoDetach() +void MPOLnchEyeballObserver::AutoDetach() { InterfacePtr subject(this, UseDefaultIID()); if (subject != nil) @@ -124,7 +124,7 @@ void WLBCmpEyeballObserver::AutoDetach() } -void WLBCmpEyeballObserver::Update +void MPOLnchEyeballObserver::Update ( const ClassID& theChange, ISubject* theSubject, @@ -135,7 +135,7 @@ void WLBCmpEyeballObserver::Update if(theChange == kTrueStateMessage) { // Then the button has been activated. do { - PMString dbgInfoString("WLBCmpEyeballObserver::Update() "); + PMString dbgInfoString("MPOLnchEyeballObserver::Update() "); dbgInfoString.SetTranslatable(kFalse); // only for debug- not real code CAlert::InformationAlert(dbgInfoString); diff --git a/MPOLnchFactoryList.h b/MPOLnchFactoryList.h index fbbe176..5a68179 100644 --- a/MPOLnchFactoryList.h +++ b/MPOLnchFactoryList.h @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpFactoryList.h $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchFactoryList.h $ // // Owner: Adobe Developer Technologies // @@ -25,13 +25,13 @@ // //======================================================================================== -REGISTER_PMINTERFACE(WLBCmpActionComponent, kWLBCmpActionComponentImpl) -REGISTER_PMINTERFACE(WLBCmpListBoxObserver, kWLBCmpListBoxObserverImpl) -REGISTER_PMINTERFACE(WLBCmpEyeballObserverImpl, kWLBCmpEyeballObserverImpl) -REGISTER_PMINTERFACE(WLBCmpPenObserverImpl, kWLBCmpPenObserverImpl) -REGISTER_PMINTERFACE(WLBCmpTreeViewAdapter, kWLBCmpTVHierarchyAdapterImpl) -REGISTER_PMINTERFACE(WLBCmpTVWidgetMgr, kWLBCmpTVWidgetMgrImpl) +REGISTER_PMINTERFACE(MPOLnchActionComponent, kMPOLnchActionComponentImpl) +REGISTER_PMINTERFACE(MPOLnchListBoxObserver, kMPOLnchListBoxObserverImpl) +REGISTER_PMINTERFACE(MPOLnchEyeballObserverImpl, kMPOLnchEyeballObserverImpl) +REGISTER_PMINTERFACE(MPOLnchPenObserverImpl, kMPOLnchPenObserverImpl) +REGISTER_PMINTERFACE(MPOLnchTreeViewAdapter, kMPOLnchTVHierarchyAdapterImpl) +REGISTER_PMINTERFACE(MPOLnchTVWidgetMgr, kMPOLnchTVWidgetMgrImpl) -// End, WLBCmpFactoryList.h. +// End, MPOLnchFactoryList.h. diff --git a/MPOLnchID.cpp b/MPOLnchID.cpp index 298391d..94b0e70 100644 --- a/MPOLnchID.cpp +++ b/MPOLnchID.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpID.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchID.cpp $ // // Owner: Adobe Developer Technologies // @@ -31,9 +31,9 @@ #include "IDFactory_cpp.h" #pragma export on - #include "WLBCmpID.h" + #include "MPOLnchID.h" #pragma export off -// End, WLBCmpID.cpp. +// End, MPOLnchID.cpp. diff --git a/MPOLnchID.h b/MPOLnchID.h index d210a81..3a6cc6c 100644 --- a/MPOLnchID.h +++ b/MPOLnchID.h @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpID.h $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchID.h $ // // Owner: Adobe Developer Technologies // @@ -20,107 +20,107 @@ // distribution of it requires the prior written permission of Adobe. // // -// Defines IDs used by the WLBCmp plug-in. +// Defines IDs used by the MPOLnch plug-in. // //======================================================================================== -#ifndef __WLBCmpID_h__ -#define __WLBCmpID_h__ +#ifndef __MPOLnchID_h__ +#define __MPOLnchID_h__ #include "SDKDef.h" // Company: -#define kWLBCmpCompanyKey kSDKDefPlugInCompanyKey // Company name used internally for menu paths and the like. Must be globally unique, only A-Z, 0-9, space and "_". -#define kWLBCmpCompanyValue kSDKDefPlugInCompanyValue // Company name displayed externally. +#define kMPOLnchCompanyKey kSDKDefPlugInCompanyKey // Company name used internally for menu paths and the like. Must be globally unique, only A-Z, 0-9, space and "_". +#define kMPOLnchCompanyValue kSDKDefPlugInCompanyValue // Company name displayed externally. // Plug-in: -#define kWLBCmpPluginName "MPOLauncher" // Name of this plug-in. -#define kWLBCmpPrefixNumber 0x174600 // Unique prefix number for this plug-in(*Must* be obtained from Adobe Developer Support). -#define kWLBCmpVersion kSDKDefPluginVersionString // Version of this plug-in (for the About Box). -#define kWLBCmpAuthor "fabiantheblind" // Author of this plug-in (for the About Box). +#define kMPOLnchPluginName "MPOLauncher" // Name of this plug-in. +#define kMPOLnchPrefixNumber 0x174600 // Unique prefix number for this plug-in(*Must* be obtained from Adobe Developer Support). +#define kMPOLnchVersion kSDKDefPluginVersionString // Version of this plug-in (for the About Box). +#define kMPOLnchAuthor "fabiantheblind" // Author of this plug-in (for the About Box). -// Plug-in Prefix: (please change kWLBCmpPrefixNumber above to modify the prefix.) -#define kWLBCmpPrefix RezLong(kWLBCmpPrefixNumber) // The unique numeric prefix for all object model IDs for this plug-in. -#define kWLBCmpStringPrefix SDK_DEF_STRINGIZE(kWLBCmpPrefixNumber) // The string equivalent of the unique prefix number for this plug-in. +// Plug-in Prefix: (please change kMPOLnchPrefixNumber above to modify the prefix.) +#define kMPOLnchPrefix RezLong(kMPOLnchPrefixNumber) // The unique numeric prefix for all object model IDs for this plug-in. +#define kMPOLnchStringPrefix SDK_DEF_STRINGIZE(kMPOLnchPrefixNumber) // The string equivalent of the unique prefix number for this plug-in. // PluginID: -DECLARE_PMID(kPlugInIDSpace, kWLBCmpPluginID, kWLBCmpPrefix + 0) +DECLARE_PMID(kPlugInIDSpace, kMPOLnchPluginID, kMPOLnchPrefix + 0) // ClassIDs: -DECLARE_PMID(kClassIDSpace, kWLBCmpActionComponentBoss, kWLBCmpPrefix + 0) -DECLARE_PMID(kClassIDSpace, kWLBCmpStringRegisterBoss, kWLBCmpPrefix + 1) -DECLARE_PMID(kClassIDSpace, kWLBCmpPanelRegisterBoss, kWLBCmpPrefix + 2) -DECLARE_PMID(kClassIDSpace, kWLBCmpMenuRegisterBoss, kWLBCmpPrefix + 3) -DECLARE_PMID(kClassIDSpace, kWLBCmpActionRegisterBoss, kWLBCmpPrefix + 4) -DECLARE_PMID(kClassIDSpace, kWLBCmpPanelWidgetBoss, kWLBCmpPrefix + 5) -DECLARE_PMID(kClassIDSpace, kWLBCmpListBoxWidgetBoss, kWLBCmpPrefix + 6) -DECLARE_PMID(kClassIDSpace, kWLBCmpTextWidgetBoss, kWLBCmpPrefix + 7) -DECLARE_PMID(kClassIDSpace, kWLBCmpEyeballWidgetBoss, kWLBCmpPrefix + 8) -DECLARE_PMID(kClassIDSpace, kWLBCmpPenWidgetBoss, kWLBCmpPrefix + 9) +DECLARE_PMID(kClassIDSpace, kMPOLnchActionComponentBoss, kMPOLnchPrefix + 0) +DECLARE_PMID(kClassIDSpace, kMPOLnchStringRegisterBoss, kMPOLnchPrefix + 1) +DECLARE_PMID(kClassIDSpace, kMPOLnchPanelRegisterBoss, kMPOLnchPrefix + 2) +DECLARE_PMID(kClassIDSpace, kMPOLnchMenuRegisterBoss, kMPOLnchPrefix + 3) +DECLARE_PMID(kClassIDSpace, kMPOLnchActionRegisterBoss, kMPOLnchPrefix + 4) +DECLARE_PMID(kClassIDSpace, kMPOLnchPanelWidgetBoss, kMPOLnchPrefix + 5) +DECLARE_PMID(kClassIDSpace, kMPOLnchListBoxWidgetBoss, kMPOLnchPrefix + 6) +DECLARE_PMID(kClassIDSpace, kMPOLnchTextWidgetBoss, kMPOLnchPrefix + 7) +DECLARE_PMID(kClassIDSpace, kMPOLnchEyeballWidgetBoss, kMPOLnchPrefix + 8) +DECLARE_PMID(kClassIDSpace, kMPOLnchPenWidgetBoss, kMPOLnchPrefix + 9) // InterfaceIDs: // None in this plug-in. // ImplementationIDs: -DECLARE_PMID(kImplementationIDSpace, kWLBCmpActionComponentImpl, kWLBCmpPrefix + 0) -DECLARE_PMID(kImplementationIDSpace, kWLBCmpListBoxObserverImpl, kWLBCmpPrefix + 1) -DECLARE_PMID(kImplementationIDSpace, kWLBCmpEyeballObserverImpl, kWLBCmpPrefix + 2) -DECLARE_PMID(kImplementationIDSpace, kWLBCmpPenObserverImpl, kWLBCmpPrefix + 3) -DECLARE_PMID(kImplementationIDSpace, kWLBCmpTVWidgetMgrImpl, kWLBCmpPrefix + 4) -DECLARE_PMID(kImplementationIDSpace, kWLBCmpTVHierarchyAdapterImpl, kWLBCmpPrefix + 5) +DECLARE_PMID(kImplementationIDSpace, kMPOLnchActionComponentImpl, kMPOLnchPrefix + 0) +DECLARE_PMID(kImplementationIDSpace, kMPOLnchListBoxObserverImpl, kMPOLnchPrefix + 1) +DECLARE_PMID(kImplementationIDSpace, kMPOLnchEyeballObserverImpl, kMPOLnchPrefix + 2) +DECLARE_PMID(kImplementationIDSpace, kMPOLnchPenObserverImpl, kMPOLnchPrefix + 3) +DECLARE_PMID(kImplementationIDSpace, kMPOLnchTVWidgetMgrImpl, kMPOLnchPrefix + 4) +DECLARE_PMID(kImplementationIDSpace, kMPOLnchTVHierarchyAdapterImpl, kMPOLnchPrefix + 5) // ActionIDs: -DECLARE_PMID(kActionIDSpace, kWLBCmpAboutActionID, kWLBCmpPrefix + 0) -DECLARE_PMID(kActionIDSpace, kWLBCmpPanelWidgetActionID, kWLBCmpPrefix + 1) -DECLARE_PMID(kActionIDSpace, kWLBCmpSeparator1ActionID, kWLBCmpPrefix + 2) -DECLARE_PMID(kActionIDSpace, kWLBCmpPopupAboutThisActionID, kWLBCmpPrefix + 3) -DECLARE_PMID(kActionIDSpace, kWLBCmpAddItemActionID, kWLBCmpPrefix + 11) -DECLARE_PMID(kActionIDSpace, kWLBCmpRemoveItemActionID, kWLBCmpPrefix + 12) +DECLARE_PMID(kActionIDSpace, kMPOLnchAboutActionID, kMPOLnchPrefix + 0) +DECLARE_PMID(kActionIDSpace, kMPOLnchPanelWidgetActionID, kMPOLnchPrefix + 1) +DECLARE_PMID(kActionIDSpace, kMPOLnchSeparator1ActionID, kMPOLnchPrefix + 2) +DECLARE_PMID(kActionIDSpace, kMPOLnchPopupAboutThisActionID, kMPOLnchPrefix + 3) +DECLARE_PMID(kActionIDSpace, kMPOLnchAddItemActionID, kMPOLnchPrefix + 11) +DECLARE_PMID(kActionIDSpace, kMPOLnchRemoveItemActionID, kMPOLnchPrefix + 12) // WidgetIDs: -DECLARE_PMID(kWidgetIDSpace, kWLBCmpPanelWidgetID, kWLBCmpPrefix + 0) -DECLARE_PMID(kWidgetIDSpace, kWLBCmpTextWidgetID, kWLBCmpPrefix + 1) -DECLARE_PMID(kWidgetIDSpace, kWLBCmpListParentWidgetId, kWLBCmpPrefix + 2) -DECLARE_PMID(kWidgetIDSpace, kWLBCmpListBoxWidgetID, kWLBCmpPrefix + 3) -DECLARE_PMID(kWidgetIDSpace, kWLBCmpListElementEyeballWidgetID, kWLBCmpPrefix + 4) -DECLARE_PMID(kWidgetIDSpace, kWLBCmpListElementPenWidgetID, kWLBCmpPrefix + 5) +DECLARE_PMID(kWidgetIDSpace, kMPOLnchPanelWidgetID, kMPOLnchPrefix + 0) +DECLARE_PMID(kWidgetIDSpace, kMPOLnchTextWidgetID, kMPOLnchPrefix + 1) +DECLARE_PMID(kWidgetIDSpace, kMPOLnchListParentWidgetId, kMPOLnchPrefix + 2) +DECLARE_PMID(kWidgetIDSpace, kMPOLnchListBoxWidgetID, kMPOLnchPrefix + 3) +DECLARE_PMID(kWidgetIDSpace, kMPOLnchListElementEyeballWidgetID, kMPOLnchPrefix + 4) +DECLARE_PMID(kWidgetIDSpace, kMPOLnchListElementPenWidgetID, kMPOLnchPrefix + 5) // "About Plug-ins" sub-menu: -#define kWLBCmpAboutMenuKey kWLBCmpStringPrefix "kWLBCmpAboutMenuKey" -#define kWLBCmpAboutMenuPath kSDKDefStandardAboutMenuPath kWLBCmpCompanyKey +#define kMPOLnchAboutMenuKey kMPOLnchStringPrefix "kMPOLnchAboutMenuKey" +#define kMPOLnchAboutMenuPath kSDKDefStandardAboutMenuPath kMPOLnchCompanyKey // "Plug-ins" sub-menu: -#define kWLBCmpPluginsMenuKey kWLBCmpStringPrefix "kWLBCmpPluginsMenuKey" -#define kWLBCmpPluginsMenuPath kSDKDefPlugInsStandardMenuPath kWLBCmpCompanyKey kSDKDefDelimitMenuPath kWLBCmpPluginsMenuKey +#define kMPOLnchPluginsMenuKey kMPOLnchStringPrefix "kMPOLnchPluginsMenuKey" +#define kMPOLnchPluginsMenuPath kSDKDefPlugInsStandardMenuPath kMPOLnchCompanyKey kSDKDefDelimitMenuPath kMPOLnchPluginsMenuKey // Menu item keys: -#define kWLBCmpAddItemMenuItemKey kWLBCmpStringPrefix "kWLBCmpAddItemMenuItemKey" -#define kWLBCmpRemoveItemMenuItemKey kWLBCmpStringPrefix "kWLBCmpRemoveItemMenuItemKey" +#define kMPOLnchAddItemMenuItemKey kMPOLnchStringPrefix "kMPOLnchAddItemMenuItemKey" +#define kMPOLnchRemoveItemMenuItemKey kMPOLnchStringPrefix "kMPOLnchRemoveItemMenuItemKey" // Other StringKeys: -#define kWLBCmpAboutBoxStringKey kWLBCmpStringPrefix "kWLBCmpAboutBoxStringKey" -#define kWLBCmpAddItemStringKey kWLBCmpStringPrefix "kWLBCmpAddItemStringKey" -#define kWLBCmpRemoveItemStringKey kWLBCmpStringPrefix "kWLBCmpRemoveItemStringKey" -#define kWLBCmpPanelTitleKey kWLBCmpStringPrefix "kWLBCmpPanelTitleKey" -#define kWLBCmpInternalPopupMenuNameKey kWLBCmpStringPrefix "kWLBCmpInternalPopupMenuNameKey" -#define kWLBCmpTargetMenuPath kWLBCmpInternalPopupMenuNameKey -#define kWLBCmpItemBaseKey kWLBCmpStringPrefix "kWLBCmpItemBaseKey" -#define kWLBCmpAddedElementKey kWLBCmpStringPrefix"kWLBCmpAddedElementKey" +#define kMPOLnchAboutBoxStringKey kMPOLnchStringPrefix "kMPOLnchAboutBoxStringKey" +#define kMPOLnchAddItemStringKey kMPOLnchStringPrefix "kMPOLnchAddItemStringKey" +#define kMPOLnchRemoveItemStringKey kMPOLnchStringPrefix "kMPOLnchRemoveItemStringKey" +#define kMPOLnchPanelTitleKey kMPOLnchStringPrefix "kMPOLnchPanelTitleKey" +#define kMPOLnchInternalPopupMenuNameKey kMPOLnchStringPrefix "kMPOLnchInternalPopupMenuNameKey" +#define kMPOLnchTargetMenuPath kMPOLnchInternalPopupMenuNameKey +#define kMPOLnchItemBaseKey kMPOLnchStringPrefix "kMPOLnchItemBaseKey" +#define kMPOLnchAddedElementKey kMPOLnchStringPrefix"kMPOLnchAddedElementKey" // Menu item positions: -#define kWLBCmpAddItemMenuItemPosition 1.0 -#define kWLBCmpRemoveItemMenuItemPosition 2.0 -#define kWLBCmpSeparator1MenuItemPosition 10.0 -#define kWLBCmpAboutThisMenuItemPosition 11.0 +#define kMPOLnchAddItemMenuItemPosition 1.0 +#define kMPOLnchRemoveItemMenuItemPosition 2.0 +#define kMPOLnchSeparator1MenuItemPosition 10.0 +#define kMPOLnchAboutThisMenuItemPosition 11.0 // Initial data format version numbers -#define kWLBCmpFirstMajorFormatNumber kSDKDef_30_PersistMajorVersionNumber -#define kWLBCmpFirstMinorFormatNumber kSDKDef_30_PersistMinorVersionNumber +#define kMPOLnchFirstMajorFormatNumber kSDKDef_30_PersistMajorVersionNumber +#define kMPOLnchFirstMinorFormatNumber kSDKDef_30_PersistMinorVersionNumber // Data format version numbers for the PluginVersion resource -#define kWLBCmpCurrentMajorFormatNumber kWLBCmpFirstMajorFormatNumber // most recent major format change -#define kWLBCmpCurrentMinorFormatNumber kWLBCmpFirstMinorFormatNumber // most recent minor format change +#define kMPOLnchCurrentMajorFormatNumber kMPOLnchFirstMajorFormatNumber // most recent major format change +#define kMPOLnchCurrentMinorFormatNumber kMPOLnchFirstMinorFormatNumber // most recent minor format change -#endif // __WLBCmpID_h__ +#endif // __MPOLnchID_h__ -// End, WLBCmpID.h. +// End, MPOLnchID.h. diff --git a/MPOLnchListBoxObserver.cpp b/MPOLnchListBoxObserver.cpp index c8dd0d1..e28b61c 100644 --- a/MPOLnchListBoxObserver.cpp +++ b/MPOLnchListBoxObserver.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpListBoxObserver.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchListBoxObserver.cpp $ // // Owner: Adobe Developer Technologies // @@ -35,8 +35,8 @@ #include "CAlert.h" #include "CObserver.h" #include "K2Vector.tpp" // For NodeIDList to compile -#include "WLBCmpNodeID.h" -#include "WLBCmpID.h" +#include "MPOLnchNodeID.h" +#include "MPOLnchID.h" /** @@ -46,7 +46,7 @@ @ingroup wlistboxcomposite */ -class WLBCmpListBoxObserver : public CObserver +class MPOLnchListBoxObserver : public CObserver { public: @@ -54,13 +54,13 @@ class WLBCmpListBoxObserver : public CObserver Constructor for WLBListBoxObserver class. @param interface ptr from boss object on which this interface is aggregated. */ - WLBCmpListBoxObserver(IPMUnknown *boss); + MPOLnchListBoxObserver(IPMUnknown *boss); /** - Destructor for WLBCmpListBoxObserver class + Destructor for MPOLnchListBoxObserver class */ - ~WLBCmpListBoxObserver(); + ~MPOLnchListBoxObserver(); /** AutoAttach is only called for registered observers @@ -94,23 +94,23 @@ class WLBCmpListBoxObserver : public CObserver }; -CREATE_PMINTERFACE(WLBCmpListBoxObserver, kWLBCmpListBoxObserverImpl) +CREATE_PMINTERFACE(MPOLnchListBoxObserver, kMPOLnchListBoxObserverImpl) -WLBCmpListBoxObserver::WLBCmpListBoxObserver(IPMUnknown* boss) +MPOLnchListBoxObserver::MPOLnchListBoxObserver(IPMUnknown* boss) : CObserver(boss) { } -WLBCmpListBoxObserver::~WLBCmpListBoxObserver() +MPOLnchListBoxObserver::~MPOLnchListBoxObserver() { } -void WLBCmpListBoxObserver::AutoAttach() +void MPOLnchListBoxObserver::AutoAttach() { InterfacePtr subject(this, UseDefaultIID()); if (subject != nil) @@ -120,7 +120,7 @@ void WLBCmpListBoxObserver::AutoAttach() } -void WLBCmpListBoxObserver::AutoDetach() +void MPOLnchListBoxObserver::AutoDetach() { InterfacePtr subject(this, UseDefaultIID()); if (subject != nil) @@ -130,7 +130,7 @@ void WLBCmpListBoxObserver::AutoDetach() } -void WLBCmpListBoxObserver::Update +void MPOLnchListBoxObserver::Update ( const ClassID& theChange, ISubject* theSubject, @@ -158,7 +158,7 @@ void WLBCmpListBoxObserver::Update endIter = selectedItems.end(); for(iter = startIter; iter != endIter; ++iter) { - const WLBCmpNodeID* oneNode = static_cast(iter->Get()); + const MPOLnchNodeID* oneNode = static_cast(iter->Get()); PMString item = oneNode->GetName(); item.Translate(); dbgInfoString.Append(item); diff --git a/MPOLnchNoStrip.cpp b/MPOLnchNoStrip.cpp index 59937e4..e4e4d92 100644 --- a/MPOLnchNoStrip.cpp +++ b/MPOLnchNoStrip.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpNoStrip.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchNoStrip.cpp $ // // Owner: Adobe Developer Technologies // @@ -37,10 +37,10 @@ void DontDeadStrip() { if (gFalse) { -#include "WLBCmpFactoryList.h" +#include "MPOLnchFactoryList.h" } } -// End, WLBCmpNoStrip.cpp. +// End, MPOLnchNoStrip.cpp. diff --git a/MPOLnchNodeID.cpp b/MPOLnchNodeID.cpp index 8a8bae0..9031d5f 100644 --- a/MPOLnchNodeID.cpp +++ b/MPOLnchNodeID.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpNodeID.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchNodeID.cpp $ // // Owner: Adobe Developer Technologies // @@ -27,16 +27,16 @@ #include "IPMStream.h" // Project includes: -#include "WLBCmpNodeID.h" +#include "MPOLnchNodeID.h" /** @ingroup wlistboxcomposite */ /* Compare */ -int32 WLBCmpNodeID::Compare(const NodeIDClass* nodeID) const +int32 MPOLnchNodeID::Compare(const NodeIDClass* nodeID) const { - const WLBCmpNodeID* oneNode = static_cast(nodeID); + const MPOLnchNodeID* oneNode = static_cast(nodeID); ASSERT(nodeID); return fName.Compare(kTrue, oneNode->GetName()); @@ -45,15 +45,15 @@ int32 WLBCmpNodeID::Compare(const NodeIDClass* nodeID) const /* Clone */ -NodeIDClass* WLBCmpNodeID::Clone() const +NodeIDClass* MPOLnchNodeID::Clone() const { - return new WLBCmpNodeID(this->GetName()); + return new MPOLnchNodeID(this->GetName()); } /* Read */ -void WLBCmpNodeID::Read(IPMStream* stream) +void MPOLnchNodeID::Read(IPMStream* stream) { fName.ReadWrite(stream); } @@ -61,9 +61,9 @@ void WLBCmpNodeID::Read(IPMStream* stream) /* Write */ -void WLBCmpNodeID::Write(IPMStream* stream) const +void MPOLnchNodeID::Write(IPMStream* stream) const { - (const_cast(this)->fName).ReadWrite(stream); + (const_cast(this)->fName).ReadWrite(stream); } // end, File: PnlTrvDataNode.cpp diff --git a/MPOLnchNodeID.h b/MPOLnchNodeID.h index d57f89d..a2e30f7 100644 --- a/MPOLnchNodeID.h +++ b/MPOLnchNodeID.h @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpNodeID.h $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchNodeID.h $ // // Owner: Adobe Developer Technologies // @@ -25,39 +25,39 @@ // //======================================================================================== -#ifndef __WLBCmpNodeID__ -#define __WLBCmpNodeID__ +#ifndef __MPOLnchNodeID__ +#define __MPOLnchNodeID__ #include "NodeID.h" #include "IPMStream.h" -#include "WLBCmpID.h" +#include "MPOLnchID.h" /** Represents a node in the tree view. It is the list item. @ingroup wlistboxcomposite */ -class WLBCmpNodeID : public NodeIDClass +class MPOLnchNodeID : public NodeIDClass { public: - enum { kNodeType = kWLBCmpListBoxWidgetBoss }; + enum { kNodeType = kMPOLnchListBoxWidgetBoss }; /** Factory method to create new object of this class @return new instance of this class */ - static NodeID_rv Create() { return new WLBCmpNodeID(); } + static NodeID_rv Create() { return new MPOLnchNodeID(); } /** Factory method to create new object of this class @param path [IN] specifies initial path @return new instance of this class */ static NodeID_rv Create(PMString name) - { return new WLBCmpNodeID(name); } + { return new MPOLnchNodeID(name); } /** Destructor */ - virtual ~WLBCmpNodeID() {} + virtual ~MPOLnchNodeID() {} /** @return type of this node @@ -95,13 +95,13 @@ class WLBCmpNodeID : public NodeIDClass private: // Note we're keeping the destructor private to force use of the factory methods - WLBCmpNodeID() {} + MPOLnchNodeID() {} - WLBCmpNodeID(PMString name):fName(name) {} + MPOLnchNodeID(PMString name):fName(name) {} PMString fName; }; -#endif // __WLBCmpNodeID__ +#endif // __MPOLnchNodeID__ diff --git a/MPOLnchPenObserver.cpp b/MPOLnchPenObserver.cpp index caee49c..499922b 100644 --- a/MPOLnchPenObserver.cpp +++ b/MPOLnchPenObserver.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpPenObserver.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchPenObserver.cpp $ // // Owner: Adobe Developer Technologies // @@ -32,7 +32,7 @@ // Implem includes #include "CAlert.h" #include "CObserver.h" -#include "WLBCmpID.h" +#include "MPOLnchID.h" /** @@ -42,7 +42,7 @@ @ingroup wlistboxcomposite */ -class WLBCmpPenObserver : public CObserver +class MPOLnchPenObserver : public CObserver { public: @@ -50,12 +50,12 @@ class WLBCmpPenObserver : public CObserver Constructor for WLBListBoxObserver class. @param interface ptr from boss object on which this interface is aggregated. */ - WLBCmpPenObserver(IPMUnknown *boss); + MPOLnchPenObserver(IPMUnknown *boss); /** Destructor. */ - ~WLBCmpPenObserver(); + ~MPOLnchPenObserver(); /** AutoAttach is only called for registered observers @@ -88,23 +88,23 @@ class WLBCmpPenObserver : public CObserver }; -CREATE_PMINTERFACE(WLBCmpPenObserver, kWLBCmpPenObserverImpl) +CREATE_PMINTERFACE(MPOLnchPenObserver, kMPOLnchPenObserverImpl) -WLBCmpPenObserver::WLBCmpPenObserver(IPMUnknown* boss) +MPOLnchPenObserver::MPOLnchPenObserver(IPMUnknown* boss) : CObserver(boss) { } -WLBCmpPenObserver::~WLBCmpPenObserver() +MPOLnchPenObserver::~MPOLnchPenObserver() { } -void WLBCmpPenObserver::AutoAttach() +void MPOLnchPenObserver::AutoAttach() { InterfacePtr subject(this, UseDefaultIID()); if (subject != nil) @@ -115,7 +115,7 @@ void WLBCmpPenObserver::AutoAttach() } -void WLBCmpPenObserver::AutoDetach() +void MPOLnchPenObserver::AutoDetach() { InterfacePtr subject(this, UseDefaultIID()); if (subject != nil) @@ -125,7 +125,7 @@ void WLBCmpPenObserver::AutoDetach() } -void WLBCmpPenObserver::Update +void MPOLnchPenObserver::Update ( const ClassID& theChange, ISubject* theSubject, @@ -136,7 +136,7 @@ void WLBCmpPenObserver::Update if(theChange == kTrueStateMessage) { // Then the button has been activated. do { - PMString dbgInfoString("WLBCmpPenObserver::Update() "); + PMString dbgInfoString("MPOLnchPenObserver::Update() "); dbgInfoString.SetTranslatable(kFalse); // only for debug- not real code CAlert::InformationAlert(dbgInfoString); diff --git a/MPOLnchRezDefs.h b/MPOLnchRezDefs.h index 70035fa..ec9ebea 100644 --- a/MPOLnchRezDefs.h +++ b/MPOLnchRezDefs.h @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpRezDefs.h $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchRezDefs.h $ // // Owner: Adobe Developer Technologies // @@ -20,21 +20,21 @@ // distribution of it requires the prior written permission of Adobe. // // -// Defines Resource IDs used by the WLBCmp plug-in. +// Defines Resource IDs used by the MPOLnch plug-in. // //======================================================================================== -#ifndef __WLBCmpRezDefs_h__ -#define __WLBCmpRezDefs_h__ +#ifndef __MPOLnchRezDefs_h__ +#define __MPOLnchRezDefs_h__ -#define kWLBCmpListElementRsrcID 1200 +#define kMPOLnchListElementRsrcID 1200 // See. the platform resource file where these are used! -#define kWLBCmpEyeBallIcon 1510 -#define kWLBCmpLockPenIcon 1512 -#define kWLBCmpPenIcon 1514 -#endif // __WLBCmpRezDefs_h__ +#define kMPOLnchEyeBallIcon 1510 +#define kMPOLnchLockPenIcon 1512 +#define kMPOLnchPenIcon 1514 +#endif // __MPOLnchRezDefs_h__ -// End, WLBCmpRezDefs.h. +// End, MPOLnchRezDefs.h. diff --git a/MPOLnchTreeViewAdapter.cpp b/MPOLnchTreeViewAdapter.cpp index 115f154..2076ab4 100644 --- a/MPOLnchTreeViewAdapter.cpp +++ b/MPOLnchTreeViewAdapter.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpTreeViewAdapter.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchTreeViewAdapter.cpp $ // // Owner: Danielle Darling // @@ -25,19 +25,19 @@ #include "IStringListData.h" #include "ListTreeViewAdapter.h" -#include "WLBCmpNodeID.h" -#include "WLBCmpID.h" +#include "MPOLnchNodeID.h" +#include "MPOLnchID.h" /** * TreeViewAdapter. @ingroup wlistboxcomposite */ -class WLBCmpTreeViewAdapter : public ListTreeViewAdapter +class MPOLnchTreeViewAdapter : public ListTreeViewAdapter { public: - WLBCmpTreeViewAdapter(IPMUnknown* boss); + MPOLnchTreeViewAdapter(IPMUnknown* boss); - virtual ~WLBCmpTreeViewAdapter() + virtual ~MPOLnchTreeViewAdapter() {} virtual int32 GetNumListItems() const; @@ -46,15 +46,15 @@ class WLBCmpTreeViewAdapter : public ListTreeViewAdapter }; -CREATE_PMINTERFACE(WLBCmpTreeViewAdapter, kWLBCmpTVHierarchyAdapterImpl) +CREATE_PMINTERFACE(MPOLnchTreeViewAdapter, kMPOLnchTVHierarchyAdapterImpl) -WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss) +MPOLnchTreeViewAdapter::MPOLnchTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss) { //initialize the list with the default list string name K2Vector lists; for (int32 i = 0; i< 12; i++) { - PMString name(kWLBCmpItemBaseKey); + PMString name(kMPOLnchItemBaseKey); name.AppendNumber(i+1); name.Translate(); lists.push_back(name); @@ -63,23 +63,23 @@ WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapt iListData->SetStringList(lists); } -int32 WLBCmpTreeViewAdapter::GetNumListItems()const +int32 MPOLnchTreeViewAdapter::GetNumListItems()const { InterfacePtr iListData(this, IID_ISTRINGLISTDATA); return iListData->GetStringList().size(); } -NodeID_rv WLBCmpTreeViewAdapter::GetRootNode() const +NodeID_rv MPOLnchTreeViewAdapter::GetRootNode() const { PMString rootString("Root"); rootString.Translate(); - return WLBCmpNodeID::Create(rootString); + return MPOLnchNodeID::Create(rootString); } -NodeID_rv WLBCmpTreeViewAdapter::GetNthListItem(const int32& nth) const +NodeID_rv MPOLnchTreeViewAdapter::GetNthListItem(const int32& nth) const { InterfacePtr iListData(this, IID_ISTRINGLISTDATA); - return WLBCmpNodeID::Create(iListData->GetStringList()[nth]); + return MPOLnchNodeID::Create(iListData->GetStringList()[nth]); } diff --git a/MPOLnchTreeViewWidgetMgr.cpp b/MPOLnchTreeViewWidgetMgr.cpp index 511c2b5..afa3ff7 100644 --- a/MPOLnchTreeViewWidgetMgr.cpp +++ b/MPOLnchTreeViewWidgetMgr.cpp @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmpTreeViewWidgetMgr.cpp $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnchTreeViewWidgetMgr.cpp $ // // Owner: Danielle Darling // @@ -29,50 +29,50 @@ #include "ITextControlData.h" #include "CTreeViewWidgetMgr.h" -#include "WLBCmpNodeID.h" -#include "WLBCmpID.h" -#include "WLBCmpRezDefs.h" +#include "MPOLnchNodeID.h" +#include "MPOLnchID.h" +#include "MPOLnchRezDefs.h" /** * Tree view manager @ingroup wlistboxcomposite */ -class WLBCmpTVWidgetMgr : public CTreeViewWidgetMgr +class MPOLnchTVWidgetMgr : public CTreeViewWidgetMgr { public: - WLBCmpTVWidgetMgr(IPMUnknown *boss); - virtual ~WLBCmpTVWidgetMgr() + MPOLnchTVWidgetMgr(IPMUnknown *boss); + virtual ~MPOLnchTVWidgetMgr() {} virtual bool16 ApplyDataToWidget( const NodeID& node, IPanelControlData* widgetList, int32 message ) const; void RegisterStyles() { - RegisterStyleWidget(kLargePaletteRowsTreeStyle, kWLBCmpListElementRsrcID, kWLBCmpPluginID); + RegisterStyleWidget(kLargePaletteRowsTreeStyle, kMPOLnchListElementRsrcID, kMPOLnchPluginID); } }; -CREATE_PMINTERFACE(WLBCmpTVWidgetMgr, kWLBCmpTVWidgetMgrImpl) +CREATE_PMINTERFACE(MPOLnchTVWidgetMgr, kMPOLnchTVWidgetMgrImpl) -WLBCmpTVWidgetMgr::WLBCmpTVWidgetMgr(IPMUnknown *boss) : +MPOLnchTVWidgetMgr::MPOLnchTVWidgetMgr(IPMUnknown *boss) : CTreeViewWidgetMgr(boss, kList) { } -bool16 WLBCmpTVWidgetMgr::ApplyDataToWidget(const NodeID& node, +bool16 MPOLnchTVWidgetMgr::ApplyDataToWidget(const NodeID& node, IPanelControlData* widgetList, int32 message) const { do { - TreeNodePtr nodeID(node); + TreeNodePtr nodeID(node); PMString listName = nodeID->GetName(); - IControlView* nameView = widgetList->FindWidget(kWLBCmpTextWidgetID); + IControlView* nameView = widgetList->FindWidget(kMPOLnchTextWidgetID); InterfacePtr textControlData( nameView, UseDefaultIID() ); ASSERT(textControlData); diff --git a/MPOLnch_enUS.fr b/MPOLnch_enUS.fr index 7c10628..d6eec56 100644 --- a/MPOLnch_enUS.fr +++ b/MPOLnch_enUS.fr @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmp_enUS.fr $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnch_enUS.fr $ // // Owner: Adobe Developer Technologies // @@ -37,11 +37,11 @@ resource StringTable (kSDKDefStringsResourceID + index_enUS) { // ----- Menu strings - kWLBCmpCompanyKey, kWLBCmpCompanyValue, - kWLBCmpAboutMenuKey, kWLBCmpPluginName "[US]...", - kWLBCmpPluginsMenuKey, kWLBCmpPluginName "[US]", - kWLBCmpAddItemMenuItemKey, "Add item[US]", - kWLBCmpRemoveItemMenuItemKey, "Remove item[US]", + kMPOLnchCompanyKey, kMPOLnchCompanyValue, + kMPOLnchAboutMenuKey, kMPOLnchPluginName "[US]...", + kMPOLnchPluginsMenuKey, kMPOLnchPluginName "[US]", + kMPOLnchAddItemMenuItemKey, "Add item[US]", + kMPOLnchRemoveItemMenuItemKey, "Remove item[US]", kSDKDefAboutThisPlugInMenuKey, kSDKDefAboutThisPlugInMenuValue_enUS, // ----- Command strings @@ -51,34 +51,34 @@ resource StringTable (kSDKDefStringsResourceID + index_enUS) // ----- Panel/dialog strings - kWLBCmpPanelTitleKey, "WLB-Composite" "[US]",// irp was kWLBCmpPluginName "[US]", + kMPOLnchPanelTitleKey, "WLB-Composite" "[US]",// irp was kMPOLnchPluginName "[US]", // ----- Error strings // ----- Misc strings - kWLBCmpAboutBoxStringKey, kWLBCmpPluginName "[US], version " kWLBCmpVersion " by " kWLBCmpAuthor "\n\n" kSDKDefCopyrightStandardValue "\n\n" kSDKDefPartnersStandardValue_enUS, + kMPOLnchAboutBoxStringKey, kMPOLnchPluginName "[US], version " kMPOLnchVersion " by " kMPOLnchAuthor "\n\n" kSDKDefCopyrightStandardValue "\n\n" kSDKDefPartnersStandardValue_enUS, // - kWLBCmpItemBaseKey "1", " Glasgow Celtic", - kWLBCmpItemBaseKey "2", " Hibernian", - kWLBCmpItemBaseKey "3", " Glasgow Rangers", - kWLBCmpItemBaseKey "4", " Kilmarnock", + kMPOLnchItemBaseKey "1", " Glasgow Celtic", + kMPOLnchItemBaseKey "2", " Hibernian", + kMPOLnchItemBaseKey "3", " Glasgow Rangers", + kMPOLnchItemBaseKey "4", " Kilmarnock", - kWLBCmpItemBaseKey "5", " Heart of Midlothian", - kWLBCmpItemBaseKey "6", " Dunfermline Athletic", - kWLBCmpItemBaseKey "7", " Motherwell", - kWLBCmpItemBaseKey "8", " St. Johnstone", + kMPOLnchItemBaseKey "5", " Heart of Midlothian", + kMPOLnchItemBaseKey "6", " Dunfermline Athletic", + kMPOLnchItemBaseKey "7", " Motherwell", + kMPOLnchItemBaseKey "8", " St. Johnstone", - kWLBCmpItemBaseKey "9", " Dundee", - kWLBCmpItemBaseKey "10", " Aberdeen", - kWLBCmpItemBaseKey "11", " Dundee United", - kWLBCmpItemBaseKey "12", " St. Mirren", - kWLBCmpAddedElementKey, " + Added Element", + kMPOLnchItemBaseKey "9", " Dundee", + kMPOLnchItemBaseKey "10", " Aberdeen", + kMPOLnchItemBaseKey "11", " Dundee United", + kMPOLnchItemBaseKey "12", " St. Mirren", + kMPOLnchAddedElementKey, " + Added Element", } }; #endif // __ODFRC__ -// End , WLBCmp_enUS.fr +// End , MPOLnch_enUS.fr diff --git a/MPOLnch_jaJP.fr b/MPOLnch_jaJP.fr index 6bed7bf..25af5cd 100644 --- a/MPOLnch_jaJP.fr +++ b/MPOLnch_jaJP.fr @@ -1,6 +1,6 @@ //======================================================================================== // -// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/WLBCmp_jaJP.fr $ +// $File: //depot/indesign_6.0/highprofile/source/sdksamples/wlistboxcomposite/MPOLnch_jaJP.fr $ // // Owner: Adobe Developer Technologies // @@ -37,11 +37,11 @@ resource StringTable (kSDKDefStringsResourceID + index_jaJP) { // ----- Menu strings - kWLBCmpCompanyKey, kWLBCmpCompanyValue, - kWLBCmpAboutMenuKey, kWLBCmpPluginName "[JP]...", - kWLBCmpPluginsMenuKey, kWLBCmpPluginName "[JP]", - kWLBCmpAddItemMenuItemKey, "項目を追加[JP]", - kWLBCmpRemoveItemMenuItemKey, "項目を削除[JP]", + kMPOLnchCompanyKey, kMPOLnchCompanyValue, + kMPOLnchAboutMenuKey, kMPOLnchPluginName "[JP]...", + kMPOLnchPluginsMenuKey, kMPOLnchPluginName "[JP]", + kMPOLnchAddItemMenuItemKey, "項目を追加[JP]", + kMPOLnchRemoveItemMenuItemKey, "項目を削除[JP]", kSDKDefAboutThisPlugInMenuKey, kSDKDefAboutThisPlugInMenuValue_jaJP, // ----- Command strings @@ -51,34 +51,34 @@ resource StringTable (kSDKDefStringsResourceID + index_jaJP) // ----- Panel/dialog strings - kWLBCmpPanelTitleKey, kWLBCmpPluginName "[JP]", + kMPOLnchPanelTitleKey, kMPOLnchPluginName "[JP]", // ----- Error strings // ----- Misc strings - kWLBCmpAboutBoxStringKey, kWLBCmpPluginName "[JP], version " kWLBCmpVersion " by " kWLBCmpAuthor "\n\n" kSDKDefCopyrightStandardValue "\n\n" kSDKDefPartnersStandardValue_jaJP, + kMPOLnchAboutBoxStringKey, kMPOLnchPluginName "[JP], version " kMPOLnchVersion " by " kMPOLnchAuthor "\n\n" kSDKDefCopyrightStandardValue "\n\n" kSDKDefPartnersStandardValue_jaJP, // - kWLBCmpItemBaseKey "1", " Glasgow Celtic", - kWLBCmpItemBaseKey "2", " Hibernian", - kWLBCmpItemBaseKey "3", " Glasgow Rangers", - kWLBCmpItemBaseKey "4", " Kilmarnock", + kMPOLnchItemBaseKey "1", " Glasgow Celtic", + kMPOLnchItemBaseKey "2", " Hibernian", + kMPOLnchItemBaseKey "3", " Glasgow Rangers", + kMPOLnchItemBaseKey "4", " Kilmarnock", - kWLBCmpItemBaseKey "5", " Heart of Midlothian", - kWLBCmpItemBaseKey "6", " Dunfermline Athletic", - kWLBCmpItemBaseKey "7", " Motherwell", - kWLBCmpItemBaseKey "8", " St. Johnstone", + kMPOLnchItemBaseKey "5", " Heart of Midlothian", + kMPOLnchItemBaseKey "6", " Dunfermline Athletic", + kMPOLnchItemBaseKey "7", " Motherwell", + kMPOLnchItemBaseKey "8", " St. Johnstone", - kWLBCmpItemBaseKey "9", " Dundee", - kWLBCmpItemBaseKey "10", " Aberdeen", - kWLBCmpItemBaseKey "11", " Dundee United", - kWLBCmpItemBaseKey "12", " St. Mirren", - kWLBCmpAddedElementKey, " + 追加要素", + kMPOLnchItemBaseKey "9", " Dundee", + kMPOLnchItemBaseKey "10", " Aberdeen", + kMPOLnchItemBaseKey "11", " Dundee United", + kMPOLnchItemBaseKey "12", " St. Mirren", + kMPOLnchAddedElementKey, " + 追加要素", } }; #endif // __ODFRC__ -// End , WLBCmp_jaJP.fr +// End , MPOLnch_jaJP.fr diff --git a/TriggerResourceDeps.cpp b/TriggerResourceDeps.cpp index 4e90f56..dffcd44 100644 --- a/TriggerResourceDeps.cpp +++ b/TriggerResourceDeps.cpp @@ -26,7 +26,7 @@ #include "VCPlugInHeaders.h" -#include "WLBCmp.fr" +#include "MPOLnch.fr" // End, TriggerResourceDeps.cpp.