Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all 78596 articles
Browse latest View live

error LNK1181: cannot open input file '..\..\..\build\win\objR\PMRuntime.lib'

$
0
0

I create a new Plugin,

But occur error LNK1181: cannot open input file '..\..\..\build\win\objR\PMRuntime.lib'

Why?


Lexical or Preprocessor issue 'Files.h' file not found

$
0
0

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

How Can I Set kTextAttrPairKernMethodBoss?

$
0
0
In Advance, Thanks!!
How can I set kTextAttrPairKernMethodBoss ?

InterfacePtr<ITextAttrClassID> iTextAttrOpticalPairKerning(::CreateObject2<ITextAttrClassID>(kTextAttrPairKernMethodBoss ));
if(iTextAttrOpticalPairKerning)
{
.... ?
}

I want to set "Optical" setting in kTextAttrPairKernMethodBoss Class.
How can I do?

multiple panels in a single .fr

$
0
0

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!

More than one widget

$
0
0

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

How to write the code for a panel when using treeview?

$
0
0

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..

Where can download Indesign CC SDK

$
0
0

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

How to Oracle database form Xcode on Mac OS

$
0
0
Hi All,

Can you guys tell me how do we connect Oracle database from Xcode. which API has to be used.

I'm developing a InDesing CS3 plug-in on Mac. Plug-in functionality is: connect the Oracle database, fetch the record and put them into a text frame on the document.

Please help me.

Thanks in advance

Johirul

How can I get the key event when some files are dragged and dropped on document in MyListBox?

$
0
0
How can I get the key event when some files are dragged and dropped on document in MyListBox? <br /><br />In my case, some files are dragged and dropped with "Pressed Shift Key" on document in MyListBox. <br />So I want to catch Shift Key event as some files are dropped. <br /><br />bool16 CMainListBoxDragDropSource::WillDrag(IEvent* event) const <br />{ <br />IDFile contentFile; <br />return this->GetContentFile(contentFile, NULL ); <br />} <br /><br />bool16 CMainListBoxDragDropSource::DoAddDragContent( IDragDropController* controller) <br />{ <br />return this->DoAddSysFileDragContent(controller); <br />} <br /><br />bool16 CMainListBoxDragDropSource::GetContentFile( IDFile& contentFile, PYOSOINFO pCopyYosoInfo ) const <br />{ <br />bool16 result = kFalse; <br /><br />InterfacePtr<IControlView> iControlView( this, UseDefaultIID() ); <br />if( !iControlView ) return kFalse; <br />WidgetID idWidget = iControlView->GetWidgetID(); <br /><br />.......... <br />} <br /><br />bool16 CMainListBoxDragDropSource::DoAddSysFileDragContent( IDragDropController* controller) <br />{ <br />bool16 result = kFalse; <br /><br />IDFile contentFile; <br />.......... <br />} <br /><br />ErrorCode CMainDDCustomFlavorHelper::ProcessDragDropCommand(IDragDropTarget* target, IDragDropController* controller, DragDrop::eCommandType action ) <br />{ <br />ErrorCode stat = kFailure; <br /><br />if( action != DragDrop::kDropCommand ) return kFailure; <br /><br />InterfacePtr<IControlView> layoutView(target, UseDefaultIID()); <br />if( !layoutView )return kFailure; <br /><br />InterfacePtr<ILayoutControlData> layoutData(target, UseDefaultIID()); <br />if( !layoutData ) return kFailure; <br /><br />InterfacePtr<ILayoutControlViewHelper> layoutControlViewHelper( layoutData, UseDefaultIID()); <br />if( !layoutControlViewHelper ) return kFailure; <br /><br />GSysPoint where = controller->GetDragMouseLocation(); <br />PMPoint currentPoint = Utils<ILayoutUIUtils>()->GlobalToPasteboard(layoutView, where); <br /><br />InterfacePtr<ISpread> targetSpread(Utils<IPasteboardUtils>()->QuerySpread(layoutView, currentPoint)); <br />if( !targetSpread ) return kFailure; <br /><br />............... <br /><br />InterfacePtr<IApplication>application (gSession->QueryApplication ()); <br />if ( !application ) return kFailure; <br /><br />InterfacePtr<IKeyBoard> keyBoard( application, IID_IKEYBOARD ) ; <br /><br />IEventHandler* pHandler = keyBoard->GetKeyFocus() ; <br />if( pHandler ) <br />{ <br />.......... <br />} <br /><br />........ <br /><br />} <br /><br />in MyProject.Fr file <br />Class <br />{ <br />kYJListBoxWidgetBoss, kWidgetListBoxWidgetNewBoss, <br />{ <br />IID_ISYSFILEDATA, kSysFileDataImpl, IID_ISYSFILELISTDATA, kSysFileListDataImpl, <br />IID_IYOSOCSDATA, kCYosoCSDataPersistImpl, <br />        IID_ILAYOUTTARGET, kLayoutTargetImpl, <br />IID_IOBSERVER, kMainListBoxObserverImpl, <br />        IID_IDRAGDROPSOURCE, kMainListBoxDragDropSourceImpl, <br />        IID_IEVENTHANDLER, kMainListBoxDragDropSourceImpl, <br />} <br />}, <br />}

