Stop the close of active document...CS3

Hi,
I m new to plugin development. I m using Indesign CS3 on MAC OS.
How do i get the reference(UIDRef) to the active document?
I want to stop the close operation of this document... I have disabled the close menu... But want the close button also to be disabled...
Should i implement IDocFileHandler? or is ther any other way?
Can someone please guide me...
Thank You.

You need to overshadow the default doc file handler. Here's a few hints: <br />1. Implement your own. Have a good look at InCopyDocFileHandler.cpp in the SDK<br />2. install in on the kDocBoss, store a reference to the original<br />>AddIn<br />>{<br />>     kDocBoss,<br />>     kInvalidClass,<br />>     {<br />>          IID_IMYDOCOBSERVER, kMyDocObserverImpl,<br />>          IID_ORGICLASSIDDATA, kClassIDDataImpl,<br />>     }<br />>};<br /><br />3. Be nice to others. In your docfilehandler remember to pass on all call on the original handler, less the one's you want to intercept. An example:<br />>InterfacePtr<IClassIDData> orgDocFileHandlerData(doc, IID_ORGICLASSIDDATA);<br />>ASSERT_INTERFACE(orgDocFileHandlerData);<br />>ClassID anID = orgDocFileHandlerData->GetClassID();<br />          <br />>InterfacePtr<IDocFileHandler> orgDocFileHandler(INVUtils::QueryDocFileHandler(anID));<br />>ASSERT_INTERFACE(orgDocFileHandler);<br />          <br />>return orgDocFileHandler->CanSaveACopy(doc);

