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

Build error on using environment variable for CS5 on Mac

$
0
0

I have created a sample project using dollyx on Mac for CS5 . I have used an environment variable and defined it in Source tree of XCode preferences.

I am using snow leapard  and my XCode version is 3.2.2 .

 

I have defined variable as IDSDK7  for /idsdk7 (which is my SDK directory). I am creating project outside SDK . While creating project with DollyX  , I am giving  SDK's path as $(IDSDK7) which is absolute path and not relative with respect to the project .

I am getting many build errors  -----

 

 

/idsdk7/external/afl/includes/AErrors.h:31:0 /idsdk7/external/afl/includes/AErrors.h:31:19: error: Files.h: No such file or directory

 

 

/idsdk7/source/public/includes/K2Debugging.h:53:0 /idsdk7/source/public/includes/K2Debugging.h:53:3: error: #error DEBUG and NDEBUG are out of sync!

 

 

/idsdk7/source/public/includes/UnicodeSavvyString.h:35:0 /idsdk7/source/public/includes/UnicodeSavvyString.h:35:26: error: adobe/move.hpp: No such file or directory

 

 

/idsdk7/source/public/includes/PMString.h:34:0 /idsdk7/source/public/includes/PMString.h:34:30: error: adobe/typeinfo.hpp: No such file or directory

 

 

/idsdk7/source/public/includes/UnicodeSavvyString.h:211:0 /idsdk7/source/public/includes/UnicodeSavvyString.h:211: error: expected `)' before '<' token

 

 

/idsdk7/source/public/includes/PMString.h:120:0 /idsdk7/source/public/includes/PMString.h:120: error: expected `)' before '<' token

 

 

/idsdk7/source/public/includes/PMString.h:1196:0 /idsdk7/source/public/includes/PMString.h:1196: error: expected constructor, destructor, or type conversion before '(' token

 

 

/idsdk7/source/public/includes/WideString.h:322:0 /idsdk7/source/public/includes/WideString.h:322: error: expected `)' before '<' token

 

 

/idsdk7/source/public/includes/WideString.h:751:0 /idsdk7/source/public/includes/WideString.h:751: error: expected constructor, destructor, or type conversion before '(' token

 

 

/idsdk7/source/public/includes/IDFile.h:385:0 /idsdk7/source/public/includes/IDFile.h:385: error: expected constructor, destructor, or type conversion before '(' token

 

 

/idsdk7/source/public/interfaces/architecture/IDataBase.h:488:0 /idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::mainFile'

 

 

/idsdk7/source/public/interfaces/architecture/IDataBase.h:488:0 /idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::miniSaveFile'

 

 

/idsdk7/source/public/interfaces/architecture/IDataBase.h:779:0 /idsdk7/source/public/interfaces/architecture/IDataBase.h:779: error: expected constructor, destructor, or type conversion before '(' token

 

 

/idsdk7/source/public/includes/InterfacePtr.h:506:0 /idsdk7/source/public/includes/InterfacePtr.h:506: error: expected constructor, destructor, or type conversion before '(' token

 

 

/idsdk7/source/public/includes/K2Vector.h:241:0 /idsdk7/source/public/includes/K2Vector.h:241: error: expected constructor, destructor, or type conversion before '(' token

 

 

/idsdk7/source/public/includes/MSystemUtils.h:382:0 /idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)

 

 

/idsdk7/source/public/includes/MSystemUtils.h:382:0 /idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)

 

 

/idsdk7/source/public/includes/MSystemUtils.h:618:0 /idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)

 

 

/idsdk7/source/public/includes/MSystemUtils.h:618:0 /idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)

 

 

/CS5Test/Prj/../Source/CTActionComponent.cpp:0:0 /CS5Test/Prj/../Source/CTActionComponent.cpp: At global scope:

 

 

/CS5Test/Prj/../Source/CTActionComponent.cpp:43:0 /CS5Test/Prj/../Source/CTActionComponent.cpp:43: warning: 'CTActionComponent' declared with greater visibility than the type of its field 'CTActionComponent::<anonymous>'

 

 

/CS5Test/Prj/../Source/CTActionComponent.cpp:43:0 /CS5Test/Prj/../Source/CTActionComponent.cpp:43: warning: 'CTActionComponent' declared with greater visibility than its base 'CActionComponent'

 

 

CompileC build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTNoStrip.o ../Source/CTNoStrip.cpp normal i386 c++ com.apple.compilers.gcc.4_2

cd /CS5Test/Prj

setenv LANG en_US.US-ASCII

/Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Werror -DMACINTOSH -DMACOSX_SDKVERSION= -fvisibility-inlines-hidden -gdwarf-2 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/CS5Test.hmap -F/CS5Test/Prj/../debug/sdk -F/idsdk7/build/mac/debug/packagefolder/contents/macos -F/idsdk7/build/mac/debug/packagefolder/contents/Frameworks -I/CS5Test/Prj/../debug/sdk/include -I/idsdk7/external/afl/includes -I/idsdk7/source/precomp/msvc -I/idsdk7/source/public/interfaces/xmedia -I/idsdk7/source/public/interfaces/preflight -I/idsdk7/source/public/interfaces/ui -I/idsdk7/source/public/interfaces/tables -I/idsdk7/source/public/interfaces/text -I/idsdk7/source/public/interfaces/graphics -I/idsdk7/source/public/libs/widgetbin/includes -I/idsdk7/source/public/interfaces/workgroup -I/idsdk7/source/public/interfaces/interactive -I/idsdk7/source/public/interfaces/interactive/ui -I/idsdk7/source/public/interfaces/colormgmt -I/idsdk7/source/public/interfaces/utils -I/idsdk7/source/public/interfaces/incopy -I/idsdk7/source/public/interfaces/layout -I/idsdk7/source/public/interfaces/architecture -I/idsdk7/source/public/interfaces/cjk -I/idsdk7/source/precomp/common -I/idsdk7/source/public/includes -I/idsdk7/source/public/libs/publiclib/plugins -I/idsdk7/source/public/libs/publiclib/files -I/idsdk7/source/public/libs/publiclib/objectmodel -I/idsdk7/external/asl/boost_libraries -I/idsdk7/source/sdksamples/common -I/idsdk7/external/afl/includes -I../Source -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources/i386 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources -include /idsdk7/source/precomp/gcc/PluginPrefix.pch -c /CS5Test/Prj/../Source/CTNoStrip.cpp -o /CS5Test/Prj/build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTNoStrip.o

 

In file included from /idsdk7/external/afl/includes/AFile.h:30,

                 from /idsdk7/source/public/includes/IDFile.h:34,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/external/afl/includes/AErrors.h:31:19: error: Files.h: No such file or directory

In file included from /idsdk7/source/public/includes/PMString.h:28,

                 from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/K2Debugging.h:53:3: error: #error DEBUG and NDEBUG are out of sync!

In file included from /idsdk7/source/public/includes/PMString.h:31,

                 from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/UnicodeSavvyString.h:35:26: error: adobe/move.hpp: No such file or directory

In file included from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/PMString.h:34:30: error: adobe/typeinfo.hpp: No such file or directory

In file included from /idsdk7/source/public/includes/PMString.h:31,

                 from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/UnicodeSavvyString.h:211: error: expected `)' before '<' token

