I create a new Plugin,
But occur error LNK1181: cannot open input file '..\..\..\build\win\objR\PMRuntime.lib'
Why?
I create a new Plugin,
But occur error LNK1181: cannot open input file '..\..\..\build\win\objR\PMRuntime.lib'
Why?
Hi,
I have run the InDesign CS6 sample plugin in Xcode 6.1 version. I'm getting the lexical or preprocessor issue 'Files.h' file not found.
Please help me to fix this issue.
Thanks,
Vimala L
hai all!
is it possible!?
this is my .fr:
//========================================================================================
//
// $File: $
//
// Owner: Ame
//
// $Author: $
//
// $DateTime: $
//
// $Revision: $
//
// $Change: $
//
// Copyright 1997-2008 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 "MenuDef.fh"
#include "ActionDef.fh"
#include "ActionDefs.h"
#include "AdobeMenuPositions.h"
#include "LocaleIndex.h"
#include "PMLocaleIds.h"
#include "StringTable.fh"
#include "ObjectModelTypes.fh"
#include "ShuksanID.h"
#include "ActionID.h"
#include "CommandID.h"
#include "WorkspaceID.h"
#include "WidgetID.h"
#include "BuildNumber.h"
#include "PlugInModel_UIAttributes.h"
#include "PanelList.fh"
#include "InterfaceColorDefines.h"
#include "IControlViewDefs.h"
#include "SysControlIDs.h"
#include "Widgets.fh"// for PalettePanelWidget or DialogBoss
// Project includes:
#include "pplID.h"
#include "GenericID.h"
#include "ShuksanID.h"
#include "TextID.h"
#include "IDList.fh"
#include "IDListPair.fh"
#ifdef __ODFRC__
/* Plugin version definition.
*/
resource PluginVersion (kSDKDefPluginVersionResourceID)
{
kTargetVersion,
kpplPluginID,
kSDKDefPlugInMajorVersionNumber, kSDKDefPlugInMinorVersionNumber,
kSDKDefHostMajorVersionNumber, kSDKDefHostMinorVersionNumber,
kpplCurrentMajorFormatNumber, kpplCurrentMinorFormatNumber,
{ kInDesignProduct},
{ kWildFS },
kUIPlugIn,
kpplVersion
};
/* 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 when
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)
{
kpplCompanyValue,// Company name
kpplMissingPluginURLValue,// URL
kpplMissingPluginAlertValue,// Missing plug-in alert text
};
/* Boss class definition.
*/
resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID)
{{{
/**
This boss class supports two interfaces:
IActionComponent and IPMPersist.
@ingroup palco plugin
*/
Class
{
kpplActionComponentBoss,
kInvalidClass,
{
/** Handle the actions from the menu. */
IID_IACTIONCOMPONENT, kpplActionComponentImpl,
/** Persist the state of the menu across application instantiation.
Implementation provided by the API.*/
IID_IPMPERSIST, kPMPersistImpl
}
},
/**
This boss class inherits from an API panel boss class, and
adds an interface to control a pop-up menu on the panel.
The implementation for this interface is provided by the API.
@ingroup palco plugin
*/
Class
{
kpplPanelWidgetBoss,
kPalettePanelWidgetBoss,
{
/** The plug-in's implementation of ITextControlData with an exotic IID of IID_IPANELMENUDATA.
Implementation provided by the API.
*/
IID_IPANELMENUDATA, kCPanelMenuDataImpl,
}
},
//pannello delle preferenze
Class
{
kpplUIDialogBoss,
kPrimaryResourcePanelWidgetBoss,
{
IID_IDIALOGCONTROLLER, kpplUIDialogControllerImpl,
IID_IXDOCBKUIWIDGETOBSERVER, kpplUIDialogObserverImpl,
IID_IK2SERVICEPROVIDER, kDialogPanelServiceImpl,
IID_IPANELCREATOR, kpplUIPanelCreatorImpl,
}
},
}}};
/* Implementation definition.
*/
resource FactoryList (kSDKDefFactoryListResourceID)
{
kImplementationIDSpace,
{
#include "pplFactoryList.h"
}
};
resource IDList (kSDKDefIDListPairResourceID)
{
{
// Impl ID for Preferences Selectable Dialog
kGlobalPrefsDialogServiceImpl,
},
};
resource IDListPair (kSDKDefIDListPairResourceID)
{
{
kGlobalPrefsDialogServiceImpl,// ID of Target Selectable Dialog (InDesign's)
pippo,// ID of Panel Resource to be added (Mine)
kpplPluginID// Plug-in ID that "owns" the Panel Resource to be added
},
};
/* Menu definition.
*/
resource MenuDef (kSDKDefMenuResourceID)
{
{
// The About Plug-ins sub-menu item for this plug-in.
kpplAboutActionID,// ActionID (kInvalidActionID for positional entries)
kpplAboutMenuPath,// Menu Path.
kSDKDefAlphabeticPosition,// Menu Position.
kSDKDefIsNotDynamicMenuFlag,// kSDKDefIsNotDynamicMenuFlag or kSDKDefIsDynamicMenuFlag
// Separator for the popup menu on the panel
kpplSeparator1ActionID,
kpplInternalPopupMenuNameKey kSDKDefDelimiterAndSeparatorPath,// :- to mark an item as a separator.
kpplSeparator1MenuItemPosition,
kSDKDefIsNotDynamicMenuFlag,
// About this plugin submenu for the popup menu on the panel
kpplPopupAboutThisActionID,
kpplTargetMenuPath
kpplAboutThisMenuItemPosition,
kSDKDefIsNotDynamicMenuFlag,
kpplMnuPrefActionID,// ActionID
"Main:AppleMenu:Preferences",// Menu Path.
kSDKDefAlphabeticPosition, // Menu Position.
kSDKDefIsNotDynamicMenuFlag,
}
};
resource ActionDef (kSDKDefActionResourceID)
{
{
kpplActionComponentBoss, // ClassID of boss class that implements the ActionID.
kpplAboutActionID,// ActionID.
kpplAboutMenuKey,// 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.
kpplActionComponentBoss,
kpplPopupAboutThisActionID,
kSDKDefAboutThisPlugInMenuKey,// Key to the name of this action
kOtherActionArea,
kNormalAction,
kDisableIfLowMem,
kInvalidInterfaceID,
kSDKDefInvisibleInKBSCEditorFlag,
kpplActionComponentBoss,
kpplMnuPrefActionID,// ActionID.
"Palco...",// Sub-menu string.
kEditMenuPreferencesActionArea,// Area name (see ActionDefs.h).
kNormalAction,// Type of action (see ActionDefs.h).
kDisableIfLowMem,// Enabling type (see ActionDefs.h).
kInvalidInterfaceID,// Selection InterfaceID
kSDKDefInvisibleInKBSCEditorFlag,
}
};
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:
kpplInternalPopupMenuNameKey,kpplInternalPopupMenuNameKey,// No need to translate, internal menu name.
}
};
/*
resource LocaleIndex (pippo)
{
kViewRsrcType,
{
kWildFS, k_Wild, pippo + index_enUS
}
};
*/
resource LocaleIndex (kSDKDefPanelResourceID)
{
kViewRsrcType,
{
kWildFS, k_Wild, kSDKDefPanelResourceID + index_enUS
}
};
/* Type definition.
*/
type pplPanelWidget(kViewRsrcType) : PalettePanelWidget(ClassID = kpplPanelWidgetBoss)
{
CPanelMenuData;
};
type pplUIPanelWidget (kViewRsrcType) : PrimaryResourcePanelWidget (ClassID = kpplUIDialogBoss) { };
resource PanelList (kSDKDefPanelResourceID)
{
{
// 1st panel in the list
kSDKDefPanelResourceID,// Resource ID for this panel (use SDK default rsrc ID)
kpplPluginID,// ID of plug-in that owns this panel
kIsResizable,
kpplPanelWidgetActionID,// Action ID to show/hide the panel
kpplPanelTitleKey,// 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
c_Panel
}
};
resource PanelList (pippo)
{
{
// 2st panel in the list
pippo,// Resource ID for this panel (use SDK default rsrc ID)
kpplPluginID,// ID of plug-in that owns this panel
kIsResizable,
kpplPanelWidgetActionID,// Action ID to show/hide the panel
kpplPanelTitleKey,// 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
c_Panel
}
};
resource pplPanelWidget(kSDKDefPanelResourceID + index_enUS)
{
__FILE__, __LINE__,// Localization macro
kpplPanelWidgetID,// WidgetID
kPMRsrcID_None,// RsrcID
kBindNone,// Binding (0=none)
0, 0, 207, 32,// Frame: left, top, right, bottom.
kTrue, kTrue,// Visible, Enabled
kFalse,// Erase background
kInterfacePaletteFill,// Erase to color
kFalse,// Draw dropshadow
kpplPanelTitleKey,// Panel name
{
StaticTextWidget
(
0,// WidgetId (default=0)
kSysStaticTextPMRsrcId,// RsrcId
kBindNone,// Frame binding
5, 10, 202, 27,// Frame: left, top, right, bottom.
kTrue, kTrue,// Visible, Enabled
kAlignLeft, kEllipsizeEnd, kTrue// Alignment, ellipsize style, convert ampersands
kpplStaticTextKey,// Initial text.
0// No associated widget
),
}
kpplInternalPopupMenuNameKey// Popup menu name (internal)
};
resource pplUIPanelWidget (pippo + index_enUS)
{
__FILE__, __LINE__,
kpplUIPanelWidgetID,// WidgetId
kPMRsrcID_None,// RsrcId
kBindNone,
// Frame: left, top, right, bottom
Frame(0,0,420,400),
kTrue,// Visible
kTrue,// Enabled
"super Palco",// Panel name
{
StaticTextWidget
(
0,// WidgetId (default=0)
kSysStaticTextPMRsrcId,// RsrcId
kBindNone,// Frame binding
5, 10, 202, 27,// Frame: left, top, right, bottom.
kTrue, kTrue,// Visible, Enabled
kAlignLeft, kEllipsizeEnd, kTrue// Alignment, ellipsize style, convert ampersands
"prova prova prova",// Initial text.
0// No associated widget
),
}
};
#endif // __ODFRC__
#include "ppl_enUS.fr"
#include "ppl_jaJP.fr"
I want put one of this 2 panels in to the global
preferences dialog... and one is the normal panel of UI plugin where is my problem?
any suggestion?
thanks!
Hi, I'm a newbie in Indesign SDK (CPP), and I have one problem in my code: I can't add two widgets on panel (StaticTextWidget), this following code is my problem:
resource BscPnlPanelWidget(kSDKDefPanelResourceID + index_enUS)
{
__FILE__, __LINE__, // Localization macro
kBscPnlPanelWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding (0=none)
0, 0, 207, 295, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kFalse, // Erase background
kInterfacePaletteFill, // Erase to color
kFalse, // Draw dropshadow
kBscPnlPanelTitleKey, // Panel name
{
StaticTextWidget
(
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
5, 10, 202, 27, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd, kTrue, // Alignment, ellipsize style, convert ampersands
"Add tool", // Initial text.
0 // No associated widget
),
StaticTextWidget
(
10, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
5, 80, 202, 27, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd, kTrue, // Alignment, ellipsize style, convert ampersands
"Properties", // Initial text.
0 // No associated widget
),
}
kBscPnlInternalPopupMenuNameKey // Popup menu name (internal)
};
How I can show all these widgets ?
Thanks
Hi,
We are developing a new plug-in in Indesign as based on treeview. we have completed the design part, but we have some doubts in coding..
One dialog widget and three panels(General, fitting, Eventsandscripts).
The .fr file:
resource GeneralPanelWidget (kGeneralPanelResourceID)
{
__FILE__, __LINE__,
kGeneralPanelWidgetID, // WidgetId
kPMRsrcID_None, // RsrcId
kBindNone, // Frame binding
Frame(0,0,800,500) // Frame
kTrue, // Visible
kTrue, // Enabled
kGeneralPanelTitleKey, // Panel name
{
StaticTextWidget
(
kInvalidWidgetID, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 15, 138, 35, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
ksamPrefProjectPathStringKey, // Initial text.
ksamPrefProjectPathTextEditBoxWidgetID // No associated widget
),
// TextEditBox Widget resource
TextEditBoxWidget
(
ksamPrefProjectPathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame(140, 15, 420, 35), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
),
ButtonWidget
(
ksamChooseProjectButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 15, 500, 35,
kTrue, kTrue,
ksamChooseBtnStringKey,
),
StaticTextWidget
(
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 45, 138, 65, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
ksamPrefImagePathStringKey, // Initial text.
ksamPrefImagePathTextEditBoxWidgetID // No associated widget
),
// TextEditBox Widget resource
TextEditBoxWidget
(
ksamPrefImagePathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame binding
Frame(140, 45, 420, 65), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
),
ButtonWidget
(
ksamChooseImgpathButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 45, 500, 65,
kTrue, kTrue,
ksamChooseBtnStringKey,
),
StaticTextWidget
(
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
10, 75, 138, 95, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd,kTrue, // Alignment, ellipsize style
ksamPrefMasterTempPathStringKey, // Initial text.
ksamPrefMasterTemplatePathTextEditBoxWidgetID // No associated widget
),
// TextEditBox Widget resource
TextEditBoxWidget
(
ksamPrefMasterTemplatePathTextEditBoxWidgetID, // WidgetId
kSysEditBoxPMRsrcId, // RsrcId
kBindNone, // Frame 85
Frame(140, 75, 420, 95), // Frame (l,t,r,b)
kTrue, kTrue // Visible, Enabled
0, // Widget id of nudge button (0 so we dont get one)
0, 0,// small,large nudge amount
0, // max num chars(0 = no limit)
kFalse,// is read only
kFalse,// should notify each key stroke
kFalse,// range checking enabled
kFalse,// blank entry allowed
0, // Upper bounds
0, // Lower bounds
"", // Initial text
),
ButtonWidget
(
ksamChooseMasterTempButtonWidgetID,
kSysButtonPMRsrcId,
kBindNone,
430, 75, 500, 95,
kTrue, kTrue,
ksamChooseBtnStringKey,
),
CheckBoxWidget
(
ksamShowFrameLabelCheckBoxWidgetID, // WidgetId
kSysCheckBoxPMRsrcId, // RsrcId
kBindNone,
Frame( 10, 165, 320, 185) // left, top, right, bottom
kTrue, // Visible
kTrue, // Enabled
kAlignLeft, // Alignment
ksamShowFrameLabelChkBoxTextKey // Initial text
),
DefaultButtonWidget
(
kOKButtonWidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
320, 380, 390, 400, // Frame (l,t,r,b)
kTrue, kTrue, // Visible, Enabled
ksamPrefSaveStringKey, // Button text
),
CancelButtonWidget
(
kCancelButton_WidgetID, // WidgetID
kSysButtonPMRsrcId, // RsrcID
kBindNone, // Binding
400, 380, 470, 400, // Frame (l,t,r,b)
kTrue, kTrue, // Visible, Enabled
ksamPrefCancelStringKey, // Button name
kTrue, // Change to Reset on option-click.
),
}
}
This is for General panel design and we have written the code for this..but we dont know where to call this functions. we implemented this plug-in based on BasicSelectableDialog sample plug-in. please guide me to complete this code.
Thanks in Advance..
Hi everyone,
I'm really disappointment with adobe tech support team
waste day-long for chating & calling but they don't know where can download InDesign CC SDK for plug-in development.
many support staff of adobe can't determine the difference between InDesign CC product & InDesign CC SDK and InDesign CS & InDesign CC when send me the link to download is CS version.
also my account(calvin.nguyen@niteco.se) is partner Development and paid money for adobe but can't login to this forum but can login by free-account(trung,vu@niteco.se).
According to the InDesign Developer Center | Adobe Developer Connection then CC SDK is moved to https://prerelease.adobe.com/
to download CC SDK I have to register information and wait 2 days, but I registered over 2day and now I can't access to https://prerelease.adobe.com/ at section "InDesign SDK Access Program"
for CC SDK download.
when I bing all this information to ask Tech support team then they don't known about this process !!!! disappointment!
So anyone can let me known where can download InDesign CC SDK??
anyone on the forum, if keeping InDesign CC SDK pls give me a copy, thanks so much
Thanks
Hi All,
I have a text frame and and i have an anchor object attached to it. Now i just select the text frame and get the UID of the text frame. Now i would like to get the Anchor object ineterface pointer with attached to the Text Frame.How to get it?
Thanks
Sakthivel.P
I am trying to iterate through all paragraphs in a story. Is this the correct way?
When I try this it crashes. Does anyone know how to get an IStrand pointer on kParaAttrStrandBoss?
UIDRef myStoryUID = storyList->GetNthTextModelUID(i);
InterfacePtr<ITextModel> textModel(myStoryUID, UseDefaultIID());
InterfacePtr<IStrand> strand(textModel,IID_IPARAGRAPHSTRAND );
After working on QuarkXPress for a while, I've moved back to CS5 development. However I've hit a problem without having to write a line of code. It seems to have started since I moved to a new development system and I have no decent explanation for it.
I'm using Dollyxs to create the framework for a model plug-in. The framework is generated with no apparent errors. Yet when I try to build the resulting VS2008 project, I hit an error with the ODFRC compiler.
1>------ Build started: Project: MyServicesTest, Configuration: Debug Win32 ------
1>Performing Custom Build Step
1>ODFRC deleting old resources...
1>Could Not Find d:\Development\Adobe\Test\output\objD\MyServicesTest\*.idrc
1># Error: Trying to handle more than one .fr file:
1>File: d:\Development\Adobe\Test\sources\MST.fr
1>File: RA~1\Intel\DMIX;C:\PROGRA~1\NTRUCR~1\NTRUTC~1\bin\;C$
1>File:
1>File:
1>File: B4-
1>File:
1>File: "
1>File:
1>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
1>Build log was saved at "file://d:\Development\Adobe\Test\output\objD\MyServicesTest\BuildLog.htm"
1>MyServicesTest - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The error looks like it is related to the path. My first thought is that the ODFRC compiler has a limit on the length as the last proper character is a "$" at the end of the 2nd File line. I changed the path to use 8.3 names. The same error occurs, although the content of the file lines change.
Stupid things is that the SDK samples build under the same environment!
I've tried using different paths, putting the project within the SDK, putting it outside. I've diffed the files (i.e. rsp and vsprops). All to no avail.
Has anyone seen anything like this and know what the solution is? Thanks in advance.
Hi all,
I'm trying to compile my plugin for CS5 that contains a Model and an UI. I can compile UI Plugin fine, but for Model plugin, I get an error that says" Error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
I searched the archive/web... can't figure out what is wrong/missing in my Project. The same project is compiled on other machine without any issue.
I verify the executable files &path(bin directory of SDK).... Also I can compile any SDK sample project fine too.
Any idea/thoughts what could be wrong/missing in my project?
Thanks in advance,
Kamran
Hello people.
This is a general question about how best to write some code.
In my many projects I have lots of examples of this kind of code:
PMString *d, Data("SomeString of decent length");
d = Data.Substring(0, 12);
PMString newString = *d;
delete d;
This code could be simplified to something like this:
PMString newString, Data("SomeString of decent length");
newString = *Data.Substring(0, 12);
but writing it this way leads to memory leaks (usually a good many of them).
Of course, one could simply use d as a pointer in the code, but one still needs to remember to delete the data after the program is finished with it.
Is there a more elegant way to deal with the return value of PMString::Substring in the InDesign SDK?
TIA!
John
I'm using a texteditbox on a panel to take input from the user. I want to process the contents of the input box when the enter key is pressed in the edit box. I'm wondering as to how I would be able to detect the enter key being pressed? Any pointers would be appreciated. Thanks in advance.
Hi Everyone,
I have a Flex panel, in InDesign, from which I drag an URL. If I drop this URL on a text editor or a web browser, it works. But when I try to drop it on my InDesign document, it's a little bit harder.
I have implemented a subclass of CDragDropTargetFlavorHelper. The drop works perfectly on Windows. But on mac, I have problems in the method CouldAcceptTypes :
DragDrop::TargetResponse
AutocatDNDCustomFlavorHelper::CouldAcceptTypes(constIDragDropTarget* target, DataObjectIterator* dataIter, constIDragDropSource* fromSource, constIDragDropController* controller) const
{
if (0 != dataIter && 0 != target)
{
DataExchangeResponse response = dataIter->FlavorExistsWithPriorityInAllObjects(kURLDExternalFlavor);
if (response.CanDo())
{
}
}
}
The problem is that response.canDo() answers kTrue on Windows, but kFalse on Mac. I tried to explore the content of dataIter, but a call on dataIter->First() returns nil. I tried a controller->GetItemCount(), which returns 1. But if I try a controller->GetDragItem(1), I get a nil pointer. I have the impress there is no item. Though, the drop works on another app than InDesign, as I said.
Is it a problem of internalization ? Or something else ? It let me dry.
Thanks in advance
Hello,
A sort of repost of a previous question.
What is the best way to communicate with a C++ plugin from ActionScript. The plugin has exposed its functionality to javascript.
Ideally we would like to be able to have a two way communication.
A pointer to any resources or better still a sample, would be really appreciated.
P.
Hello,
We have a dialog box that has a very big menu. I would like to have a smaller menu when a check box on the dialog is checked.
I haven't tried this yet, just wanted to run it by you guys to see if there is a better way.
Would this work. When the check box is checked we detach the current widget and attach a new widget with the bigger or smaller menu?
All the best.
P.