How to find the page contains the indesign sdk?

PLS, someone help me, how to find the page contains the indesign sdk?

Thank you

screen410099

Don't know, if you find a shorter way, but it works:

UIDRef language = YOUR_TABLE;

Error result code.

do

{

InterfacePtr textModel;

TextIndex beginning;

Len Int32;

result = table_get_text_model (read, 0, 0, textModel, start, len);

If (result! = kSuccess) break;

If (! textModel) break;

UIDRef frameRef = text_query_frame (textModel, start);

If (! frameRef) break;

Int32 pnum = - 1;

PageRef UIDRef = page_getref (frameRef, &pnum);)

If (! pageRef) break;

:

:

} While (false);

//***************************************************************************

Error code (Table_get_text_model)

Language UIDRef,

Int32 left,

top of Int32,

InterfacePtr & textModel,

TextIndex & start,

Int32 & len)

{

Result ErrorCode = kFailure;

do

{

Inits

textModel = InterfacePtr (Nile);

Start = 0;

Len = text::kTextLen;

Make sure that we have a valid table model

InterfacePtr tableModel (label, UseDefaultIID());

if(!tableModel) break;

convert the network to a network ID address

GridAddress gridAddress (top, left);

get the container text table so we could make the text template.

InterfacePtr tableTextContainer (tableModel, UseDefaultIID());

if(!tableTextContainer) break;

textModel = InterfacePtr (tableTextContainer-> QueryTextModel());

if(!textModel) break;

InterfacePtr tableTextContent (tableModel, UseDefaultIID());

if(!tableTextContent) break;

GA GridArea (up, left, top + 1, left + 1);

Len = tableTextContent-> GetTextChunk (ga, start);

If (! len) break;

result = kSuccess;

} While (false);

return the result;

}

//***************************************************************************

#if (csversion_<>

# define ITextFrameC_ ITextFrame

#else

# define ITextFrameC_ ITextFrameColumn

#endif

UIDRef text_query_frame (InterfacePtr txt, TextIndex istartPos)

{

UID uid = kInvalidUID;

TextIndex startPos = istartPos;

do

{

If (! txt) break;

INNERE Textrahmen of the items

InterfacePtr frameList (txt-> QueryFrameList ());

If (! frameList | frameList-> GetFrameCount ())<= 0)="">

First INNERER Textrahmen of the items

InterfacePtr textFrame (frameList-> QueryNthFrame (0) / * QUF,: UseDefaultIID () * /);

#ifndef (csversion_<>

Location of RangeData (startPos, startPos);

#else

TextIndex location = startPos;

#endif

Int32 frameIndex = - 1;

InterfacePtr tf = InterfacePtr (Nile);

If (startPos < txt-=""> tf TotalLength ()) = InterfacePtr (frameList-> QueryFrameContaining (location, & frameIndex));

of other tf = InterfacePtr (frameList-> QueryNthFrame (frameList-> GetFrameCount () - 1));

If textFrame (tf) tf =;

If (! textFrame) break;

//

Aus dem first inner Textrahmen bilden wir jetzt eine hierarchy.

In der Ebene uber hierarchy suchen wir jetzt nach nach einem dieser

Objekt, das ein Graphicrahmen ist. Dieses element ist der gesuchte

ÄUßERE Rahmen.

//

InterfacePtr child (textFrame, UseDefaultIID());

If (! child) break;

do

{

InterfacePtr parent (child-> QueryParent());

If (parent == nil) break;

InterfacePtr graphicFrameData (parent, UseDefaultIID());

If (graphicFrameData! = nil)

{

We have a regular text frame.

UID =: GetUID (graphicFrameData);

break;

}

child = parent;

} While (child! = nil);

} While (false);

If (uid == kInvalidUID) return UIDRef (Nile, kInvalidUID);

Return UIDRef (: GetDataBase (txt), uid);

}

//***************************************************************************

#if (csversion_<>

# define GLayout_:

#else

# define GLayout_ Utils ()->

#endif

UIDRef page_getref (const UIDRef & frameRef, int32 * pgNum)