In file included from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/PMString.h:120: error: expected `)' before '<' token

/idsdk7/source/public/includes/PMString.h:1196: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/public/includes/IDFile.h:37,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/WideString.h:322: error: expected `)' before '<' token

/idsdk7/source/public/includes/WideString.h:751: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/IDFile.h:385: error: expected constructor, destructor, or type conversion before '(' token

cc1plus: warnings being treated as errors

In file included from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::mainFile'

/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::miniSaveFile'

/idsdk7/source/public/interfaces/architecture/IDataBase.h:779: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/InterfacePtr.h:506: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:51,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/K2Vector.h:241: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/public/includes/SystemUtils.h:33,

                 from /idsdk7/source/public/includes/PMPoint.h:29,

                 from /idsdk7/source/public/includes/PMMatrix.h:33,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:53,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/MSystemUtils.h: In function 'void InvertSysRgn(OpaqueGrafPtr*, const __HIShape*)':

/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)

/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)

/idsdk7/source/public/includes/MSystemUtils.h: In function 'void SystemBeep()':

/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)

/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)

 

CompileC build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTID.o ../Source/CTID.cpp normal i386 c++ com.apple.compilers.gcc.4_2

cd /CS5Test/Prj

setenv LANG en_US.US-ASCII

/Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Werror -DMACINTOSH -DMACOSX_SDKVERSION= -fvisibility-inlines-hidden -gdwarf-2 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/CS5Test.hmap -F/CS5Test/Prj/../debug/sdk -F/idsdk7/build/mac/debug/packagefolder/contents/macos -F/idsdk7/build/mac/debug/packagefolder/contents/Frameworks -I/CS5Test/Prj/../debug/sdk/include -I/idsdk7/external/afl/includes -I/idsdk7/source/precomp/msvc -I/idsdk7/source/public/interfaces/xmedia -I/idsdk7/source/public/interfaces/preflight -I/idsdk7/source/public/interfaces/ui -I/idsdk7/source/public/interfaces/tables -I/idsdk7/source/public/interfaces/text -I/idsdk7/source/public/interfaces/graphics -I/idsdk7/source/public/libs/widgetbin/includes -I/idsdk7/source/public/interfaces/workgroup -I/idsdk7/source/public/interfaces/interactive -I/idsdk7/source/public/interfaces/interactive/ui -I/idsdk7/source/public/interfaces/colormgmt -I/idsdk7/source/public/interfaces/utils -I/idsdk7/source/public/interfaces/incopy -I/idsdk7/source/public/interfaces/layout -I/idsdk7/source/public/interfaces/architecture -I/idsdk7/source/public/interfaces/cjk -I/idsdk7/source/precomp/common -I/idsdk7/source/public/includes -I/idsdk7/source/public/libs/publiclib/plugins -I/idsdk7/source/public/libs/publiclib/files -I/idsdk7/source/public/libs/publiclib/objectmodel -I/idsdk7/external/asl/boost_libraries -I/idsdk7/source/sdksamples/common -I/idsdk7/external/afl/includes -I../Source -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources/i386 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources -include /idsdk7/source/precomp/gcc/PluginPrefix.pch -c /CS5Test/Prj/../Source/CTID.cpp -o /CS5Test/Prj/build/CS5Test.build/Default/Debug.build/Objects-normal/i386/CTID.o

 

In file included from /idsdk7/external/afl/includes/AFile.h:30,

                 from /idsdk7/source/public/includes/IDFile.h:34,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/external/afl/includes/AErrors.h:31:19: error: Files.h: No such file or directory

