How to get notified when ever I select any frame (any page item) ?

I have added a observer class in my plugin which derives from ActiveSelectionObserver.
But my observer constructor is not getting called when i select a page item. (In short, I am not getting notified about the selection)
below is my code:
class CSDTSelectionObserverImpl : public ActiveSelectionObserver
public:
  CSDTSelectionObserverImpl(IPMUnknown *boss);
   virtual ~CSDTSelectionObserverImpl();
protected:
   virtual void    HandleSelectionChanged (const ISelectionMessage*);
   virtual void HandleSelectionAttributeChanged(const ISelectionMessage* selectionMessage);
CREATE_PMINTERFACE(CSDTSelectionObserverImpl, kCSDTSelectionObserverImpl)
CSDTSelectionObserverImpl::CSDTSelectionObserverImpl(IPMUnknown *boss) : ActiveSelectionObserver(boss,IID_ICSDTSELECTIONOBSERVER) { }
CSDTSelectionObserverImpl::~CSDTSelectionObserverImpl() { }
void CSDTSelectionObserverImpl::HandleSelectionChanged(const ISelectionMessage* selectionMessage) { }
void CSDTSelectionObserverImpl::HandleSelectionAttributeChanged(const ISelectionMessage* selectionMessage) {  
if (selectionMessage && selectionMessage->WasSuiteAffected(IID_ILAYOUTSELECTION_ISUITE))
Also, In my .fr file, I have added below:
AddIn
  kDocBoss,
  kInvalidClass,
    IID_ICSDTSELECTIONOBSERVER, kCSDTSelectionObserverImpl,
Do I need to implement the ILayoutSelectionSuite as well to get the notification on page item selection or implementing Observer via ActiveSelectionObserver is sufficient?
Please help.

I tried below in debug mode , but it gave me error while execution (when the line of code was called by in-design)
InterfacePtr<ILayoutSelectionSuite> iLayoutSelectionSuite(fCurrentSelection, UseDefaultIID());
        if (iLayoutSelectionSuite == nil)
            break;
iLayoutSelectionSuite->SelectPageItems(selection,Selection::kReplace,Selection::kDontScrollLayoutSelection); // Error
So I was not able to get the UIDList of the selected page items, hence I used below code and this is working.
  InterfacePtr<const IIntegratorTarget> iIntegratorTarget(iLayoutSelectionSuite, UseDefaultIID());
        std::auto_ptr<IIntegratorTarget::TargetSuiteCollection> selectionSuites(iIntegratorTarget->GetTarget(ILayoutTarget::kDefaultIID));
        for(IIntegratorTarget::TargetSuiteCollection::size_type i = 0; i < selectionSuites->size(); i++)
            ILayoutTarget* target = (ILayoutTarget*)selectionSuites->at(i).get();
            if(!target)
                continue;
            selection = target->GetUIDList(kDontStripStandoffs);
But it would have been much easier and logical if I can get it using IlayoutSelectionSuite or if there is some better approach ?
Please let me know.
ileleLayoutSelectio
Let me

Similar Messages

  • How to get notified when changes happen on Hyper-V host or VMs

    Is there a way to get notified on Hyper-V host or VM changes? Our intention is to notify the system-administrators on any changes.
    1. How to get notified when new VM is created (or deleted) on Hyper-V.
    2. How to get notified when any memory/CPU/disk is added (or deleted) on any VM(s).
    In general: 
    - Get notified when any changes happens to Hyper-V host.
    - Get notified when any changes happens on any VMs.
    Our target servers are Windows Server(2008, 2008 R2, 2012, and 2012 R2)
    We tried to get the notification using "Event Viewer" on different Windows servers (2008, 2008 R2, 2012, and 2012 R2)
    We were able to get event-logs only on one of our 2012 R2 server as described below on creation/deletion of VMs (on another 2012 R2 server, we did not got any such event, Is there any setting required on host computer to get Hyper-V event-logs in "Event
    Viewer"?)
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          12/18/2014 1:21:45 AM
    Event ID:      13002
    Task Category: None
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      HPHyper-V.COMPUTERNAME.lab
    Description:
    A new virtual machine 'TestVM' was created. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          12/17/2014 10:57:01 PM
    Event ID:      13003
    Task Category: None
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      HPHyper-V.COMPUTERNAME.lab
    Description: The virtual machine 'TestVM' was deleted. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)

    Thanks for your reply,
    Just to make it more clear:
    In our environment we have enabled Hyper-V on following Windows servers: 2012 R2, 2012, 2008 R2, 2008. The environment is very dynamic, VMs are getting created and deleted very frequently. Our intention is to get notified by any means on VM creation/deletion,
    currently we are relying on event-logs (we are OK with any different mechanism for such notification if there exists, i,e other than event-logs)
    We were able to get event-logs only on few of our 2012 R2 server on creation/deletion of VMs. On another 2012 R2 server, we did not got any such event (do we need to make some settings on 2012 R2 to get events? If yes, what are those settings).
    Also we are not getting any such event of VM creation/deletion on our Windows Server 2012, 2008, 2008 R2. Is there any setting required on hese host computer to get Hyper-V event-logs in "Event Viewer" for VM creation/deletion?

  • How to get notify when new Email comes in...

    hi, any idea on how to get notify from phone when there is new email comes in to mailbox with specific key words in the subject, says like "urgent" ..... what are the components that i need to integrate with??
    messaging version 6.2

    Hi,
    Off the top of my head there are two ways:
    1. Use the ENS service to notify when messages arrive - filter out the ones you want. This is going to require some programming and a way to send the notification to the phone.
    http://docs.sun.com/app/docs/doc/819-2655
    2. Use a user-level sieve filter to send a copy of the messages you want to another email address which triggers an SMS.
    http://docs.sun.com/app/docs/doc/819-2650
    Regards,
    Shane.

  • How to get notify when system get wakeup call and gets connected to internet?

    Hi,
          In my project I need to get notify when system wakes up from sleep and also while system gets connected to WAN or LAN.Can any one please give suggestion on this.Thanx:).

    Your entire Utilities folder and/or its contents was deleted?
    If so, I suggest performing an Archive & Install selecting preserve user and network settings. If not and you don't know exactly what your boy deleted (have you checked the Trash?), performing an A&I will take care of everything known or unknown at once.
    http://www.thexlab.com/faqs/archiveinstall.html
    Now is also a good time to create a backup - preferably a bootable clone backup of your entire hard drive saved to an external firewire drive used for backup purposes only.
    And I also suggest creating a computer login account for your boy WITHOUT admin privileges and disable automatic login for your admin account which will require manually entering your log in password for your admin account during a computer startup, restart and with Fast User Switching.
    Before stepping away from your Mac or whenever it will be used by anyone that is unattended by you, log out from your account.
    Keep the install package for your Mac in a safe place but in a location that is not known by your boy.
    http://www.apple.com/macosx/features/family/

  • How to get notified when cache items disappear?

    Let's say I have two JVMs in a partitioned cache with no backups (backup_count=0).
    As cache items are inserted, roughly 50% of the items go to JVM1 and JVM2 each.
    If JVM2 has a violent death, all the cache items in JVM2 are lost forever. Is there a way to know in JVM1 which cache items are lost? I tried using a MapListener in JVM1 on the backing map but it doesn't get notified when JVM2 dies. Using MemberListener would tell me that JVM2 died but it wouldn't tell me which cache items were lost.
    Is there a way to know the cache items that were lost in the above scenario?
    Thanks
    Ghanshyam

    Ghanshyam,
    Unfortunately currently there is no generic functionality that would allow you to know what entries were "lost".
    Regards,
    Gene

  • How to get notified when another device is tracking my iphone

    I will like to know how can get an email when someone else is tracking my iphone from another device

    Don't give anyone else your Apple ID password and they won't be able to track you.

  • How to get notified when any page is selected from Pages palette ?

    Hi all,
    I need to get the notification whenever any page is selected (set to active) form Pages palette. Facing pages may be selected or not seelcted. Can anyone suggest how should I attach the observer to get this notification.

    Hi Daves,
    The kPagesPanelWidgetID widget notifies IID_IUIDLISTCONTROLDATA with kUIDListItemAddedMessage and kUIDListItemRemovedMessage.
    Dirk

  • How to Get Notified When Someone Replies - Video

    You may not be able to visit the Forum every day, to check if your post has been answered or not.
    There are two ways to follow conversations in the community.
    a. The first way is to while posting on the forum:
    While you are making a post, there is a box on the right hand side of the screen under Subscriptions that says, Email me when someone replies.
    1. Check the box before posting; you will be subscribed to the thread.
    b. The second way to follow the conversation is to sign up from the thread that interest you:
    If you are interested in a conversation/thread on the Forum, you can sign up for an email alert so you will know when something has been posted.
    Here are the step-by-step instructions.
    1. Go to the thread that interests you.
    2. At the top left of the screen, there is Topic Options with a downward arrow button.
    3. Hover over the downward arrow button.
    4. Choose Subscribe from the drop-down.
        There is an RSS Subscribe option   in the drop-down as well, please do not select that in this case.
    That is all there is to it! We’ll send you an email when someone replies to your post. 
    If at any time, you want to discontinue the e-mail notification for a particular thread, you can perform the following steps to do so:
    1. Go to the thread that you want to stop the notification from.
    2. At the top left of the screen there is Topic Options with a downward arrow button.
    3. Click on the downward arrow button.
    4. Choose Unsubscribe. (“Unsubscribe” option shows only for those threads, which you have subscribed to already).
    The whole process is demonstrated in this video - please take a look to get a clearer explanation.
    It might be inconvenient for you to navigate back to a topic you started or a reply you posted, every time you want to check for updates. To learn how to easily find out posts you have created - check the following topic:
    How to Find Your Own Posts Easily

    I figured out the solution myself.
    You need to obsever ICmdHistory of ICommandProcessor. You will be notified whenenver user does undo or redo.

  • How to get notified when InDesign Application hides (Mac)

    Hi!
    I need to modify the behavior of a secondary process  I launch in my plugin when the InDesign app hides (from the dock or using the cmd+h key combination).
    I was trying to add an observer and callback using the Notification Center (local) though I can't find a way to get the main or key window to do so.
    Anyone has any pointers as how I can do this?
    Thanks!

    As Dirk rightly pointed out, you need to place an observer in the kAppBoss and observe on the IID_IAPPLICATION protocol.
    What you should do is just place an interface as an addin in the kAppBoss and give it an implementation (you don't need to create a observer boss class as you have done).
    In startup call the autoattach of your observer, for ex
      InterfacePtr<IApplication> app(gSession->QueryApplication());
      InterfacePtr<IObserver> iMyObserver(app, IID_IMYOBSERVER);
                        iMyObserver->AutoAttach();
    In the autoattach method of your implementation class, remember to pass your observers interface ID to the attachobsever method of the ISubject
    for ex
    AttachObserver(this, IID_IAPPLICATION, IID_IMYPOBSERVER);
    Then in the update method you will get properly notified of the suspend and resume of application
    This should fix your problem.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • How to get notified when new comment  is left on blog?

    I'd like to be notified (preferrably by e-mail) when a new comment is left on my blog. Is that possible in iWeb '09?

    When comments are added to your site, a blue dot appears in the iWeb sidebar next to the blog page if you are connected to the Internet. iWeb's icon in the Dock will also display a red badge containing the comment count. ...But no email alerts.
    For those, instead of iWeb's blog, you may want to consider using the free, web-based Posterous which provides email notifications aswell as posting blog entries via email:
    http://blog.posterous.com/new-on-posterous-daily-and-wee
    As an alternative to setting up a basic hyperlink to your external blog, you can link to it from iWeb's navigation bar:
    Create a blank internal page titled "Blog" (actually you can name the page whatever you want.) Then in that Blog page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://www.yourblogname.com"; // change this to your own URL
    </script>
    ...Once published, clicking on "Blog" in the navbar will immediately redirect to your external Blog page. (Thanks to Cyclosaurus for the code).

  • How to get notified when new java SE update is released

    We need to track security and performance bug fixes and features introduced in each new Java release that comes out.  Is there a linked that we can monitor or feed that updates us when a new java version comes out? Do we need a support contract to receive these updates?
    http://www.oracle.com/technetwork/java/javase/7u-relnotes-515228.html
    Thanks,
    Amer-netflix

    Have you look at http://www.oracle.com/us/syndication/feeds/index.html  ?

  • How to get notified when an update is available

    Hi I am a bbz30 user from india. I just purchased the beuty a month back. I have a question I am not getting the updates automatically through the BlackBerry world I have to manually check each day each time doing a auto refresh.
    I have been a regular at crackberry and also waited for 2 good odd days post reading a new update roll out still no notification or a pop up. At the end all I did was manually refreshed my world and updates were there..
    Is this usual with BlackBerry or its my luck that updates are not hitting my phone???

    It's not uncommon for the updated app notifications to take a day or so after they are released.
    Usually I read on twitter or the forum that  an update is available and I manually check App World and there it is...
    Sometimes, on lesser known apps, I will see a notification first.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can I get notified when someone is tracking my iphone

    I need to know how to get notified when someone is tracking my iphone?

    Have you provided your iCloud ID and password to anyone? You can also go into Settings>Privacy>Location Services>System Services>Status Bar Icon, and that will show the location services icon in the status bar if something is using location services on your device.
    However, if you have provided your iCloud ID and password to someone, or you have not acknowledged an invite to Find My Friends, then no one could be tracking you. But if you did provide that information, if someone does log into Find My iPhone, you should get an email at your iCloud ID mail address that someone has logged into Find My iPhone.

  • Get notified when art object is deleted or added

    Hi, anyone know how to get notified when user added or deleted an art object?
    I searched the SDK in and out and found nothing.
    Thanks,
    Don

    If you have art you wish to keep track of, the way to do it is using ArtUIDRefs (AIUID.h). You can ask art for a unique identifier and later on ask for the handle that belongs to that UID. Its not too hard at that point to determine if it still exists or not. Note that you will probably need to use AIArtSuite::ValidArt() if you get a handle back. This tells you if the handle is actually on the canvas or not; handles persist even when deleted becuase the delete could be undone.
    So if you're tracking a small number of particular handles, its quite easy to know whent hey're deleted. If you're trying to watch a huge number of art handles though, you're going to pay a heavy price. While I wish they had better ways to deal with this, the truth is the SDK isn't designed for that kind of plugin. You can make it work, but you're kind of out on the edge of what they'd planned.

  • How do i get notified when someone uses mye apple id to sign into imessage?

    I suspect someone close knows the password to my apple id account. I should change the password, but i want to know if, and how i am notified when that person signs on to imessage with iphone/ipad?
    Do i get an email or do i get a notification on my phone?
    Best regards
    Lonyl

    Ok, i thought Apple would send an notification to the master device or the other devices when an unknown device connected. Ok, in my effort to catch the criminal, i hoped i got an notification in the top of my iphone screen, then i would go straight to the person i suspect and catch him/her bare handed
    Best regards
    Lonyl

Maybe you are looking for

  • Some times Safari crashes and quits the first time I click a link

    Hello there As the title says, some times Safari crashes and quits the first time I click a link on a webpage (after opening one or more bookmarks). Upon reopening Safari, everything is fine. Is there a fix?

  • Am I just crazy? Didn't there used to be a color picker?

    So, as far as I can remember, there was a tool in Leopard that let you hover over any color in any application and find it's code to replicate it... I thought it was called Color Picker and looked like a little eyedropper with a color wheel behind it

  • Unsupported Version error when trying to run Web Services Tutorial example

    Hi there, I'm trying to run the first example from the Java Web Services Tutorial and get the following error when I type 'asant build' in my Command Window. Buildfile: build.xml BUILD FAILED java.lang.UnsupportedClassVersionError: com/sun/tools/ws/a

  • KKS1 Detailed Spool not going in mail to recepients

    Hi All, I have scheduled KKS1 in background. There are 2 spools which are getting generated - 1. 1 Page report and 2. Detailed report. If I goto SM37 I can see only 1 page report, but in SP01 i can see both. The issue is system is sending only the 1

  • Free anti virus software for nokia 5530

    Does anyone know where you can download free anti virus software for the 5530? i've tried a few sites (even trend micro) but none of the software i've downloaded is compatible with my phone