{

UIDRef result = UIDRef::gNull;

do

{

If (pgNum) * pgNum = 0;

If (! frameRef) break;

InterfacePtr itemHier (frameRef, IID_IHIERARCHY);

If (! itemHier) break;

If (! pause frameRef.ExistsInDB ());

ES more like evil EIB GetOwnerPageUID AB. ICH denke badly, at least

Ein muss ein Rahmen wohl schon haben Parent. Wenn wir da keinen find,.

tschüss Dann.

InterfacePtr parent (itemHier-> QueryParent());

If (! parent) break;

PageUID UID = GLayout_ GetOwnerPageUID (itemHier);

If (pageUID == kInvalidUID) break;

result = UIDRef (frameRef.GetDataBase (), pageUID);

If (pgNum)

{

IDataBase * db = frameRef.GetDataBase ();

If (! db) break;

UIDRef docRef (db, db-> GetRootUID ());

InterfacePtr PageList (docRef, IID_IPAGELIST);

If (!.) (Break from PageList);

Int32 pageIndex is PageList-> GetPageIndex (pageUID);.

* pgNum = pageIndex;

}

} While (false);

return the result;

}

//***************************************************************************

Tags: InDesign

Similar Questions

  • How to use the InDesign SDK on Visual Studio 2013 for C++ project?

    I had a stuck on my research on 'use InDesign SDK to develop a plugin for InDesign'. Through my research, I tried to launch a sample project comes with the SDK in Visual Studio 2013 (note that all the examples of projects are using C++). Also, I have many questions about InDesign to apply for assistance, but long unanswered forum post. And this final change that I need your help to continue my research on this issue. The issue is described as follows:

    • Document involved: plugin_sdk_CC2015_072_20150618.zip (year SDK InDesign-downloaded from the Adobe site - http://www.adobe.com/devnet/indesign/sdk.html)
    • Development environment: Visual Studio 2013 (C++)
    • I followed the guideline in the folder "plugin\docs\html\index.html".
    • I opened a sample project in the folder "plugin\build\win\prj" Visual Studio 2013.
    • In the Visual Studio 2013 window, I click on "Local Windows Debuggeer" to run the project. But after compiling the project, it generated an error message and the project cannot run more.

    Note: All draft documents and sample are belong to InDesign SDK.

    I stuck there and could not find a solution for this problem yet, I followed the document of InDesing SDK strictly. Finally, the purpose of this research is to create a sample for InDesign plugin.

    Kind regards

    Hello

    Set your path of debugging in visual studio 2013.

    If you find any problem you can contact me please on my mail ID

    [email protected]

    Thank you

    Philippe joshi

    + 91-8860697370

  • How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    Mr President

    This is the page of the glassfish Server

    gfurl.png

    How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    webapplink.png

    In the jdev web module are

    [11: 09:38] wrote the Web for F:\backup of AshCMS\AshCMS\ViewController\deploy\AshCMS_ViewController_webapp.war application Module

    [11: 10:33] wrote the Module Enterprise Application to F:\backup of AshCMS\AshCMS\deploy\AshCMS_Project1_AshCMS.ear

    [11: 10:33] Application deployment...

    [11: 14:24] Application deployed successfully.

    [11: 14:24] time to deployment: 8 minutes, 11 seconds

    [11: 14:24]-deployment is complete.  ----

    what url in the browser.

    Concerning

    Mr President.

    I run my application on built-in web logic server and get the url from there

    http://localhost:7101 / ViewController/faces/MainPage

    then simply change the localhost of 7101 to 8081 as below

    http://localhost: 8081, ViewController, faces, MainPage

    and it works

    Concerning

  • How to find the ID of a submit button in oracle seeded pages

    Hello

    I tried downloading the page locally and I try to open using jdev, but "oa:popup" is not valid message is coming.

    So I can not open this page so not able to see the ID of the button.

    Can you tell me how to find the ID in another way.

    Hello

    If your cannot open page in jdev, then copy the page (xml file) from the server and save to anywhere on your local computer, which opened in Notepad, here you can find the ID of your button required. However, the norm is to open the page in jdev
    Haroon.

  • How to find the last pasted paragraphs FMP?

    I'm sticking FMP several objects at once in a file (a file of changes to the sections containing the changebars) in the main text flow. I want a separator line to go at the end of each pasted section, so I try to insert one after the paste operation. But instead of a line between each section, all lines are added at the end of the file, after all the sections. So if there are 3 glued sections at the end of the file are three lines. My code is below, do you know how I could fix this?

    Thank you, Mark

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var firstChgPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    var lastPgf = changesDoc.MainFlowInDoc.FirstTextFrameInFlow.LastPgf;

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    }

    Hi Mark,

    The problem is that the dough does not occur when you think. The dividing line is added at the end of the file, but are not your actions of dough. Actually, I think that maybe a little random where pasta is produced, because this line:

    var changesTloc = new TextLoc (firstChgPgf, Constants.FV_OBJ_END_OFFSET);

    .. .is does not create a valid text location. You can check this by abandoning the service after:

    changesDoc.TextSelection = changesTRange;

    .. and look at where's the insertion point. It will probably be everywhere where you left it last, because the call is not valid. I can't tell you exactly why, except that it has something to do with the fact that you are using the last paragraph in the stream. There is something weird to try to define a range of full-paragraph text with the last paragraph. I'm sure it's related to how the last TFP in a stream does not show a mark of FMP, but beyond that, I don't know how to do what you're trying to do with the last paragraph.

    Having no knowledge of how do it right, any time I need to do this, I create a paragraph "dummy" at the end of the flow to fill that space strange 'last FMP", then do the work around it. In the end, I just want to remove fake TFP. I don't know if it's a good idea or not, but it's the only way I ever get it to work and it sorts the mirror how you could do this manually in the GUI.

    With this, I modified your script as follows, and it seems to work better. Note that I also modified the logic of how to find the last paragraph of the flow by writing a separate function. Your call to the 'FirstTextFrameInFlow' is OK, unless your doc begins to span several pages and/or begins with several empty pages. The function I wrote ensures that you really the last TFP in the stream.

    I hope this helps.

    Russ

    function copyPasteChanges (doc, chgRange) {}

    Select the section with changebar and copy it.

    doc. TextSelection = chgRange;

    doc. Copy();

    Prepare for the changes doc and paste there the modified section.

    var lastPgf = getLastPgf (changesDoc);

    var dummyPgf = changesDoc.NewSeriesPgf (lastPgf);

    var changesTloc = new TextLoc (dummyPgf, 0);

    var changesTRange = new TextRange (changesTloc, changesTloc);

    changesDoc.TextSelection = changesTRange;

    changesDoc.Paste ();

    To go at the end of the file again (I think)

    Don't forget that last TFP is now fake TFP

    lastPgf = getLastPgf (changesDoc);

    var dividerPgf = changesDoc.NewSeriesPgf (lastPgf.PrevPgfInFlow);

    var TLoc = new TextLoc (dividerPgf, 0);

    changesDoc.AddText (TLoc, '_');

    dummyPgf.Delete ();

    }

    function getLastPgf (doc)

    {

    textFrame var is doc. MainFlowInDoc.LastTextFrameInFlow;

    var lastPgf = textFrame.LastPgf;

    While (! lastPgf.ObjectValid () & textFrame.ObjectValid ())

    {

    textFrame = textFrame.PrevTextFrameInFlow;

    lastPgf = textFrame.LastPgf;

    }

    Return lastPgf;

    }

  • average of k: how to find the data clustred; : or how to assign number t0 each data group

    Hi Member

    I have download the LabVIEW Machine https://decibel.ni.com/content/docs/DOC-19328 learning package

    I want to run the K average algorithm to group the image in a group of two or three or more

    the problem is how to find the result I mean the image of clustred', the image that contain 2 or three threatened value only

    or how aasign a 1 value for all the intesity who

    belong to the cluster a and 255 for data that belongs to group 2

    for the look of the image as binary image?

    a my vi below

    Best regards

    my post before shows how to set the threshold manually using the slider of the graph.

    Here is the version k-means automated help .vi box tools

    Alex

  • How to find the Web sites of high quality backlinks?

    Original title: how to find quality backlinks?

    Updates on the algorithms research of new google forward a site spammy that build a bad backlinks. But how to find the Web sites of high quality backlinks? Could we must spend a lot of money to get their links?
    Please help me.

    I want to increase backlinks to my site

    Hello

    I recommend you contact Google support for assistance:

    http://support.Google.com/bin/static.py?hl=en&page=portal_groups.cs

    Hope the helps of information.

  • How to find the Bookmarks panel is enable or disable the use of Applescript?

    Hi all

    In Indesign, how to find the Bookmarks panel is enable or disable the use of applescript?

    Please any idea on this subject!

    Thank you

    John.

    Hi John,.

    Version CC 2015 (and I guess in earlier versions) you would use:

    Tell application "Adobe InDesign CC 2015"

    the visible isVisible value of "Bookmarks" Panel

    tell the end

    isVisible

  • How to find the ID of the existing contact?

    I need to update an existing contact in Eloqua, but to do that I need to find the ID of the contact.

    I know how to get the ID of the contact after it is created the first time, but once it is already created how to find the code.

    How do I do that?

    Here is my code that I use to update, I just need to solve for '?

    EloquaAPI. DynamicEntity [dynamicEntities] = new EloquaAPI. DynamicEntity [1] ;

    dynamicEntities [0] = new EloquaAPI. DynamicEntity ();

    dynamicEntities [0]. EntityType = entityType;

    dynamicEntities [0]. Id = "???";

    dynamicEntities [0]. FieldValueCollection is new EloquaAPI. DynamicEntityFields ();

    dynamicEntities [0]. FieldValueCollection.Add ("C_GUID1", GUID);

    dynamicEntities [0]. FieldValueCollection.Add ("C_FirstName", FirstName.Trim ());

    dynamicEntities [0]. FieldValueCollection.Add ("C_LastName", LastName.Trim ());

    dynamicEntities [0]. FieldValueCollection.Add ("C_EmailAddress", Email.Trim ());

    dynamicEntities [0]. FieldValueCollection.Add ('C_Type1', 'Contact');

    EloquaAPI. UpdateResult [] result = service. Update (dynamicEntities);

    Joey

    Hi Joey,

    If you do not already have the id of the contact, then you will need to use the. Function Query() to get it – most commonly ask you based on the email address.  For this call API documentation is here:

    http://www.eloquatrainingcenter.com/Portal/documentation/API/content/API_Reference/Entity_Operations/query.htm

    The example code in this page is not large (without having to download the entire sample application), but here's a basic use (VB.net):

    Dim contactId As Integer = 0

    Dim etContact As New ELQService.EntityType
    etContact.Type = 'Base '.
    etContact.Name = "Contact".

    Dim result = are. Query (etContact, "C_EmailAddress ="[email protected]"", {"Id"}, 1, 50)
    If result. TotalRecords > 0 then contactId = result. Entities (0). ID

    Chris

  • How to find the e-mail address for my HP 6700? Printer shows E-Print connected.

    I am using the Forum to get a new code to the printer and the printer shows homepage that's on, but now I don't know how to find the e-mail address for my computer.

    Hello

    In the front of the printer, go to configuration. Locate and enter the Web Services. Aprove any step to activate the service... leave the system a few minutes to complete your registration, a page will be printed automatically with the code printer and directions to select the email address of hpeprint.com.

    Kind regards.

  • How to find the ADDRESS, HASH_VALUE of V$ SQLAREA for a request to purge?

    I read on how to use the INVALIDHTOMEH package to remove an application from the shared pool.

    I'm looking at the example on this page:

    https://blogs.Oracle.com/Mandalika/entry/oracle_rdbms_flushing_a_single

    He gives an example of:

    SQL > select ADDRESS, HASH_VALUE of V$ SQLAREA where SQL_ID like '7yc % ';

    ADDRESS HASH_VALUE
    ---------------- ----------
    000000085FD77CF0 808321886

    My question how they find the SQL_ID of the query they are wanting to be served before this step?


    Thanks in advance,

    Cayenne

    >
    How did find the SQL_ID of the query they are wanting to be served before this step?
    >
    They probably got from V$ SQL

    select sql_id, plan_hash_value, exact_matching_signature, sql_plan_baseline from v$sql
    where sql_text = '. . put your query here . . .'; 
    

    Make a request like this or use WHERE SQL_TEXT LIKE if you know a part of the text of the query. Then use the SQL_ID.

  • How to find the version of database

    Hi all

    My tns.ora file contains a lot of list of database and information

    How to find the data base belongs to which version?

    Means that 11g or 10g like this...?

    Thank you
    Praveen

    If you can connect to the DB, you can query

    select * from v$version
    
  • How to find the size of the text string...

    Hi friends,

    How to find the size of the text, in KB or in bytes or MB, I have a text box control, when I type a text in do I find the size of the text that is entered control.please of entry help very urgent...

    Thnaks

    Balu-

    Hi David,

    Nice Solution, but I think that it will not give the exact size of the string for a particular case where the string contains UTF string as a single letter format can exceed more than 1 byte.

    So I think it should be modified as:

    private function getTextSize(value:String): String

    {

    var div_by:int = 100;

    var sze_is:String = 'KB ';

    var len_is:int = getUTFLength (value); now the length is actually measured, regardless of the format of the text

    If (len_is > 1000000)

    {

    div_by = 100000;

    sze_is = 'mb ';

    }

    Return(string(math.round(len_is/div_by)/10)+sze_is);

    }

    private void getUTFLength(value:String):int
    {
    var byteArray:ByteArray = new ByteArray();
    byteArray.writeUTFBytes (value);
    Return CharArray.Length;
    }

    Concerning

    -Vikash

  • After deployment got "404 Not Found".  How to find the correct URL?

    For the experienced:

    Preparing to deploy my application, I use JDeveloper 10.1.3.4 to deploy the application on the server standalone oc4j included in JDeveloper. After deployment, I get the error "404 Not Found" when trying to invoke the application in a browser. The deployment seems OK, because the log in JDeveloper window showed no error executing deployment from inside JDeveloper. So I guess the question is how to find the correct URL to invoke the application. Here are the steps I took to make the deployment.

    First, I installed the standalone oc4j by running the .bat < jdev_home > \jdev\bin\start_oc4j file. Installation is OK because I have deployed the application SRTutorial and invoked successfully in a browser.

    The WAR file has been created by right-clicking on the ViewController project and select this option to create a WAR file. At the root of the application its own name, I typed "ZB" in the area of the root of context.

    Then in ViewController-> resources, right_click the deployment file (ZBOV.deploy) and chose ' deploy to "the local_standalone_oc4j. Messages in the Journal of JDeveloper window for deployment are all nice and clean without errors.

    I then used this url to invoke the application deployed in a browser:

    http://localhost:8888/ZB/faces/staff/login.JSPX

    But I got an error "404 Not Found". Immediately, I tried citing the application of SRTutorial, and it works fine.

    Login.JSPX is one of the pages of the application. In the browser of the application, it is with other files in the content of ViewController/Web/personal folder, so I used /staff/login.jspx after ZB/faces.

    What could be wrong? If the deployment is really successful, how to find the correct url to invoke the application?

    Thanks a lot for your help!


    Newman

    Hello

    According to me, there are 2 possibilities (could be more that I'm not aware of if :)).

    1. your deployment profile has been changed to use a different context root.
    2. your request has not been installed correctly.

    To 1, try to create a new deployment profile and leave the values by default as it is the case, run the jspx page, get the root context, deploy the application to a different OC4J instance (using the new deployment profile), and then run the application with the context root, that you received from the embedded OC4J.

    For 2, check the log file and see if you had any error / exception.

    HTH.

    Arun-

  • says that there is an update of firmware available for my 3 t time capsule. I get "an error occurred when downloading". How to find the problem?

    I said that there is an update of the firmware available for my 3 t time capsule. I get the message "an error occurred when downloading". How to find the problem? I have elcapitan 10.11.6 and capsule version 7.7.3

    Try temporarily, connect your MacBook Pro to your Time Capsule using an Ethernet connection... If not already, then try downloading the firmware again.

Maybe you are looking for