In file included from /idsdk7/source/public/includes/PMString.h:28,

                 from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/K2Debugging.h:53:3: error: #error DEBUG and NDEBUG are out of sync!

In file included from /idsdk7/source/public/includes/PMString.h:31,

                 from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/UnicodeSavvyString.h:35:26: error: adobe/move.hpp: No such file or directory

In file included from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/PMString.h:34:30: error: adobe/typeinfo.hpp: No such file or directory

In file included from /idsdk7/source/public/includes/PMString.h:31,

                 from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/UnicodeSavvyString.h:211: error: expected `)' before '<' token

In file included from /idsdk7/source/public/includes/IDFile.h:36,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/PMString.h:120: error: expected `)' before '<' token

/idsdk7/source/public/includes/PMString.h:1196: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/public/includes/IDFile.h:37,

                 from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/WideString.h:322: error: expected `)' before '<' token

/idsdk7/source/public/includes/WideString.h:751: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/public/interfaces/architecture/IDataBase.h:37,

                 from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/IDFile.h:385: error: expected constructor, destructor, or type conversion before '(' token

cc1plus: warnings being treated as errors

In file included from /idsdk7/source/public/includes/InterfacePtr.h:76,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::mainFile'

/idsdk7/source/public/interfaces/architecture/IDataBase.h:488: warning: 'IDataBase::<anonymous struct>' declared with greater visibility than the type of its field 'IDataBase::<anonymous struct>::miniSaveFile'

/idsdk7/source/public/interfaces/architecture/IDataBase.h:779: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:48,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/InterfacePtr.h:506: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/precomp/common/ShukHeaders.cp:51,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/K2Vector.h:241: error: expected constructor, destructor, or type conversion before '(' token

In file included from /idsdk7/source/public/includes/SystemUtils.h:33,

                 from /idsdk7/source/public/includes/PMPoint.h:29,

                 from /idsdk7/source/public/includes/PMMatrix.h:33,

                 from /idsdk7/source/precomp/common/ShukHeaders.cp:53,

                 from /idsdk7/source/precomp/gcc/PluginPrefix.pch:30,

                 from <command-line>:0:

/idsdk7/source/public/includes/MSystemUtils.h: In function 'void InvertSysRgn(OpaqueGrafPtr*, const __HIShape*)':

/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)

/idsdk7/source/public/includes/MSystemUtils.h:382: warning: 'InvertRgn' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ QuickdrawAPI.h:1831)

/idsdk7/source/public/includes/MSystemUtils.h: In function 'void SystemBeep()':

/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)

/idsdk7/source/public/includes/MSystemUtils.h:618: warning: 'SysBeep' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Soun d.h:1383)

 

CompileC build/CS5Test.build/Default/Debug.build/Objects-normal/i386/SDKPlugInEntrypoint.o /idsdk7/source/sdksamples/common/SDKPlugInEntrypoint.cpp normal i386 c++ com.apple.compilers.gcc.4_2

cd /CS5Test/Prj

setenv LANG en_US.US-ASCII

/Developer/usr/bin/gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Werror -DMACINTOSH -DMACOSX_SDKVERSION= -fvisibility-inlines-hidden -gdwarf-2 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/CS5Test.hmap -F/CS5Test/Prj/../debug/sdk -F/idsdk7/build/mac/debug/packagefolder/contents/macos -F/idsdk7/build/mac/debug/packagefolder/contents/Frameworks -I/CS5Test/Prj/../debug/sdk/include -I/idsdk7/external/afl/includes -I/idsdk7/source/precomp/msvc -I/idsdk7/source/public/interfaces/xmedia -I/idsdk7/source/public/interfaces/preflight -I/idsdk7/source/public/interfaces/ui -I/idsdk7/source/public/interfaces/tables -I/idsdk7/source/public/interfaces/text -I/idsdk7/source/public/interfaces/graphics -I/idsdk7/source/public/libs/widgetbin/includes -I/idsdk7/source/public/interfaces/workgroup -I/idsdk7/source/public/interfaces/interactive -I/idsdk7/source/public/interfaces/interactive/ui -I/idsdk7/source/public/interfaces/colormgmt -I/idsdk7/source/public/interfaces/utils -I/idsdk7/source/public/interfaces/incopy -I/idsdk7/source/public/interfaces/layout -I/idsdk7/source/public/interfaces/architecture -I/idsdk7/source/public/interfaces/cjk -I/idsdk7/source/precomp/common -I/idsdk7/source/public/includes -I/idsdk7/source/public/libs/publiclib/plugins -I/idsdk7/source/public/libs/publiclib/files -I/idsdk7/source/public/libs/publiclib/objectmodel -I/idsdk7/external/asl/boost_libraries -I/idsdk7/source/sdksamples/common -I/idsdk7/external/afl/includes -I../Source -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources/i386 -I/CS5Test/Prj/build/CS5Test.build/Default/Debug.build/DerivedSources -include /idsdk7/source/precomp/gcc/PluginPrefix.pch -c /CS5Test/Prj//idsdk7/source/sdksamples/common/SDKPlugInEntrypoint.cpp -o /CS5Test/Prj/build/CS5Test.build/Default/Debug.build/Objects-normal/i386/SDKPlugInEntrypo int.o

 

i686-apple-darwin10-gcc-4.2.1: /CS5Test/Prj//idsdk7/source/sdksamples/common/SDKPlugInEntrypoint.cpp: No such file or directory

i686-apple-darwin10-gcc-4.2.1: warning: '-x c++' after last input file has no effect

i686-apple-darwin10-gcc-4.2.1: no input files

Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

 

 

Without using environment variable everything works fine . (i.e when I give SDK's dir path like ../../  i.e relative to my project)


How to get custom label out of Cell?

$
0
0

I have a table and in a cell I have custom label like this:


<Cell Self="u111i114i6" Name="0:1" RowSpan="1" ColumnSpan="1" AppliedCellStyle="CellStyle/$ID/[None]" AppliedCellStylePriority="0">

<Properties>

  <Label type="list">

   <ListItem type="list">

    <ListItem type="string">some_key</ListItem>

    <ListItem type="string">0</ListItem>

   </ListItem>

  </Label>

</Properties>

<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle">

  <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">

   <Content>Something something</Content>

  </CharacterStyleRange>

</ParagraphStyleRange>

</Cell>

 

 

I have the tablemodel and gridAddress of the cell and I'm trying to read the label like this:

 

ICellContent* cell = tableModel->QueryCellContentBoss(gridAddress);

InterfacePtr<IScript> iscript(cell, UseDefaultIID());

IScriptLabel::ScriptLabelKeyValueList tags = iscript->GetTags();

 

But obviously it doesn't work. Can't get IScript out of cell. What should I do?

Anyone tried using Xcode 4?

$
0
0

With the public release of Xcode 4, I was wondering if anyone has tried using it for InDesign development?

Any success stories? Any failures?

What version of the SDK did you try? 3, 4, 5?

Any important lessons learnt that you'd like to document?

cannot handle the request because a modal dialog or alert is active.

$
0
0

hi all

i try to use indesign product sdk CS5 using com object to open and edit document with asp.net

this error appear to me in this part of my code

 

            InDesign.Application indApp = (InDesign.Application)Activator.CreateInstance(InDType, true);

         

           indApp.ScriptPreferences.UserInteractionLevel = idUserInteractionLevels.idNeverInteract;

         

            InDesign.Document objDoc = (InDesign.Document)indApp.Open(cstrInddFile, true, idOpenOptions.idDefault);

 

 

 

Cannot handle the request because a modal dialog or alert is active.\\\   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at InDesign.ScriptPreference.set_UserInteractionLevel(idUserInteractionLevels ) at _Default.Button1_Click(Object sender, EventArgs e)

 

thanks advance

How to setup Xcode 4.2 for indesign plugin development

$
0
0

Hi all,

i am trying to add an indesign project template to xcode 4.2. I read and try almost all and nothing is working for me. I was trying to go step by step as getting started pdf from adobe shows, but its targeted for xcode 3.x, so any luck here... I am not able to sucessfuly run even dollyxs from terminal, it just generate empty txt file. Could anyone tell me please or shows link how to add indesign template to xcode 4.2???

thanks in advice

Plugin Debuging Xcode

$
0
0

Hi again,

I am quite dissapointed with adobe's getting started guide because a lot of info isnt clear...

So lets move to my question.

I would like to build and run plugin from Xcode, I made steps, that are described in getting started guide. I would like to use: PlugInConfig.txt for setting the path. Content of that file looks as follows:

=Path

":Users:OndrejVyhlidal:Documents:IndesignPluginSDK:build:mac:debug:SDK:" When i save that file, open Indesign, it doesnt see any of the plugin that I have in this folder. I tried to change this path from debug to release but nothing happend. Could anyone suggest where is error??

Right now I have another one problem with InDesign - every plugin, that I build and copy to its plug-in folder, creates exception during launching of InDesign, something that InDesign isnt able to recognize this plugin...

 

Is there any way to debug(with breakpoints) plug-ins??

Thx


CS6 Eve Dialog & resize

$
0
0

Hi,

 

I'm looking at converting dialogs to EVE, I've got what seems a simple dialog - a table based list box, 2 buttons and the ability to resize.  The only way I've found to allow re-size is by having a DialogWindowSizeBoxWidget as before eve, I've got what seems sensible binding on the EVEGenericPanelWidgets all the rest has moved into, got kBindAll on the dialog, etc.  Result - the dialog resizes but the panels don't :-(

 

The dialog and widgets re-sized correctly in the old way...

 

Anyone able to help?

 

Ian

How to enable the widgets in Indesign CC..?

$
0
0

Hi,

 

I am working on porting our Indesign CS6 plugin to Indesign CC plugin.I have completed the porting and the plugins has opened in Indesign CC,but i have one problem in design. Three of our Widgets has not opened in Indesign CC.

 

The code is the following,

 

.fr file

 

resource SampleDialogWidget (kSDKDefDialogResourceID + index_enUS)

{

          __FILE__, __LINE__,

          kSampleDialogWidgetID,                    // WidgetID

          kPMRsrcID_None,                                        // RsrcID

          kBindNone,                                                  // Binding

          0, 0, 700,400,                                        // Frame (l,t,r,b)

          kTrue, kTrue,                                        // Visible, Enabled

          kSampleDialogTitleKey,                    // Dialog name

          {

          //<FREDDYWIDGETDEFLISTUS>

 

SamplePrefListBox

                    (

                              SamplePreflistboxWidgetID,

                              kSysOwnerDrawListBoxPMRsrcId,                                                            // WidgetId, RsrcId

                              kBindAll,                                                                                                              // Frame binding

                              Frame(15,15,170,360)                                                                                // Frame

                              kTrue, kTrue,                                                                                                    // Visible, Enabled

                              1,0,                                                                                                                        // List dimensions

                              19,                                                                                                                                  // Cell height

                              1,                                                                                                                                  // Border width

                              kFalse,kTrue,                                                                                                    // Has scroll bar (h,v)

                              kTrue,                                                                                                                        // Multiselection

                              kTrue,                                                                                                                        // List items can be reordered

                              kTrue,                                                                                                                        // Draggable to new/delete buttons

                              kTrue,                                                                                                                        // Drag/Dropable to other windows

                              kTrue,                                                                                                                        // An item always has to be selected

                              kFalse,                                                                                                                        // Don't notify on reselect

                              kSamplePrefListElementRsrcID                                                                      // Fill list box with widgets with this ID (default is 0)

                              {

                                        CellPanelWidget

                                        (

                                                  kCellPanelWidgetID, kPMRsrcID_None,                              // WidgetId, RsrcId

                                                  kBindAll,                                                                                          // Frame binding

                                                  Frame(-1,1,154,340)                    // Frame

                                                  kTrue, kTrue                                                                                // Visible, Enabled

                                                  {

                                                            // ----- This is the CPanelControlData that holds the widgets

                                                            //                     that are items in the list box. They are not persistent

                                                            //

 

                                                  }

                                        ) 

                              },

                    ),

 

 

                    GenericPanelWithBorderWidget

                    (

                SamplePrefGeneralTabWidgetID, kPMRsrcID_None,

                              kBindBottom |kBindRight,

                              Frame(175,10,695,360)                    // Frame

                              kTrue, kTrue,

                              "",

                              {

 

                    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

                              kSamplePrefProjectPathStringKey,                    // Initial text.

                              kSamplePrefProjectPathTextEditBoxWidgetID          // No associated widget

                    ),

 

 

                    // TextEditBox Widget resource

                    TextEditBoxWidget

                    (

                    kSamplePrefProjectPathTextEditBoxWidgetID, // 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

                    (

                              kSampleChooseProjectButtonWidgetID,

                              kSysButtonPMRsrcId,

                              kBindNone,

                              430, 15, 500, 35,

                              kTrue, kTrue,

                              kSampleChooseBtnStringKey,

                    ),

 

GenericPanelWithBorderWidget

                    (

                              SamplePrefFittingTabWidgetID, kPMRsrcID_None,

                              kBindBottom |kBindRight,

                              Frame(175,10,695,360)                    // Frame

                              kTrue, kTrue,

                              "",

                              {

 

                              StaticTextWidget

                                        (

                                                  kInvalidWidgetID,                    // WidgetId

                                                  kSysStaticTextPMRsrcId,                    // RsrcId

                                                  kBindNone,                              // Frame binding

                                                  Frame( 10,15,300,35  ),          // Frame (l,t,r,b)

                                                  kTrue, kTrue, kAlignLeft,          // Visible, Enabled, Alignment

                                                  kDontEllipsize,kTrue,                              //**new element in InDesign 2.0: don't add any ellipses

                                                  "Drag/Drop Operation",                     // Text

                                                  0// WidgetId for associated control for shortcut focus

                                        ),

 

                                        SeparatorWidget

                                        (

                                                  0,

                                                  kPMRsrcID_None,

                                                  kBindNone,

                                                  Frame(10,37,450,38),

                                                  kTrue,kTrue,

                                        ),

 

                                        StaticTextWidget

                                        (

                                                  0,                    // WidgetId

                                                  kSysStaticTextPMRsrcId,                    // RsrcId

                                                  kBindNone,                              // Frame binding

                                                  Frame( 10, 40, 250, 60  ),          // Frame (l,t,r,b)

                                                  kTrue, kTrue, kAlignLeft,          // Visible, Enabled, Alignment

                                                  kDontEllipsize,kTrue,                              //**new element in InDesign 2.0: don't add any ellipses

                                                  kSampleTextOptionsTextKey,                     // Text

                                                  0                    // WidgetId for associated control for shortcut focus

                                        ),

 

                                        CheckBoxWidget

                                        (

                                                  kSampleTextFitCheckBoxWidgetID,                    // WidgetId

                                                  kSysCheckBoxPMRsrcId,                              // RsrcId

                                                  kBindNone,

                                                  Frame(150, 40, 350, 60) //  left, top, right, bottom

                                                  kTrue,                                                                      // Visible

                                                  kTrue,                                                                      // Enabled

                                                  kAlignLeft,                                                            // Alignment

                                                  kSampleTextFitChkBoxTextKey                    // Initial text

                                        ),

 

GenericPanelWithBorderWidget

                    (

                              SamplePrefScriptEventsTabWidgetID, kPMRsrcID_None,

                              kBindBottom |kBindRight,

                              Frame(175,10,695,360)                    // Frame

                              kTrue, kTrue,

                              "",

                              {

 

                                        StaticTextWidget

                                        (

                                                  0,                                                                                // WidgetId (default=0)

                                                  kSysStaticTextPMRsrcId,                    // RsrcId

                                                  kBindNone,                                                            // Frame binding

                                                  10, 10, 200, 30,                                                  // Frame: left, top, right, bottom.

                                                  kTrue, kTrue,                                                  // Visible, Enabled

                                                  kAlignLeft, kEllipsizeEnd,kTrue,                    // Alignment, ellipsize style

                                                  kSampleDropDownEventsTextKey,                    // Initial text.

                                                  0                    // No associated widget

                                        ),

 

SamplePrefListBox

                                        (

                                                   SamplePrefDragDropScriptlistboxWidgetID, kSysOwnerDrawListBoxPMRsrcId,          // WidgetId, RsrcId

                                                  kBindAll,                                                                                                              // Frame binding

                                                  Frame(10, 35, 200, 120)                                                                                          // Frame

                                                  kTrue, kTrue,                                                                                                    // Visible, Enabled

                                                  1,0,                                                                                                                        // List dimensions

                                                  19,                                                                                                                                   // Cell height

                                                  1,                                                                                                                                   // Border width

                                                  kFalse,kTrue,                                                                                                    // Has scroll bar (h,v)

                                                  kTrue,                                                                                                                         // Multiselection

                                                  kTrue,                                                                                                                         // List items can be reordered

                                                  kTrue,                                                                                                                         // Draggable to new/delete buttons

                                                  kFalse,                                                                                                                         // Drag/Dropable to other windows

                                                  kTrue,                                                                                                                         // An item always has to be selected

                                                  kFalse,                                                                                                                         // Don't notify on reselect

                                                  k SamplePrefListElementRsrcID                                                                      // Fill list box with widgets with this ID (default is 0)

                                                  {

                                                            CellPanelWidget

                                                            (

                                                                      kCellPanelWidgetID, kPMRsrcID_None,                              // WidgetId, RsrcId

                                                                      kBindAll,                                                                                          // Frame binding

                                                                      Frame(-1,1,187,243)                    // Frame

                                                                      kTrue, kTrue                                                                                // Visible, Enabled

                                                                      {

                                                                                // ----- This is the CPanelControlData that holds the widgets

                                                                                //                     that are items in the list box. They are not persistent

                                                                                //

 

                                                                      }

                                                            ) 

                                                  },

                                        ),

 

                                        ButtonWidget

                                        (

  SamplePrefDragDropScriptAddBtnWidgetID,

                                        kSysButtonPMRsrcId,

                                        kBindNone,

                                        20, 125, 90, 145,

                                        kTrue, kTrue,

                                        kSampleAddScriptButtonTextKey,

                                        ),

 

                                        ButtonWidget

                                        (

  SamplePrefDragDropScriptRemoveBtnWidgetID,

                                        kSysButtonPMRsrcId,

                                        kBindNone,

                                        100, 125, 180, 145,

                                        kTrue, kTrue,

                                        kSampleRemoveScriptButtonTextKey,

                                        ),

 

Elements added:

 

void SampleDialogController::PopulatePrefListElement()

{

do

{

                    InterfacePtr<IPanelControlData> iPanelControlData(this, UseDefaultIID());

                    ASSERT(iPanelControlData);

                    if(!iPanelControlData) {CAlert::InformationAlert("IPanelControlData err");break;}

 

 

                    SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, SamplePreflistboxWidgetID, kSampletDialogWidgetID);

                    IControlView * listBox = listHelper.FindCurrentListBox();

                    if(listBox == nil) {

                    CAlert::InformationAlert("listBox err");

                    break;

                    }

 

 

 

                    listHelper.EmptyCurrentListBox();

 

 

                    InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER);          // useDefaultIID() not defined for this interface

                    ASSERT_MSG(listCntl != nil, "listCntl nil");

                    if(listCntl == nil) {

                    CAlert::InformationAlert("IListBoxController err");

                    break;

                    }

 

                    //Addin the string to the listbox

                    const int targetDisplayWidgetId =SamplePrefOptionTextWidgetID;

 

 

                    listHelper.AddElement("General", targetDisplayWidgetId);

                    listHelper.AddElement("Fitting", targetDisplayWidgetId);

                      listHelper.AddElement("Events and Scripts", targetDisplayWidgetId);

 

                    listCntl->DeselectAll();

 

 

}while(0);

}

 

I dont know how to enable these three widgets in Indesign CC.please refer this code and help me if anyone has idea regarding this problem.

 

Thanks in advance,

Vimala L


Create a Listbox in Dialog

$
0
0

I want to create a simple Listbox in a dialog and populate it with some dynamic strings. I placed a Treeview in dialog using this code in fr-file:

 

TreeViewWidget

        (

            myListID,            // fWidgetId

            kSysStaticTextPMRsrcId,        // fRsrcId, fRsrcPlugin

            kBindNone,

            Frame( 10, 10, 280, 200  ),

            kTrue,            // fVisible

            kTrue,            // fEnabled

            kTrue,            // fEraseBeforeDraw

            kInterfacePaletteFill,            // InterfaceColor to erase to

            "",        // control label

            kFalse,        // Display Root Node

            kFalse,        // Use H scroll bar

            kTrue,        // Use V scroll bar

            20,        // Vertical Scroll Button increment

            20,        // Vertical Thumb Scroll increment

            0,        // Horizontal Scroll Button increment

            0,        // Horizontal Thumb Scroll increment

            1,        // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection

            kTrue,        // Allow children from multiple parents to be selected

            kTrue,        // Allow discontiguous selection

            {

 

            }

        )

 

In my dialog i see the list box containing entries 0-9. How can i remove these entries and add my own strings? In PanelTreeView and other samples i cant find a solution.

In DialogController::InitializeDialogFields I tried to init the list like this without effect:

IControlView* treeView = pPanelData->FindWidget( myListID );

InterfacePtr<ITreeViewMgr> iTreeMgr(treeView, UseDefaultIID();

iTreeMgr->ClearTree(kTrue);


Is treeview in cs6 the only possiblity for creating a listbox with selectable entries? A Dropdownlist is no option because user must see multipe entries after opening dialog.

How to get the SelectionProxy "Selection Square/Dot" into my own TreeView?

$
0
0

Hi!

I have built my own TreeView in a panel plugin. This TreeView contains document objects, just like the Layers Panel does. In the Layers Panel each treenode (e.g. a layer, an <rectangle>, any node item) has a "SelectionProxy" on the right side (the little square/dot that gets colored in the layer's color if you click it). I want to add such a SelectionProxy to my TreeView Node Items. I have found in the "open" folder that there's apparently (part of) the source code of the layers panel. However I can't find documentation of any sorts that would be helpful to what I'm trying to do.

I've gotten so far that I know that I need to add 2 boss classes, kLayerPanelSelectionProxyBoss and kPageItemSelectionProxyBoss.

 

Class

  {

  kLayerPanelSelectionProxyBoss,

  kBaseWidgetBoss,

  {

  IID_ISELECTIONPROXYDRAWDATA, kSelectionProxyDrawDataImpl,

  IID_ICONTROLVIEW, kSelectionProxyViewImpl,

  IID_IDRAGDROPSOURCE, kProxyViewDragDropSourceImpl,

  IID_IEVENTHANDLER, kLayerProxyDragDropSourceEHImpl,

  IID_ITIP, kProxyWidgetTipImpl,

  }

  }

 

  Class

  {

  kPageItemSelectionProxyBoss,

  kLayerPanelSelectionProxyBoss,

  {

  IID_IDRAGDROPSOURCE, kLayerZOrderDragDropSourceImpl,

  }

  }

 

However I can't find anything on IID_ISELECTIONPROXYDRAWDATA. Maybe someone has done this already and can guide me a little bit. I'm grateful for any help!

In Indesign CS6 I export an artboard to TIFF with the sdk's funtion SnapshotUtilsEx->ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

$
0
0

In Indesign CS6 I export an artboard to  TIFF with the sdk's funtion SnapshotUtilsEx->ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

Example from the SDK. How to check in FrameLabelUI whether plugin FrameLabel.pln exists?

$
0
0

Hi all, I have problem. I want check in FrameLabelUI, whether dependency plugin file FrameLabel.pln is exists. If FrameLabel.pln exists, plugin FrameLabelUI display messagebox "plugin framelabel exists" else if FrameLabel.pln not exists, plugin FrameLabelUI display messagebox "plugin framelabel.pln not found!".

How to make a notification when document tab is changed?

$
0
0

Hi All,

Can you please help me some codes/ introduction about how to detect if document tab is changed? I made a plugin and I would like to update its interface but I don't how the way it is. It likes all the panel in InDesign does.

I'm very happy if someone can give me a help and thank you so much.

Thank for your reading.

Build InDesign CC 2014 error on Mac OS

$
0
0

Hi,

 

I'm trying to compile sdk samples CC 2014 on Mac:

Mac OS 10.8.5

Xcode 5.0.2

I also copy MacOSsdk10.7 to Xcode 5.02

 

Error:

 

ld: in '../debug_cocoa64/packagefolder/contents/Frameworks/AdobeOwl.framework/AdobeOwl', file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 ) which is not the architecture being linked (x86_64): ../debug_cocoa64/packagefolder/contents/Frameworks/AdobeOwl.framework/AdobeOwl for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

 

anyone can help me to solve this problem?

 

Thanks

How to close dialog after pressed button

$
0
0

Hi. I added button

 

ButtonWidget

(

  kButtonWidgetID,

  kSysButtonPMRsrcId,

  kBindNone,

  334, 16, 434, 16+24,

  kTrue, kTrue,

  kButtonLabelKey,

),

 

and in my method in file ...Observer.cpp

 

if (theChange == kTrueStateMessage)

  if (theSelectedWidget == kButtonWidgetID)

     //this I want close dialog

 

How? I don't want create CancelButtonWidget. This is must be cutom button.


How can we get the reference of XML element on frame as soon as frame is created in Document?

$
0
0

Hi,

 

When ever we copy any text/table cells from any frame, and paste it directly on page, A new Frame is created and the pasted text is placed inside that frame.

 

Now to capture this frame creation, We have two possible solutions:

 

1) Attach Observer on Document 'kDocBoss' on IID_IHIERARCHY_DOCUMENT and it will notify on frame creation in update function.

 

2) Notification event on new story creation.

 

Now, I need to perform some changes in the newly created table, for example:

 

a)  Need to delete XML tags from newly created frame

b)  Need to perform action on table cells if any in the created frame.

 

But the problem is, when the event comes, I can access basic properties of frame like it's name, type etc, but it does not give me the

XML element on frame or tables in frame until the event is com pleat.

 

I know it's quite a specif requirement, but I guess many of you might have faced these kind of challenges, while processing the event.

 

Does any one has any idea how I can get the reference of XML element on frame as soon as it is created?

Error compiling InDesign CS6 plugin on Mac OS 10.10 (Yosemite)

$
0
0

Hi @all,

 

if i try to compile a InDesign (CS6) plugin on Mac OS 10.10 (Yosemite) and use the MacOS 10.5 SDK, I get the following error:

 

/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/stl_iterator.h:362:38: error: no type named 'const_reference' in 'UnicodeSavvyString'

      operator=(typename _Container::const_reference __value)

 

Did anybody know how to solve this problem?

 

Thanks in advance

 

Best Regards

Using StdTreeBasedListBox

$
0
0

Hi All,

 

I want to implement StdTreeBasedListBox widget in my plug-in but I cannot find any sufficient resources or examples to help me make it.

 

I use --

 

InterfacePtr<IPanelControlData> iPanelControlData(fOwner,UseDefaultIID());  //fOwner is the IPanelControlData pointer of my palette

 

IControlView *  listBoxControlView =     iPanelControlData->FindWidget(fListboxID);

 

InterfacePtr< IListControlDataOf<IControlView*> > listData(listBoxControlView, UseDefaultIID());

 

listData->Add(elView);

 

I get a successful add message but the widgets are not reflected in listBoxWidget.

 

 

**************************************************************************************

 

kMyElementListElementRsrcID is the resouce id of my list element.

 

 

Here is my .fr file

 

StdTreeBasedListBox

        (

            kMyElementListBoxWidgetId,

            kSysOwnerDrawListBoxPMRsrcId,

            // kBindAll,                                            // Frame binding

            kBindLeft | kBindRight | kBindTop,                                // Frame binding

            Frame(6,30,202,200),

            kTrue, kTrue,                                        // Visible, Enabled

 

            kFalse,                                // Erase background

            kInterfacePaletteFill,                // Erase to color

 

            1,0,                                                // List dimensions

            19,                                                    // Cell height

            0,                                                    // Border width

            kFalse,kTrue,                                        // Has scroll bar (h,v)

            kTrue,                                                // Multi-selection

            kFalse,                                                // List items can be reordered

            kFalse,                                                // Draggable to new/delete buttons

            kFalse,                                                // Drag/Drop-able to other windows

            kTrue,                                                // An item always has to be selected

            kFalse,                                                // Don't notify on reselect

            kMyElementListElementRsrcID,                        // Fill list box with widgets with this ID (default is 0)

 

            //begin TreeAttributes

 

            kFalse,        // Display Root Node

            kTrue,        // Use H scroll bar

            kTrue,        // Use V scroll bar

 

            // Scroll Button increment is the number of pixels that will scroll when either of the buttons on the end of

            // the scroll bar is clicked.  Thumb Scroll increment is the amount of pixels that will be scrolled at a time when you

            // grab the scroll bar thumb and drag it around.  Thumb Scroll must be a factor of Scroll Button.

            // i.e. Scroll Button = 20 & Thumb Scroll = 5

            20,        // Vertical Scroll Button increment

            5,        // Vertical Thumb Scroll increment

            20,        // Horizontal Scroll Button increment

            5,        // Horizontal Thumb Scroll increment

 

            //end tree attributes

 

            //begin TreeViewController

            1,

            kFalse,

            kFalse,

            //end TreeViewController

 

        ),

 

 

What am I doing wrong?

How to access table cell script labels in c plugin

$
0
0

Hi,

We have a plugin written in actionscript, which is writing data into the labels of each cell in a row of a table, when the user has their cursor in that row:

 

var cell:Cell = getSelectedCell();

for each (var childCell:Cell in cell.parentRow.cells) {               

    childCell.insertLabel(labelName, theString);

}

 

public function getSelectedCell():Cell

{

...

    var selectedLayers:Array = doc.selection as Array;

    var obj:Object = selectedLayers[0];

    if (obj as InsertionPoint != null) {

        var ip:InsertionPoint = obj as InsertionPoint;

        if (ip.parent is Cell) {

            return ip.parent as Cell;

        }

    } else if (obj as Cell != null) {

        return obj as Cell;

    }

    return null;

}

 

 

I'm now writing a C plugin which needs to read this data using IScriptLabel: again, when the user has a cursor in that row.

My problem is that I can't (via the C code) find which UIDRefs the labels would have been stored against by the script as the table doesn't seem to have cell objects in the same way that the script does.

 

Any ideas on how to get the relevant UIDRefs?

Thanks

Indesign CC 2014 crashes on trying to open a IDML file through my custom extension

$
0
0

Indesign CC 2014 crashes on trying to open a IDML file through my custom extension

 

Hi,

I have ported my HTML extension from Indesign 9.2 to Indesign CC 2014 and things were looking just fine.

But Now, when I try to open the saved IDML document, Indesign Crashes.

Windows error reporting gives the below picture

 

Faulting application name: InDesign.exe, version: 10.1.0.70, time stamp: 0x5424e38b
Faulting module name: Public.dll, version: 10.1.0.70, time stamp: 0x5424e290
Exception code: 0xc0000005
Fault offset: 0x00000000000546b4
Faulting process id: 0x58e0
Faulting application start time: 0x01cfe9cfc85d4f86
Faulting application path: C:\Program Files\Adobe\Adobe InDesign CC 2014\InDesign.exe
Faulting module path: C:\Program Files\Adobe\Adobe InDesign CC 2014\Public.dll
Report Id: 88eb8dca-55c3-11e4-81b6-f8b156db39b5

 

It failed somewhere in Public.dll but I am not getting how and where. Is there any way I can debug it and get to know Or if any one faced such kind of issue?

Viewing all 78596 articles
Browse latest View live


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