Similar Messages

  • How to stop the bridge.exe active as to install the new application eg.Flash CC?

    how to stop the bridge.exe active as to install the new application eg.Flash CC? please help?
    I can't install the any new application every time.

    Please refer:
    http://helpx.adobe.com/creative-suite/kb/error-installation-cannot-continue-bridge.html
    Regards,
    Ashutosh

  • How do I stop the Close Operation of JFrame

    I want to stop user to close my frame on click of window close icon. How do I stop this operation.
    Dinesh

    Hi,
    Just add this in ur code
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);

  • Hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the

    hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the help

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • HT2090 hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera. when i close each app the isight camera's green light is still active. When that happens the only way to stop the isight camera is to r

    hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera. when i close each app the isight camera's green light is still active. When that happens the only way to stop the isight camera is to reboot.
    Is there a way to use activity monitor to identify and kill the process controlling the isight? My apologies in advance if this sounds windows (task manager) like.
    Thanks

    tqtclipper wrote:
    hello, my eyesight issue happens occasionally, from time to time i run multiple apps that use the isight camera...
    http://support.apple.
    com/kb/HT2411: Your camera can be used by only one application at a time.
    (Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD."  Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
    tqtclipper wrote:
    ... Is there a way to use activity monitor to identify and kill the process controlling the isight? ...
    http://support.apple.
    com/kb/PH5147:  You can quit any process you can see in those listed in the window that opens when you use Activity Mornitor's 
         Window >
    Activity Monitor
    menu command.
    Message was edited by: EZ Jim
    Mac OSX 10.8.3

  • How can I print ONLY the active document?

    Whenever I go to File/Print the darn PSE 9 program sends all of the working files in the bin to the printer. I've searched online for 2 hours now looking for an answer.
    I like to work with having several to many files in the 'bin' and prefer to only print the active file I'm currently working on without having to close the 'working files' before I can print. How can I print ONLY the active document or file in the project bin? Please help, I've upgraded from PSE 3 to PSE 9 and really like the updated features, but this one pain in the neck default is getting the best of me.

    Thanks for your help, that works nicely. It is good to have control of the printer again.

  • When I try to open iTunes,it tries to start but than I get a message stating-iTunes has stopped working , close the program. Does anyone have a problem like this? I'm using windows 7 compatibility turned off.

    I'm using a Dell PC with windows 7. Apple Store cannot open completely. An error message states- iTunes has stopped working, close the program.
    I have spoken to at least 3 Techs with no solutions found for this problem. Compatibility mode turned off. Newest Download from Apple site.

    See HT203206: iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Call a function when the active document is closed

    Hi friends
    I have a portion of my script (at true a specific function) that I´d need to be executed every time the user close the app.activeDocument in Photoshop.
    I know there´s a Photoshop script called "Script Event Manager" where we can associate actions and scripts with events (like closing the document). I´d not like to use this script because..as I told...it´s not my entire script to be runned when closing a file..but only a function.
    Tried to search in the Script Event Manager for any event called "onClose" () but sure there´s nothing.
    How could I insert an event in the body of my own script that calls a function every time user close the active document?
    Thank you a lot for the help
    Best Regards
    Gustavo.

    As I said before the close event is really not that useful. In addition to the document already being closed the event descriptor will only have the path to the closed file if it was saved as part of the close event.
    But if you want to play around with this to see if it will be helpful to you here is one way. You will need to add the notifer. This only needs to be done once unless it is removed.
    app.notifiersEnabled = true;
    app.notifiers.add( "Cls ",new File('~/desktop/closeEventHandler.jsx') );
    Then for the event handler script, something like this.
    try {
        if (arguments.length >= 2) {
        var filePath;
        var desc = arguments[0];
        if( desc.hasKey( stringIDToTypeID('in') ) ) filePath = desc.getPath(stringIDToTypeID('in'));
        if( filePath != undefined ) alert( decodeURI( filePath ) );
    } catch (e) {}

  • Modeless dialogs and the active document

    I have a modeless dialog (Qt) that contains a checkbox to toggle off and on annotations that our plugin draws.  When the user clicks the checkbox, it calls a function in the plugin code that ultimately makes a call to AIAnnotator->SetAnnotatorActive().  When passing in false, the annotations stop drawing, as expected.  But when passing in true, the annotations don't draw (the plugin doesn't even get the kCallerAIAnnotation message) until the modeless dialog moves or the Illustrator window gets focus.
    I have tried to force a redraw and a bunch of other things to try to get the annotations to start drawing, but none of them work.  One thing I found interesting (and is the root of the problem, I suppose) is that at the point the user clicks the checkbox in the modeless dialog, making a call to AIDocument->GetDocument() returns DOC?, which means there isn't an active document.  Without an active document, none of the calls to redraw the window or invalidate the current view will work.
    Have any of you experienced this before and come up with a solution?  I'm really at a loss on what to do.

    Thanks for the response.
    Maybe I'm not calling the AIAppContextSuite functions at the correct time, but they don't seem to do anything in this situation.  I'm pushing the context right before I display the Qt dialog (at which point I have a document and a view), but when the checkbox is clicked, calling AIDocument->GetDocument still indicates there isn't a document.  These click events happen in the Qt event thread, not the plug-in message thread, but I don't believe the click itself is the problem.

  • How do I stop previews of recent activity appearing when I double tap the home button

    HHow do I stop previews of recent activity from appearing when I double tap the home button

    As others have mentioned, you are seeing the Multitasking bar which is a feature of iOS:
    Understand multitasking and background activity on your iPhone, iPad, or iPod touch - Apple Support
    If left alone long enough and after running many apps over a period of time, iOS will eventually close off the app(s) that have not been used for the longest period of time to gain back memory to be used to run other apps that are currently not in Multitasking. There's no way to automatically prevent an app from appearing in the Multitasking bar nor any way to shut them all down at once. You can easily close them off manually as needed by swiping up on the app's displayed screen shot (NOT the lower icon). Multitasking is by design and cannot be changed/modified.

  • I am using a Microsoft Natural keyboard and when i use the close button on Ver. 5.0 or newer it closes the whole screen not just the active tab is there a fix for this

    I am using a Microsoft Natural 4000 Keyboard
    IF I update to Mozila 5.0 when i use the close button it shuts down the whole browser nut just the active tab
    Is there a workaround for this because I like the close button feature

    Could you try disabling graphics hardware acceleration? (I'm having trouble determining from your "More system information" whether it's enabled or disabled.) Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    orange Firefox button ''or'' classic Tools menu > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    If you restart Firefox, is the issue resolved?

  • How to activate the illustrator active document?

    I have developed a javascript using pathItems for to validating the .eps file. If i run the script via "illustrator cs3", at the time of script(.js) running
    stage, the illustrator active document goes to deactivate mode(not visible like hanging). After running the script, the document comes to an active mode like default view. I need to activate that illustrator active document(like default view) during the script running stage. Kindly advise me the possibilities and solution via scripting. This is for windows operating system.

    You probably set up your main dialog window in "dialog" mode - dialogs are modal which means that they are exclusive and block everything else. You probably want a "window" type. See JavaScript tools guide CS3 page 97
    example:
         var mainWindow = new Window("window",undefined,"This is the window title");
         mainWindow.add("statictext",undefined,"this is some static text inside the window");
    Cheers,
    Mike

  • Running 10.8.3 on an Intel iMac 27'. The Finder keeps grabbing over 100% of the CPU which seems to stop me from opening any folders. Only quitting the Finder from Activity monitor resets it to normal. Any ideas?

    My Finder keeps grabbing over 100% of the CPU which seems to stop me from opening any folders.
    Only quitting the Finder from Activity monitor resets it to normal.
    Any ideas?

    Nope, I don't have a "/Users/charon/Library/Mobile Documents" directory, let alone anything underneath it. Is that like an iCloud thing or something?  I tend to avoid the Apple-supplied services when I can (I don't use iTunes either unless I can help it).
    As an update, as of about two days later this problem seems to have solved itself. Possibly sleeping and waking did something to it (though that seems unlikely given how many times I rebooted), or else there was just some long-*** kernel process that finally worked itself out.  But my system CPU is back down to normal and the cursor freezes are gone.
    ??? it is a mystery! ???

  • ITunes not working on my computer each time open iTunes appear a window " iTunes has stopped working close the program "

    Hi, I have a problem with iTunes on my computer each time when try open iTunes appear a window " iTunes has stopped working... close a program " someone can help me how fix it.

    See HT203206: iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • How to get the filename of the current active document in InDesign CS4?

    Hi,
    If I open a document from File->Open, I can get the document's file name using IOpenedFileInfo->GetOpenedFilePath().
    But, if I create a new document and perform File->SaveAs, GetOpenedFilePath is returning invalid IDFile reference.
    What is the right way to get the active document's file name?
    Thanks,
    VSP

    You can try this:
         IDatabse * db = ::GetDatabase(theDoc);
         IDFile *  sysFile = db->GetSysFile();
         PMString docName = sysFile->GetFileName();
    Good luck

