Skip to main content
jochens5907408
Known Participant
November 26, 2016
Question

Creating an Object of Class b from inside of Class a

  • November 26, 2016
  • 5 replies
  • 700 views

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?

This topic has been closed for replies.

5 replies

Legend
November 28, 2016

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

Legend
November 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++.

jochens5907408
Known Participant
November 28, 2016

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

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

jochens5907408
Known Participant
November 28, 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.

Legend
November 27, 2016

Please answer my question.

jochens5907408
Known Participant
November 27, 2016

I use the Adobe SDK for CS2.

jochens5907408
Known Participant
November 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.

Legend
November 26, 2016

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

jochens5907408
Known Participant
November 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.