(window/cs6)How to create multiple panel
How to clear the clipboard after copy/cut paste operation is done ?
I want to clear the clipboard after the first paste operation so that consecutive paste could not be done after one copy/cut.
Is there a way in Indesign SDK we can achieve this?
If not for the text from windows clipboard, atleast there should be a way to clear Indesign objects from the clipboard.(The one copied from Indesign document)
Changing MasterPage for existing pages
Hi,
I like to change to MasterPage for existing pages in an document, I found the IMasterSpreadUtils and OverrideMasterPageItem, but it didn't work here. Unfortunately I found no example in the SDK, does somebody have an example for me?
Or is there another (and better) way to change the MasterPage?
Thanks
Klaus
How to convert UID to C++ String
1.
UID PreviousUID;
std::string sUID = (std::string)PreviousUID;
produces error: C2440: 'type cast' : cannot convert from 'UID' to 'std::string'
2. Also looked into going through PMString but nothing looked very promising.
Environment: Windows
This seems like something that should be very easy. Anybody know how to do this?
Get UID of Paragraph Style that is edited in Paragraph Style Options dialog
Help! Missing "YTD Channels Model.sdk.InDesign Plug In"
Some existing InDesign files have this message showing up. What should I do? Can I delete this somehow? Or, does anyone know where I could get this missing Plug In? I'm not familiar with what this does, or where it came from. Thanks for your help. Deborah
How to change the back color of a static widget?
Hi All,
Could you please let me know how to chage the back color of a static text widget? Thanks in advance.
Regards,
John
#error DEBUG and NDEBUG are out of sync!
I am getting this error when compiling BasicDialog sample for CS5 Mac any clues what might be wrong ? thanks...
SplitterPanelWidget intialization
Hi,
while intilaizing the "SplitterPanelWidget" in .fr file, the bottom panel is not visible.
It seems that the top panel is always taking the whole available space of the main panel.
I think the problem is with initializing this spiltter widget. Also i am not getting the meaning of the fields explained widgets.fh file.
Can anyone please let me know what I am going worng?
resource MTSConsolePanelWidget(kSDKDefPanelResourceID + index_enUS)
{
// ResourceSrcFileInfo
__FILE__, __LINE__, // Localization macro
//ErasablePanelView
kMTSConsolePanelWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Frame Binding
Frame(0, 0, 260, 275), // Frame(left, top, right, bottom)
kTrue, kTrue, // Visible, Enabled
kTrue, // Erase background
kInterfacePaletteFill, // Erase to color
//CTextControlData
kMTSConsolePanelTitleKey, // Panel name
//CPanelControlData
{
SplitterPanelWidget
(
// CControlView
kMTSConsoleSplitterPanelWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindAll, // Frame Binding
Frame(0, 0, 258, 275), // Frame(left, top, right, bottom)
kTrue, kTrue, // Visible, Enabled
"",
// CSplitterPanelControlData
0, // Top widget 0 or 1
kTrue, // Top Visible
kFalse, // Bottom Visible
190, // Splitter Current Position
75, // Splitter Init Position
130, // Top Snap less then this snap up
kFalse, // Should Snap up? If true slider snaps up, else slider doesn't move beyond snap pos
85, // Frame Width - Bottom Snap more then this snap down
kFalse, // Should Snap down?
kFalse, // Splitter Direction kFalse == Horizontal kTrue == Vertical
5, // Splitter Radius
kMTSConsoleTVColumnHeaderRowWidgetID, // Resize splitter proportional
kSingleClickDoNothing, // Single Click splitter Actions
kDrawXORSplitter,
// CPanelControlData
{
GenericPanelWidget
(
kMTSConsoleTreeOuterPanelWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Frame binding
Frame(0, 0, 260, 190) // Frame
kTrue, kTrue, // Visible, Enabled (initially visible, default view)
"" // Panel name
{
MTSConsoleTVColumnHeaderWidget
(
kMTSConsoleTVColumnHeaderRowWidgetID, // WidgetId
kPMRsrcID_None, // RsrcId
kBindNone, // Frame binding
Frame(0, 0, 260, 18), // Frame(left, top, right, bottom)
kTrue, kTrue, // Visible, Enabled (initially visible, default view)
"", // Panel name
{
}
kDontAutoResize,
16
),
SeparatorWidget
(
kInvalidWidgetID, // WidgetId
0,0, // RsrcId
kBindLeft|kBindRight, // Frame binding
Frame(0, 18, 260, 20), // Frame(left, top, right, bottom)
kTrue, // Visible
kTrue, // Enabled
)
}
),
GenericPanelWidget
(
kMTSConsoleInfoOuterPanelWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Frame binding
Frame(0, 200, 270, 275) // Frame
kTrue, kTrue, // Visible, Enabled (initially visible, default view)
"" // Panel name
{
// Add Custom style icon button
RollOverIconButtonWidget
(
kAddCustomStyleWidgetID, // Widget ID
kAddStylePNGIconRsrcID, // Icon, plugin ID
kMTSPluginID, // Plugin ID
kBindNone, // Frame binding
Frame(15, 215, 31, 231) // Frame(left, top, right, bottom)
kTrue, kTrue, // Visible, Enabled
kADBEIconSuiteButtonType,
)
}
)
}
)
}
//"" // Popup menu name (internal)
};
plugin scripting support
Using CS5.5 debug
I have a "root" scripable object:
Object
{
kAxioModelObjectScriptElement, // object's script element ID
c_AxioModelEngine, // script PropID
"axiocat engine", // name
"access axiocat data model engine", // description
kCPrefs_CLSID, // Windows CLSID
NoCollectionInfo, // CollectionElementType (scriptID, name, descr, CLSID)
kPreferencesObjectScriptElement,
kPreferencesSuiteScriptElement,
}
.......
Method
{
kAxioModelObjectFindScriptElement,
e_AxioModelFind,
"get axiocat object",
"returns axiocat object",
ObjectType( kAxioUIObjectScriptElement ),
"axiocat object or null if not found"
{
p_AxioModelId, "key", "object id to find", StringType, kRequired,
}
}
Method getAxiocatObject(key) returns another object with next FR definition:
Class
{
kAxioUIObjectScriptBoss,
kBaseProxyScriptObjectBoss,
{
IID_ISCRIPT, kAxioUIObjectScriptImpl,
IID_ISCRIPTOBJECTKEY, kAxioUIObjectKeyScriptImpl,
}
},
Class
{
kAxioUIObjectScriptProviderBoss,
kBaseScriptProviderBoss,
{
IID_ISCRIPTPROVIDER, kAxioUIObjectScriptProviderImpl,
}
},
Object
{
kAxioUIObjectScriptElement, // object's script element ID
c_AxioUIObjectClass, // script PropID
"axiocat object", // name
"axiocat data model object", // description
kAxioUIObject_CLSID, // Windows CLSID
NoCollectionInfo, // CollectionElementType (scriptID, name, descr, CLSID)
kNonIDBasedObjectScriptElement, // base object element ID
kAxioModelObjectSuiteScriptElement, // suite element ID
}
.....
Provider
{
kAxioUIObjectScriptProviderBoss,
{
Parent{ kAxioModelObjectScriptElement },
RepresentObject { kAxioUIObjectScriptElement },
Property { kAxioUIObjectIdScriptElement, kReadOnly },
}
}
Question: when I call in script getAxiocatObject(key), ID produce ASSERT:
"HandleMethod request for method 'getAxiocatObject' on object 'axiocat engine' returned value for method 'xxxx'".
But object returned from this method is correct, and I see all object properties successfully.
What this ASSERT mean?
kAxioUIObjectScriptProviderBoss implementation, where I have doubt:
AxioUIObjectScriptProvider::::GetNumObjects( const IScriptRequestData* data, IScript* parent )
{
return 0;
}
AxioUIObjectScriptProvider::AppendNthObject( const IScriptRequestData* data, IScript* parent, int32 n, ScriptList& objectList )
{
return kSuccess;
}
InDesign 5.5 Debug Version : where to download?
How can I get a indesign CS5.5 debug version?
I would like to download a InDesign CS5.5 Debug version software (Windows only).
But I can't find/see it on Solution Partner site, even with my Adobe ID login.
Anyone could help me to get a download link? (eval version)
Thanks
Regards
Conversion Indesign (.indd) to pdf file
Is this possible to convert an indesign(.indd) to pdf file
If it is please let me how can i achive this..
please help me out.
How to know the source document for pasted page items
Hi,
I want to perform some actions on items before they are pasted (look at persistent data stored on the, if a conflict ask the user and either update or reject).
Believe I'm OK with the paste (document observer, in kBeforeDoMessageBoss where the change is kPasteCmdBoss, set global error code to kCancel to prevent the drop)
But... I can't think of any way to find the source document since the paste is from the scrap db. I've tried kCopyCmdBoss in the observer but that isn't hit (maybe I need to observe the scrap?).
Hope someone can help.
TIA Ian
Getting Linker errors while porting InDesign CC plugin code to InDesign CC 2014
Hello,
I am getting following linker errors during porting of plugin code from InDesign CC to InDesign CC 2014
> PlugInStatics.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'posix_category''(void)" (??__Eposix_category@system@boost@@YAXXZ)
> PlugInStatics.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@boost@@YAXXZ)
I am using following environment :
OS : Windows 7 SP1 (64bit)
Visual Studio : VS 2013 with platform tool set = Visual Studio 2010 (v100)
InDesign SDK : InDesign CC 2014 plugin SDK (070)
Boost Libraries : 1.55
I have added external boost library paths in visual studio -> Linker properties -> Additional Library paths, still above linker errors persists, can someone help ?
Thanks,
-Harsh.
How to create custom TextEditBoxWidget with icon
Where can download Indesign CC SDK
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
Persistent Data is lost while copying
Hi
I have implement a text attribute. It remains persistent within the document but while copying it, the data is lost. Can't figure out why ?
Bullets and Numbering "Text After" attribute
file uploading to a server not working..idlk doesn't get deleted ?
Here I am facing a strange problem.
I open a document doc1.indd,work on it.Save it and close it and then i transfer it to some remote server location..
The indesign is crashing.(The .net exception I am getting is system.io.inputoutputexception)
Now while investigating the issue,I copied the file to some other directory location and then transferred it.It is working fine.
Now I am totally puzzled over this behaviour.
Am I doing anything wrong here?
Also one more thing I obsvered is, the the lock file ,idlk doesn't get deleted even after I close the document programatticaly and probably that might be creating this crashing problem.
So how to get rid of this lock file after closing the indd programatically?
Thanks and Regards,
Yogpangjo
[CS5.5] Save : No destination file supplied/Readonly
Hi everybody,
I'm meeting problems with a document save operation. In 99% of the time, my save is working. In the 1% left, I got an assert/error.
What I did is :
- Open the file :
InterfacePtr<ICommand> iOpenFileCmd (Utils<IDocumentCommands>()->CreateOpenCommand(file,
kSuppressUI,
IOpenFileCmdData::kOpenDefault, // tried kOpenOriginal too
IOpenFileCmdData::kUseLockFile, // tried kNotUseLockFile too
false, // tried true too
IDocument::kFullUndoSupport));
- Make a minor operation (for example, create a frame, or whatever).
- Save the file (1st way):
Utils<IDocumentCommands>()->Save(docToSave, kSuppressUI);
I got this assert : SUserFile::SetUserFileMode() Cannot switch mode when original opened read-only
- Save the file (2nd way):
Something is telling me I opened the document in a readonly mode, but I can't see how I did it !
Do you know how to resolve such a situation ?
Thanks