Can't build with CodeWarrior

$
0
0
I have a fresh CW 9.5 install on my OS X 10.4.11 machine. I also have Xcode 2.4.1 installed.

I'm trying to build the BuildDialog sample project. I've followed the instructions on page 119 of the Porting Guide, by modifying ansi_prefix.mach.h.

I can build the MSL MacHeadersMach-O target in MacHeadersMach-O.mcp, but I cannot build the BSD MacHeadersMach-O target. I get this error: (trimmed so you don't see all of them...)

Error : identifier expected
(included from:
CoreFoundation/CoreFoundation.h:81
CarbonCore/CarbonCore.h:20
CoreServices/CoreServices.h:21
Carbon.h:20
PreHeaders.cp:119
PreHeaders.pch:31)
CFCalendar.h line 96 };

Error : the file 'PreHeadersPPCDbg' cannot be opened
PluginHeaders.pch line 26 #include "PreHeadersPPCDbg"

Error : preprocessor #error directive
(included from:
cstdio:14
mslconfig:387
PluginHeaders.pch:28)
stdio.h line 14 #error You must have the non-MSL C header file access path before the MSL access path

So I plunge blindly ahead, not at all sure if I even need the BSD part built and try and run BuildLibraries.mcp. This eventually gives this error:

Error : type cannot be made into a global register variable;
only scalers, doubles, floats and vectors are supported
(included from:
math.h:26
CoreFoundation/CoreFoundation.h:19
CarbonCore/CarbonCore.h:20
CoreServices/CoreServices.h:21
Carbon/Carbon.h:20
MacHeadersMach-O.c:48
MacHeadersMach-O.pch:21)
math.h line 647 extern double scalb ( double, double ) __asm("_scalb$UNIX2003" );

Still hoping, but not really, I move onto BasicDialog.mcp

Error : illegal data in precompiled header (PluginHeadersPPCDbg)
PluginPrefix.h line 37 #include "PluginHeadersPPCDbg"

I guess some of those steps that failed, well, they must have been important!

Any help is appreciated. Thanks.

How to iterate over a set of files into a folder?

$
0
0
How can I get access to IDirectoryUtility and to use ForEachFileInFolder()?
I didn't find any examples and descriptions into the SDK helps.

How to get Anchor object pointer

$
0
0

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

Getting IStrand interface on kParaAttrStrandBoss

$
0
0

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 );     

Dollyxs - are there any limitations?

$
0
0

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.

CS5:Windows:Question about Visual Studio 2008 error...

$
0
0

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


PMString::substring

$
0
0

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

How to detect when the enter key is pressed

$
0
0

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.

Drop an URL on a InDesign document from a Flex panel

$
0
0

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

Communication between C++ plugin / ActionScript

$
0
0

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.

swapping menus on a dialog

$
0
0

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.

Viewing all 78596 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>