How to get UIDRef of the selected page item in indesign cs3

Hi,
    I want to get the UIDRef of the selected page item like Rectangle Frame. Can you show me the complete code snippet to get the UIDRef of selected Rectangle Frame. I need this UIDRef for getting the geometric bounds properties(width and height) of the selected rectangle frame to display the user in dialog box.
Regards,
K.Saravanan.

Hi,
UIDList selection;
InterfacePtr<ISelectionManager> pSelectionManager(Utils<ISelectionUtils>()->GetActiveSelection(), ISelectionManager::kDefaultIID);
if(pSelectionManager == nil){
break;
InterfacePtr<ILayoutTarget> pLayoutTarget(pSelectionManager->QueryConcreteSelectionBoss(kNewLayoutSelectionBoss), ILayoutTarget::kDefaultIID);
if(pLayoutTarget == nil){
break;
selection = pLayoutTarget->GetUIDList(kDontStripStandoffs);
Then, you can use this interface "IGeometry" to get information about spline size.
InterfacePtr<IGeometry> pGeometry(selection.GetRef(i), IGeometry::kDefaultIID);
if(pGeometry== nil){
break;
PMRect splineBounds = pGeometry->GetStrokeBoundingBox();
PMReal width = splineBounds.Height();
PMReal hight = splineBounds.Width();
Regards,

Similar Messages

  • How do i get current active or selected page item's  reference

    Hi all,
    How do i get current active or selected page item's  reference .
    Please help me

    You can implement a selection suite for your need, this selection suite will be placed into the kLayoutSuiteBoss.
    In this selection suite place a method to give you the UIDRef of the selected pageitem, which you can get by using the method "GetUIDList" of the "ILayoutTarget" interface.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • How to get rid of the Login page in Portal?

    Hi Guys,
    I have a newly developed intranet portal project for my company which does not need login no more. I hope you can help me how to get rid of the login page in portal which is I know in every application you create, there should be a login. Is this possible that I can just simply type in to the URL address bar my application then it will no longer ask for any logins? Please help! Many thanks!
    Russel

    Hi Russel,
    You can give public access to pages, applications etc. Users won't need to supply a username/password then, while you still can hide some of the pages to authorized people.
    Check the access tab for pages and the manage tab for applications.

  • How to get data on the next page in case of templates if data is more ?

    please tell me how to get data on the next page while i m using template in my first page , if data is more howw it can be displayed on the next page ?

    HI Asim,
    template is fixed we  it can't be expand . u can better to use table line it can automaticlly expending if data is more ... u can create one more page like page 2 and create a window for entire second page ..then assign it in first page (next page page2).
    regards
    kiran kumar.

  • How to get UIComponent of the selected node in af:tree with drag and drop

    Hi
    Are there examples showing how one could get a UIComponent using DropEvent to be used with a Popup showing as a custom "context menu" at the target node ?
    Right now, with dropEvent.getDropComponent, we could only get the tree.
    We like to get its selected node so that the popup shows at the node level, not at the tree level.
    Thanks

    Hi Frank
    Thanks for responding.
    We like to show on our custom "context menu" using PopupHints (not using facet name contextmenu) with 3 commandMenuItems.
    Since component id is needed by PopupHints to place this custom "context menu", we tried
    RichTree dropTree = (RichTree)dropEvent.getDropComponent();
    alignId = dropTree.getClientId(context);
    // alignId = pt1:pt_region1:1:pt1:pc1:navTree
    getClientId returns us the tree id and hence the context menu is placed next to tree.
    We like to place the context menu next to a target node of the tree when dragging and dropping.
    But we couldn't figure out how to get that node id.
    In your suggestion,
    List dropRowKey = (List) dropEvent.getDropSite();
    RichTree dropComponent = (RichTree) dropEvent.getDropComponent();
    dropCompoent.setRowKey(dropRowKey);
    how do we then get the id of this node then ? What's the method ?
    Thanks Frank

  • How to get UID of the selected PageItem

    Hi All,
    I have placed a image in a document . I select the image ,now i need the UID for the selected pagitem( i,e image).How to get it?
    Thanks
    Sakthi

    Hi,
    I think you have to check Selection Architecture.
    Thanks

  • How to get rid of the little page window at the top right of an acrobat page

    In the last 6 months or so, a little window image of the Acrobat page has started to appear in the top right corner of the page
    This is a total menace as it can cover part of the text as per pic, and also covers the find tab. OK, you can x it off but I want to find a way to totally kill it. I cannot see any circumstance where the mini-window will be useful. Maybe it does have some useful functions, but I cannot think what they could be. I cannot imagine why Adobe would force this on us. Or maybe I have accidentally clicked something. HELP PLEASE

    Thanks Sara - I have thought this might have something to do with it. But actually neither is selected (see below). Whatever is selected, it is difficult to see that the thumbnail can achieve any useful purpose! Any other ideas? It seems quite unpredictable in my system - the file I took a screenshot of to post above now has no thumbnail. While a file I opened this morning does. In my view it represents a bug in X as it only appeared after I had been using X for about 3 years, making me suspect it came in with an update. And there is no way to turn it off that I can find.

  • How to get row of the selected cell  in ALV  while implementing OVS

    Dear Folks,
                    I am implementing OVS search help in ALV.When i click on cell, i can see the search help in  cell and now i can identify the colomn of the cell but i can't identify the row of the cell.Can any one tell me how to identify row of the cell in this case.
    Nirad.

    Thnx for the answer nithya.I have solved problem my self.
    DATA: elem_ovs TYPE REF TO if_wd_context_element,
            ls_data TYPE REF TO data,
            ls_index type string.
      FIELD-SYMBOLS : <ovs_data> TYPE data.
      elem_ovs = ovs_callback_object->context_element.
      ls_data = elem_ovs->get_static_attributes_ref( ).
      ls_index = elem_ovs->GET_INDEX( ).
    and this is the solution.

  • How do I get back to the first page of an application when I'm in the middle of it?

    I'm sure there's an easy answer for this, but I can't find it.  If I'm in the middle of an application, say iBook, and I want to get back to the first page of that application, how do I do it?  When I tap on HOME, I go back to the home page with all the icons.  I want to go to another page within the application I'm in?  I've been stuck in iBook for an hour.....I don't know how to get back to the first page in that application.  Thanks.

    The shelves should show the ibooks that you've got in the app i.e. your downloaded purchases from the iBookstore. At the top of the shelves there should also be a Store button (for browsing, purchasing, re-downloading books from the iBookstore), and Collections (where any PDFs that you've synced/copied into the app go).
    There is a chapter on the iBooks app in the manual, which can be downloaded from here http://support.apple.com/manuals/#ipad

  • Hw do you get rid of the 54 page terms and conditions that has no accept button at the end cant buy apps thank you

    apps store how to get rid of the 54 page terms and conditions that has no accept button at the end of the 54 pages thank you all

    Restart the phone and try again.  This should resolve the issue.  I had a similar issue not to long ago.

  • Problem in displaying selected page items in the title in Graph

    Hi There;
    I have a problem in displaying selected value of named page item in the graphs.
    Eg. I have in my worksheet a page item named "Location"; when I use "&WorksheetName &Location" in the title of worksheet it is displaying both the worksheet title and value of selected page item "Location" in my example.
    But when I use the same (&WorksheetName &Location) in the title of graph or Axis of the graph, it would show up only the name of the worksheet but not the value of page item "Location", instead it would print "&Location"
    Any idea why it is not able to reference the select page item in Discoverer graph? I am using Oracle BI Discoverer 10.1.2.1.
    Thanks in Advance,
    Regards,
    Nidhi Jethoo

    Hi Michael;
    Thanks a lot. It might not have been considered necessary but you do require, e.g in my case I am plotting Average value of a Parameter and it does make sense in including the name/value of Parameter(surface water temp/bottom watter temp) as an Axis instead of just a constant Parameter or say Average Parameter. So that user can plot the variation of different parameters by changing the page items and when user changes the value of parameter and export the graph he/she has the parameter name(actual value) in the graph.
    But I can include all the parameters (&Parameters) or all the page items(using &PageItems) in graph then why not individual page-item and individual parameter.
    I would log a SR and see what they say.
    Thanks again,
    Nidhi

  • How to get rid of the main text box in the back of the page AND move things

    I usually work in Adobe Illustrator, Photoshop, and InDesign, but am creating two newsletter templates in Pages for a colleague, since it will be easier for her. But, for the life of me, I can't figure out how to get rid of the main text box in the back of the page that is driving me crazy. I just want a nice blank page that I can do whatever I want with. AND, I can't figure out how to select things so that I can move them, like shapes and text boxes. Some things seem to move fine, then other things just sit there. I am at the end of my rope!!!

    Hi, Dylan. Welcome to Discussions.
    If you're referring to the area where you just start typing when you open a new blank document, you can't get rid of it. But you also don't have to use it. You can insert text boxes and size and position them as you desire. Just be sure they're defined as Fixed on Page. When one is full and you want to continue it to another page (or to the side), click in the blank blue box on the lower right side of the text box. That will create another box and your overflow text will flow into it. Then position it where needed.
    Also, you can create a text box the width of the page and then set it for 2 or more columns.
    When you want to send something to the back and you may want to access it again later, just use the send backward command. If you send it all the way to the back, it will be behind the main text layer (where it will be safe from acvcidental movement) but you will have to click outside the work area and then drag the pointer to the object to select it.
    Hope this helps to get you started.
    Walt

  • HT4463 How do I get back to the same page I was on?

    When I have finished reviewing an app, if I click the back arrow in the top left corner it takes me back to the first page of the category. Not very user friendly when there are dozens of pages to click through to get back to where you were. How do I get back to the same page I was on?

    This is what I mean:  The users guide gives me all these instructions.  BUT, it does not give instructions to just STOP.  I don't
    Pause a song
    Tap .
    Resume playback
    Tap .
    Raise or lower the volume
    Drag the onscreen volume slider or use the iPad volume buttons.
    Restart a song or a chapter in an audiobook or podcast
    Tap .
    Skip to the next song or chapter in an audiobook or podcast
    Tap .
    Go to the previous song or chapter in an audiobook or podcast
    Tap twice.
    Rewind or fast-forward
    Touch and hold or —the longer you hold the control, the faster the song rewinds or fast-forwards.
    View album art full-size
    Tap the album cover when playing a song.
    I don't want to pause, resume playback, restart or any of these things.  i just want to STOP.  How do I do that?

  • I have an iPhone 6 with IOS 8.1.3 and when I use the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can have the whole screen to what I am browsing?

    I have an iPhone 6 with IOS 8.1.3. When I go to the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can use the whole screen to what I am browsing?

    OOPS! Too quick on the trigger to ask that question without trying anything. Sorry. Solved it by touching the bookmark icon.

  • I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    Hi,
    You may open the original form in FormsCentral and toggle to “Page View” at the lower right corner. Adjust the page content to make sure no page breaks in this view.
    Thanks,
    Wenlan

Maybe you are looking for

  • How do I import gifs on Lion OS?

    Hey, okay so I bought a new mac it has OSX Lion, and I downloaded my Adobe Creative Suite CS4. The one hiccup and the only thing I used it for is edit gifs. When I go to file import - Video Frames to Layers is an option however I can not load a gif i

  • HTTP to SOAP scenario error

    Hi guys, I have developed an HTTP to SOAP scenario, in order to invoke a Web Service. I am trying to test the scenario by using an HTTP client. However, I am getting the following message, in the result: Result: <SOAP:Envelope xmlns:SOAP="http://sche

  • Iphoto paper quality

    Hi! anyone knows wich quality of paper Apple uses to make Photobook? (or any techical info?)

  • I downloaded Flash Ver 11... (latest).. I see in control panel Flash, But not in programs.

    I downloaded Flash from Abobe site Ver 11.... (latest).  I see Flash in control pannel  (only lets me do security settings).  When I go to programs, I only see plug in and Active X.  I do not see Flash in programs.  I downloaded the installer, and lo

  • BFFA0001 with the hpe3640A getting start example

    I'm trying to automatically step by 50 mV each time the E3640A agilent DC power supply. I'm doing this with a time loop in which every second I update the voltage level input of the example vi which comes with the driver (version 2.4). I constantly o