Maybe you are looking for

  • Error installing MaxDB 7.6.03.09 on windows 32 bit on NW70 SR2 sapinst

    MaxDB experts, Hello.  I am trying to install SAP NW70SR2 (JAVA AS) on MaxDB 7.6.03.09 with windows 32 bit OS.  Brand new install, JAVA AS central system. Our problem is in the SAPINST phase: Install database server software I see this in the sapinst

  • PL/SQL Packages and Types Reference

    I need information about the owa_ packages. It should be in PL/SQL Packages and Types Reference, but in the 9i Documentation there is nothing about these packages and i cant find this Documentation for 10g on OTN. Who can help me???

  • Install and Configure GCC on Solaris 10 X86

    Hi All, I did get gcc from sunfreeware and I install it in my Solaris 10: it is installed in: /usr/local and I have this structure in local: bin doc include info lib libexec man share but when I try use gcc shell report this: # cat > test.c #include

  • Create a chain with abap

    We have a problem with the current executions of a chain, and we have thought about creating a new chain every time that a abap program was called. We know that a cube and all the parametrization can be created with abap developments. And we don't kn

  • Why does my background pic look larger than it should and is not as clear as the original?

    When islet a pic as background it says I can adjust size, but cannot in fact the pic gets larger and not as clear, this started with IOS7