Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating an Object of Class b from inside of Class a

Community Beginner ,
Nov 26, 2016 Nov 26, 2016

Within my Plug-In I use the XML-Parsing-functionality.

After parsing the respective XML I want to create my IObserver-Class to let it receive the FILE:SAVE-events.

How may I create an Instance my IObserver-Class from inside of my XMLCATHandler::EndElement?

TOPICS
Acrobat SDK and JavaScript
568
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 26, 2016 Nov 26, 2016

I don't recognise these APIs. Is this definitely the Acrobat SDK?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2016 Nov 27, 2016

Hi,

I simply want to let first my SartupShutdown-Class the result of the XML-Parsing first an want to istanciate my IObserver-Class either from the XML-Parsing-class or (if I may inform the StartupShutdown-Class) from that class.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 27, 2016 Nov 27, 2016

Please answer my question.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2016 Nov 27, 2016

I use the Adobe SDK for CS2.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2016 Nov 27, 2016

First I run the StartupShutdownService.

It is creation my own TOP-Menue.

From one of the submenues the XCAT-Parsing  may be invoced.

If the parsing is finished succesfully, a document accoring the size retrieved from the Order-XML wil be opened.

At that stage i have not yet implemented the setting of the path and file name of the output file.

As the output file shall be saved to different destinations for any order, I'd like to get help for that functionality.

Further more I want to set the selectable fonts and colours according the order too, and would like to get help for.

Finally I want to istanciate my IObserver, to receive the signal for saving the document.

As the output shall go to different destinations, I want to omit the standard FILE:SAVE As-dialog and save the file with the SDK-Helper class.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 27, 2016 Nov 27, 2016

Each CS2 product has its own SDK. You are certainly in the wrong place but to redirect you tell us which SDK you actually have.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2016 Nov 27, 2016

I'm ussing Adobe InDesign CS2 4.0.2 Products SDK.

But it seems to me, that not the SDK is causing the problem.

If I note

UIEIObserver* MyAppIObserver;

at my XCatHandler::EndElement

the hint, when moving the mouse over UIRIObserver is showing 'class UIEIObserver'.

But the compiler is claiming 'error C3861: 'UIEIObserver': Bezeichner wurde auch mit einer argumentbezogenen Suche nicht gefunden'

I use in both classes namespace std.

On my opinion it is a matter of visibility.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 28, 2016 Nov 28, 2016

Please post in the InDesign SDK forum. I have no clue what you mean, the Acrobat SDK is based in C not C++.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 28, 2016 Nov 28, 2016

Could you please move my quesation to the InDesign SDK forum?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 28, 2016 Nov 28, 2016
LATEST

No I have no power to do that. Please post a new question there unless a moderator happens to come by and move it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines