How to get UIDRef of the document selected in indesign cs6

How to UIDRef of the document selected in indesign the Isession cs6

UIDRef EXTCODInspectLayoutModel::GetDocumentUIDRef(IPMUnknown* unknown)

{

UIDRef documentUIDRef (Nile, kInvalidUID);

do

{

Database: IDataBase * =: GetDataBase (unknown);

If (database is Nile)

break;

DocumentUID UID = database-> GetRootUID();

If (documentUID is kInvalidUID)

break;

documentUIDRef = UIDRef (data, documentUID);

} while (false);

Return documentUIDRef;

}

Note: 'unknown' is an interface for the document class

Tags: InDesign

Similar Questions

  • How to get TableId in the Document by FDK?

    My Code getting Table, but it does not work.

    He can only get a cell contained = "Source of FrameMaker Item.

    This content does not exist in my table.


    tableId = F_ApiGetId (0, DocId, FP_FirstTblInDoc);

    While (tableId) {}

    firstrowId = F_ApiGetId (DocId, tableId, FP_FirstRowInTbl);

    so that {(firstrowId)

    Rad_error_nocontent = F_ApiGetId (DocId, firstrowId, FP_FirstCellInRow);

    so that {(Rad_error_nocontent)

    Rad_error_nocontent = F_ApiGetId (DocId, firstrowId, FP_NextCellInRow);

    }

    firstrowId = F_ApiGetId (DocId, tableId, FP_NextRowInTbl);

    }

    tableId = F_ApiGetId (FV_SessionId, DocId, FP_NextTblInDoc);

    }

    }


    How to get TableId in the Document by FDK?

    diatranthanhoa,

    I do not understand your question. But if you try to browse all the cells of each table, you have errors in your code. These are common mistakes. The errors are:

    -FP_NextTblInDoc is a property of a table object, not the document

    -FP_NextRowInTbl is a property of a line object, not the table

    -FP_NextCellInRow is a property of a cell, not the line object

    So, I have maturities adjust your code as follows, noting that I didn't test this:

    tableId = F_ApiGetId (0, DocId, FP_FirstTblInDoc);

    While (tableId) {}

    firstrowId = F_ApiGetId (DocId, tableId, FP_FirstRowInTbl);

    so that {(firstrowId)

    Rad_error_nocontent = F_ApiGetId (DocId, firstrowId, FP_FirstCellInRow);

    so that {(Rad_error_nocontent)

    Rad_error_nocontent = F_ApiGetId (DocId, Rad_error_nocontent, FP_NextCellInRow);

    }

    firstrowId = F_ApiGetId (DocId, firstrowId, FP_NextRowInTbl);

    }

    tableId = F_ApiGetId (DocId, tableId, FP_NextTblInDoc);

    }

    }

    Hope this helps,

    Russ

  • All my photos are displayed such as BW because somehow I saved a preset to quickly develop and it records in BW.  This is for all of my photos.  Individually, I can cancel their but did need help how to get rid of the pre-selection, so he's going to defau

    All my photos are displayed such as BW because somehow I saved a preset to quickly develop and it records in BW.  This is for all of my photos.  Individually, I can cancel their but need help how to get rid of the preset then all photos of goes to Default or in the shot. Thank you

    Go to the develop module and highlight all the images in the film at the bottom of the screen. Enable automatic synchronization, and then click the reset button. To reset all the images in your camera default settings.

  • Any ideas how to get rid of the rose?

    I just signed up for the first time today and everything on my screen that should be white is pink. I know that the monitor support always white because when I first connect there is a small screen which lights up and that switches from analog to digital and it is bright white. Any ideas how to get rid of the rose? Tried to DISPLAY on the control panel and could not fix. Thanks, people.

    Hi rutherford nbr 1.
     
    -Did you of recent changes made to your computer before this problem?
     
    Make sure that the monitor cable is correctly connected. In addition, if you have another computer, the same connect to your computer to confirm that the issue is not because of the screen.
     
    Make sure that there is no electric devices with magnets next to your screen.
     
    Follow these steps and check if it helps fix the problem.
     
    a. Click START and select control PANEL.
    b. Select and click VIEW.
    c. Select SETTINGS on the Interface of the screen and then ADVANCED.
    d. on the advance Interface, choose COLOR MANAGEMENT tab.
    e. on Interface, click on add color management. You will see a list of color profiles.
    f. choose the most appropriate to the brand of the screen / graphics card. You can choose several color profile and a default setting.
     
    For more information, see:
  • AIMatchingArtSuite.GetMatchingArt how to use as JS. Document.Selection

    AIMatchingArtSuite.GetMatchingArt how to use as JS. Document.Selection

    AIMatchingArtSpec

    Hello

    This should help (example):

    AIArtHandle * artStore = NULL;

    AI::Int32 artCount = 0;

    AIMatchingArtSpec spec;

    Spec.type = kAnyArt;

    spec.whichAttr = 0;

    Spec.Attr = 0;

    sAIMatchingArt-> GetMatchingArt (spec, 1, & artStore & artCount);

    If (artStore! = NULL) {}

    do something with the result...

    }

    Then, you can set the type and attributes you want to search!

    Thomas.

  • How to get and set the length and the width of the content of the layer?

    How to get and set the length and the width of the content of the layer

    All layers are packed not equal. a layer as adjustment have no limits. Layer to smart object can have two different sizes. The size of the object and the size of the object may be transformed. All smart object layers have an associated transform. To transform a smart object layers you need to work with the size of the object the generated pixels fot the layer. Text layer can be resized with a transform or by changing the font size. Pixelated layers are resize via a transformation.  The script method is resize.  When you resize the number of pixelsits made by interpolation. You can specify what method to use or set Photoshop interpolation preferably by default.

    There is also a bug in Photoshop scripts if you pause the story said make a selection and use resize. Photoshop will properly support up to a State before where you suspended history. This bug seems to be in all versions of Photoshop.

    If you look ate the script in my bug report, you should get a good idea of how to resize a layer.

    Photoshop: Bug Script resize the rear paper folded to a history State

  • How to edit text in the document to PDF in Acrobat Pro 11 Mac?

    How to edit text in the document to PDF in Acrobat Pro 11 Mac? I know that I can do in the Windows version, but can not find the same tool on Mac.

    On a Mac, click the Customize (above the Tools menu button) button and select default tools.

  • Tracing a png - how to get rid of the background

    I imported a png image of a simple drawing of a man in black (as you can see on a bathroom door) with a transparent background and tried to trace it to a vector, but I can't get rid of the white background. I tried it in jpeg format to see if the route command would generate two thicknesses for the main drawing and one for the background that I could remove, but he di awaters. I tried to adjust the fuction just Trace expose but does nto work no more.

    Can someone tell me how to get rid of the background by drawing a simple image or to break the object to get the shape of the background?

    Kevin

    Use Expand in the menu object and then use the direct Selection tool to select the white and remove. You will need the transparency grid show be enabled in the view menu to see it.

  • How to get rid of the stupid list dropdown in the search box

    How to get rid of the stupid list dropdown in the search box

    If you want to restore the window previously used independently to manage search engines, you can enable or disable this pref to false with a middle-click on the topic: config page.

    • topic: config page: browser.search.showOneOffButtons = false

    Close and restart Firefox to force change.

  • How to get rid of the new menu button on the right side of the toolbar

    Honestly, I don't know why the developers cannot offer new features that we can use or not, by choice. Instead, things are forced upon us.

    Could someone tell me please how to get rid of the new menu button on the right side of the toolbar?

    It doesn't seem to be an option to remove via the Customize Toolbars window.

    Thank you very much.

    CTR extension makes Firefox customizable menu button 3 bar, so you can drag this button in the palette to customize to remove it from the Navigation toolbar.

    Reload and stop probably combine only if you set the two buttons in the correct order (reload - Stop and non-Stop - Reload)

  • How to disable him drag the text selected for searching the Web?

    How to disable him drag the text selected for searching the Web?

    Hmm, I did not forward. This is a new tab page with nothing to do with what you were dragging?

    I wonder if this might be a feature of one of your extensions. You can see their and disable/remove those that are not essential or unrecognized, here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    If you disable the extensions, usually a link will appear above at least one of them to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    If there is no difference, you could test mode without failure of Firefox - which is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference?

  • How to get rid of the superdrive in menu bar?

    How to get rid of the superdrive in menu bar?

    Hold down the command key and drag it off the menu.

  • I can't use Roboform with 4.0 beta 10, so I can't use Firefox. How to get back to the beta version 9?

    I can't use Roboform with 4.0 beta 10, so I can't use Firefox. How to get back to the beta version 9?

    I think that there is a little more for it, but here's a solution that seems to work. After the installation of Roboform 7.1.7, go to: http://www.roboform.com/platforms/browsers/firefox and scroll down to a table listing the three browsers identifying the XPI file to load if it was not loaded automatically. Click the http://www.roboform.com/dist/roboform-firefox-3-4-frozen.xpilink. Firefox will ask you if you want to allow this should be installed. Let him. Finish installation, restart Firefox 4.0b10, and you'll see a Roboform 7.1.7 toolbar works. I did it on two computers, and everything seems to work.

  • How to get rid of the photo of the sunset on the webcam?

    HI -.

    It's probaby a stupid question, but please can someone tell me how to get rid of the image of the sunset on the webcam and allow me to use the photo and video on my netbook?

    I tried to contact Toshiba online but it does not connect.

    Thank you
    Stocks

    Sorry mate but I put t understand the question
    What cell phone do you have?
    Do you mean the internal s laptop webcam?

    If this can be useful?
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=189664

    -Drag your mouse on your pop out where you choose to use your webcam, instead click the option at the bottom of the "Effect" in their 'net', click and click 'OFF' Tada! The now disappeared from your cam Image, +.

    Please send feedback!

  • configeration Silverlight - how to get rid of the protected mode

    How to get rid of the protected mode

    Hello Gloria,.

    Try the following site devoted to Silverlight: http://www.silverlight.net/community.

    I hope this helps.

    Good luck!

Maybe you are looking for