How to check selected content on page

Hi all,
I would like to create plugin that works with selected content on document. Plugin should do following: user selects some frame, graphic content that is placed on document. Than he opens my plugin and click on button. After button click I must check if something is selected (it would be only graphic items, not table and text), then I would like to get information (on which page is placed, is in the frame picture, dimension of frame...) from selected item. So I would like to ask you what is the best approach for that.
Right now I have selection manager and from that I get ILayoutSelectionSuite and dont know what to do next, I have been looking thru adobe documents, but didnt find any article about it...
thx

Hi all,
I have a little problem with calling my selection suite. I have following hierarchy:
In STButtonAction I handle button clicks, when user select button I would like to chech is is something selected and if yes, than I would like to get from that selection some information about it. I placed in ASB virtual method called MyTestMethod(ISelectionManager *myManager), in Layout CSB I wrote its implementation:
void STSuiteLayoutCSB::MyTestMethod(ISelectionManager *myManager)
  InterfacePtr<IGeometrySuite> itemGeometry(myManager, UseDefaultIID());
          PMRect bounds = itemGeometry->GetSelectionBounds() ;//what to use here??
  cout << "Something just happend...";
Now I have 2 problems, first: when I get Interface pointer to IGeometry suite, it dont know its method GetSelectionBounds (I have noticed, that this method is virtual, so It does nothnig and somewhere must be its body writen...) any tips, how to get this working??
And my second problem is, How to call my suite?? When I try something like this:
Utils<ISelectionUtils> iSelectionUtils;
          if (iSelectionUtils != nil) {
                         ISelectionManager* iSelectionManager = iSelectionUtils->GetActiveSelection();
                         if (iSelectionManager != nil)
                                             InterfacePtr<ISTSuite> iLayoutSuite(iSelectionManager, UseDefaultIID());
                                             if (iLayoutSuite !=nil)
                                                                 iLayoutSuite->myMethod(iSelectionManager);
It tells me that, ISTSuite was not declared in this scope... I think, that I am doing something wrong...
thx for any tips

Similar Messages

  • How to check JNDI contents after 9iAs startup?

    Dear all:
    How to check JNDI contens after 9iAs server startup ?
    Does the 9iAs have JNDI tree can show all JNDI contents.

    Hi,
    define ValueChange listeners on the component and when the user hits the command link or button to navigate off t he page, check if it has been changed (the listeners would set a bloolean variable). For this to work, the navigation action needs to be handled by the bean too.
    Frank

  • How to check the contents of MCVBAK table?

    Hi all of you,
    I am using MCVBAK table for extraction using LIS.  The problem I am facing is when I am running the init load in BW for my IS S511, it is successfully running but in the monitor screens it says only 1 from 1 record. I thought that there are no records in the table MCVBAK so I wanted to make sure if there are really no records in MCVBAK table.  
    So I went to R/3 gave the T.C SE11 and entered the table MCVBAK to check its contents.  But in the MCVBAK table what I find is the graphics button and contents button are invisible.  My question is
         How to find the contents of the table MCVBAK?
    Please help. 
    Thank you,
    Tristan.

    Hi TR,
    Yah, you need to check VBAK Table at SE11, Things that start with "MC...." are usually structures. Anther point, I want to mention is, When you schedule as Init load at the BW side, the system will get the data from S511 table(which is Information Structure table). So, you have do statistical setup first (at eg for sales Tcode is oli7) which will copy the records from VBAK table to your Information Structure (i.e S511).Only then, you can perform Init Load. Hope this Info help!
    Regards,
    Vj

  • How to check the contents of Control file, Log file & Parameter file

    Can anybody help me how i can check the contents of Control file, Log file & Parameter file.
    Arif

    OK ...
    Parameter file:
    It will normally be in the $ORACLE_HOME/dbs directopry. It could be aan init{sid}.ora or a spfile{sid}.ora ... do not edit an SPFILE as yu could corrupt it.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref434
    If it's an init{sid}.ora, use any editor to see the actual content.
    If it's a spfile{sid}.ora, use one of V$PARAMETER, V$PARAMETER2, V$SYSTEM_PARAMETER, V$SYSTEM_PARAMETER2 as aappropriate (read the Reference manual to get an idea about when each is appropriate)
    Control File:
    You should not edit a control file. It consists of many areas, as described here http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#i10135 and each are is interrogated by V$views as given in the reference manual. The following V$views all deal with some aspect of the control file or provide info about the control files or the contents of control files:
    V$ARCHIVE_DEST
    V$ARCHIVED_LOG
    V$BACKUP_ARCHIVELOG_DETAILS
    V$BACKUP_CONTROLFILE_DETAILS
    V$BACKUP_CONTROLFILE_SUMMARY
    V$BACKUP_COPY_DETAILS
    V$BACKUP_COPY_SUMMARY
    V$BACKUP_CORRUPTION
    V$BACKUP_DATAFILE
    V$BACKUP_DATAFILE_DETAILS
    V$BACKUP_FILES
    V$BACKUP_PIECE
    V$BACKUP_REDOLOG
    V$BACKUP_SET
    V$BACKUP_SET_DETAILS
    V$BACKUP_SPFILE
    V$CONTROLFILE
    V$CONTROLFILE_RECORD_SECTION
    V$COPY_CORRUPTION
    V$DATABASE
    V$DATABASE_INCARNATION
    V$DATAFILE
    V$DATAFILE_COPY
    V$DATAFILE_HEADER
    V$DELETED_OBJECT
    V$LOCK
    V$LOG
    V$LOG_HISTORY
    V$LOGHIST
    V$OBSOLETE_BACKUP_FILES
    V$OFFLINE_RANGE
    V$PROXY_COPY_DETAILS
    V$PROXY_COPY_SUMMARY
    V$PROXY_DATAFILE
    V$RMAN_BACKUP_JOB_DETAILS
    V$RMAN_BACKUP_SUBJOB_DETAILS
    V$RMAN_CONFIGURATION
    V$SESSION
    V$TABLESPACE
    V$THREAD
    V$UNUSABLE_BACKUPFILE_DETAILS
    3) Log Files
    The contents of the log files are viewed using LogMiner - read Chapter 11 of the Oracle Utilities manual

  • How do you serch content in pages

    I cn I search content of pages 

    Apple Discussions are a bit difficult to navgate in the iOS / iWork options. You found your way into the OSX iWork area, so you can see why you got an answer for the other platform. It also would help if you would indicate your platform in your post. Your thread has been moved to the iOS area.
    Jerry

  • How do I Include content (another page) in a WEeb [page

    I need some help. I’ve been using MS Front Page for the
    last 6-7 yrs. In MS FP there is a way to include an html file into
    another html file. Example: I have a Web site that has 10 pages.
    Each page is made up of a 3 column table with a menu file in the
    left hand column of the table. I want the menu to be present in all
    10 pages. In MS FP you can add that menu (html file) in the table
    and in all 10 pages. It is called Include, content, page. (Page
    being the menu file) When you make changes to the menu file it is
    changed though out all 10 pages. It’s is a dynamic content.
    My question is how is this done in Dreamweaver?

    Search DW's F1 Help for "server-side include".
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "FoxWolf" <[email protected]> wrote in
    message
    news:echrtf$6ie$[email protected]..
    >I need some help. I?ve been using MS Front Page for the
    last 6-7 yrs. In
    >MS
    > FP there is a way to include an html file into another
    html file.
    > Example: I
    > have a Web site that has 10 pages. Each page is made up
    of a 3 column
    > table
    > with a menu file in the left hand column of the table. I
    want the menu to
    > be
    > present in all 10 pages. In MS FP you can add that menu
    (html file) in
    > the
    > table and in all 10 pages. It is called Include,
    content, page. (Page
    > being
    > the menu file) When you make changes to the menu file it
    is changed
    > though out
    > all 10 pages. It?s is a dynamic content. My question is
    how is this
    > done in
    > Dreamweaver?
    >

  • How to print selected non-adjacent pages?

    I need to print out a few hundred pages using both sides of the paper (as my printer doesn't do 2-sided). Before, in Word for Mac, I could print a large range of discontinuous uneven pages all at once (selecting a range of 1, 3, 5, etc).-- and simply turn the pile of pages to print out the evens (2,4,6 etc). Very frustrated now since "upgrading" to Lion 10.7.2. as it means not only that hundreds of my Word for Mac documents are unreadable, but also that I can't print large ranges og discontinuous pages in Pages. PLease help -- I'll go crazy -- and wear out my printer drawer -- if I have to manually turn each and every page...for hundreds and hundreds of pages....

    Even if you don't have two sided printing, check to see if you don't have a manuel setting for it.
    Or, you could print all odd pages, then even:

  • How to pass selection from one page to form in another?

    Hi all,
    I have an "Events" page that is linked to an "RSVP" form page. On the events page, there are links under each listed event that say "RSVP for this event" that point to the RSVP page.
    The RSVP page is a form where you enter details and choose the event you are RSVPing for in a drop down menu (populated using a recordset because this all needs to be tied into an admin section of the site)
    How can I click on the RSVP for this event link and then have it choose the right event in the menu without having to remember what event and manually doing it yourself? For example, I want to go to event 2, I click the link to RSVP and in the drop down, event 2 is already shown as the first selection.
    I should mention that I used a Nextensio form for the RSVP page and manually built the Events page with a repeat recordset SB.
    Thanks

    Hi John,
    if you switch to Code View, you´ll usually see something like:
    ...following the option´s value attribute.
    Please try with changing this example to:
    ...and don´t forget to backup the original page ;-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • HOW TO CHECK SELECTIONS IN iTUNES

    How can I check the little boxes next to all the songs I have in iTunes AT THE SAME TIME? I could do this easily on the earlier version I had of iTunes, but I do not see any way to do it on the latest version, which I was foolish enough to "update" to. I would really appreciate knowing.

    eatshiteveryday wrote:
    Thank you very much. It's "command-click," by the way. I wonder why something as ordinary and useful as knowing how to do this is so hard to find out by looKing at the menus on iTunes.
    You are welcome!  Glad it helped.
    CMD-click, thanks, I will add that to my limited store of Mac knowledge.
    Yes, anything with the modifier keys is always slightly mysterious.  But you can do the same thing with Edit > Select All, and then click any empty box.  It is slightly less efficient, but possibly easier to remember.

  • How to check the content of cluster table smw3_bdoc1(00)

    Hi!
    I want to check the business partner changes sending via bdoc from crm to sap.
    For this i want to look into the bdocs.
    I think it's the cluster-table smw3_bdoc1.
    'Cause i don't know which is the name of the structure in the clustd-field i use:
    data: dirtab type table of cdir,
          wa_dirtab like line of dirtab.
    import directory into dirtab from database
                                      smw3_bdoc1(00)
                                      id '49600667F6980046E1008002AC18C6E5'.
    if sy-subrc = 0.
      write  / 'Directory:'.
      loop at dirtab into wa_dirtab.
        write: / wa_dirtab-name,  wa_dirtab-otype, wa_dirtab-ftype,
                 wa_dirtab-tfill, wa_dirtab-fleng.
      endloop.
    else.
      write 'Not found'.
    endif.
    So i've found the directory object "BDOC_BODY".
    Now i want to read the content with:
    data:   iclust type string.
    loop at itbdocid.
         IMPORT BDOC_BODY = iclust FROM DATABASE smw3_bdoc1(00)
                                        ID itbdocid-bdoc_id.
    endloop.
    An error message raises with...
    "error importing the object BDOC_BODY"
    The dump tells me that object types of BDOC_BODY and iclust doesn't match.
    I've changed the field iclust to type xstring... but it's the same error.
    If somebody here can help... Thanks a lot!
    Cheers, Ingo

    Hi,
    Thanks, I can see the data now.I am expecting that data should display in the 2LIS_VDKON extractor.There are two records for particular condition type.Item 10 and Item 20, but in RSA3, it is showing only one record for Item 20 and not showing for Item 10.
    I have cleaned and filled the setup tables, but still no luck.
    Can you please guide me, where else to look?
    Thanks
    Priya

  • How to check links on a page without creating a site?

    Setting up a site in Dreamweaver is a chore when all I'm developing is one html landing page, an html email, mockup presentation, testing source code, ...
    Is there a any way Dreamweaver can check absolute urls to external sites or local relative image urls aren't broken without having to config a site?
    Or maybe there's a service I can paste the html into and it'll tell me if links are broken?
    Thanks,
    DAN

    Link Validators
    http://www.lithopssoft.com/hlv/index.html
    http://www.linxexplorer.com/linxexplorer.html
    Nancy O.

  • Re: Question: How to check in content with WebService

    Hi,
    I am trying to check-in using 'SOAP with Attachments', and am getting this error message
    "Content item 'SoapUpload4' was not successfully checked in. The content item must have a primary file"...
    In the soap request i am using
    <idc:file name="primaryFile" href="c:/temp/test.txt"></idc:file>
    if i send content through 'filecontent', i am able to check-in successfully.
    But my requirement is to send a file as an attachment toCHECKIN_UNIVERSAL as the file i have to send is huge.
    did any one came across this problem?

    This is exactly the same issue I am seeing when I try to use SOAP with attachments(CHECKIN_UNIVERSAL) to check-in an item to the content server.
    Did you find any solution for this? Please share.

  • How to check BI Content Level

    HI,
    I've been having an issue and i need to apply OSS note 955276.
    The note explains that the new BI features has been delivered with BI 3.5.3 Add-On SP 02.
    When i checked on our system level, its as follow :
    1.Software component :PI_BASIS
       Release:2005_1_640
       Level:16
       Highest Support Package:SAPKIPYJ6G
    2.Software component :SAP_BW
       Release:350
       Level:22
       Highest Support Package:SAPKW35022
    3.Software component :BI_CONT
       Release:353
       Level:16
       Highest Support Package:SAPKIBIFQ6
    How do i determine if  BI 3.5.3 Add-On SP 02 is part of the support package in the current system?
    Appreciate if someone could assist in this.
    Thank you.

    Hi,
    Check the details in System..
    Login to system->System>Status>Under SAP System Data tab click on Component Information i.e. Icon then you see the information.
    And also check in the following link.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/c0994772-53d7-2a10-7eb3-a8cee3cf5c35 [original link is broken];jsessionid=(J2EE3417800)ID1056326050DB00319990633542005625End
    Thanks
    Reddy

  • How does CQ map content (cq:Page) to its resourceType under jcr:content (cq:PageContent)?

    I have a /sling/servlet/default servlet registered with selector defined as "myselector" to serve both GET and POST requests. The component pointed to through resourceType also has a script called myselector.jsp. When the url is http://.../content.myselector.html, requests are always served by the servlet, but if the url is http://../content/_jcr_content.myselector.html, then myselector.jsp will  process the request. Just wonder what's really going on here. And if the custom servlet type is NOT /sling/servlet/default, what's going to happen in terms which will be used to process requests? It seems some magic logic is applied to map from resource (content) to the rendering servlet or scripts. Any explanation is appreciated.

    cq:Page has own set of scripts which you can find under /libs/foundation/components/primary/cq/Page
    See http://dev.day.com/content/kb/home/cq5/Development/CQ5Templates/CQ53HowToAddACustomPageExt ension.html for details, hope this will help.

  • How to check the contents of my time capsule back up

    My new Time Capsule has treid to back up my MAcBook since yesterday. In the Time MAchine list, I can find the folder but not the size of the back up or any other details which files etc. were backed up. The symbol in the upper part oif the sreen (what is hte name) is working or not.
    Time Capsule is also quite hot.
    I have connected the Time Capsule with ethernet to MacBook, not to my modem. Is that correct?
    BR maritafromhelsinki

    You also access it from the finder just double click on the time machine icon then you can see the backups on the drive right click on a backup and select get into.  Or you can open airport utility and click on the manual button, when your get to the next screen click on the disk up top then click on the time capsule in the window it will get you info.

Maybe you are looking for