How can I get the current paragraph?

I want to get the current paragraph where the insertion point is.

How can I do this in FDK?

Ch,

I can answer some of these questions, but if you have decided that this thread is replied, please give credit to Mike.

About the audit for a FO_Pgf object, you shouldn't have that. I think that there is some obscure cases where F_ApiGetTextRange() gives you an object that is not a paragraph... I forgot exactly but I think it has to with a text graphic subject line or something like that. I could be wrong. In any case, if you have a stream of regular text with an insertion point, you will get a paragraph object.

This line will abort the operation if any text is selected. Do you really want that?

If (insertionPoint.beg.objId! = insertionPoint.end.objId)

This line will abort the operation if several paragraphs are selected. Do you really want that? Without this verification, you will always get the text of the first selected paragraph.

If (insertionPoint.beg.offset! = insertionPoint.end.offset)

Otherwise, the code looks OK to me, at least regarding the FDK calls. You have problems with him?

Russ

Tags: Adobe FrameMaker

Similar Questions

  • I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?

    See above

    I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?

    You do backup your bookmark as a .json file?

    Restoration of bookmark

  • How can I get the current state "onto the Pixels?

    Hello community,

    Here's the function that creates a switch that handles "snap to Pixels":

    index.html:

    <div id="STP_input" onclick="switchOnOff(this)">
         ...
    </div>
    

    main.js:

    $("#STP_input").click(function () {
         var a = switchOnOff(this);
         if (a) {
              csInterface.evalScript('switchSTP(true)');
         } else {
              csInterface.evalScript('switchSTP(false)');
         }
    });
    

    HostScript.jsx:

    function switchSTP(checkBTN) {
        'use strict';
        
        var condition;
        if (checkBTN === true) {
            condition = true;
        } else {
            condition = false;
        }
    
        var idsetd = charIDToTypeID( "setd" );
        var desc26 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref6 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idtoolsPreferences = stringIDToTypeID( "toolsPreferences" );
            ref6.putProperty( idPrpr, idtoolsPreferences );
            var idcapp = charIDToTypeID( "capp" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref6.putEnumerated( idcapp, idOrdn, idTrgt );
        desc26.putReference( idnull, ref6 );
        var idT = charIDToTypeID( "T   " );
            var desc27 = new ActionDescriptor();
            var idtransformsSnapToPixels = stringIDToTypeID( "transformsSnapToPixels" );
            desc27.putBoolean( idtransformsSnapToPixels, condition );
        var idtoolsPreferences = stringIDToTypeID( "toolsPreferences" );
        desc26.putObject( idT, idtoolsPreferences, desc27 );
        executeAction( idsetd, desc26, DialogModes.NO );
    
        return;
    }
    

    But when I hide the Panel and show once again, that the switch back to the default state, turn on my Panel, not "hook to Pixels" PS settings setting. Is it possible to get the current status 'Hang the pixels' setting? How?

    Best regards.

    See post 8 in this thread:

    Re: Need someone to update or create script: "snap to grid of pixels.

  • How can I get the current path of LUN?

    I want to know the active path for all my lun. How can I get this value?

    Tios thanks!

    Best regards

    Xavier

    VCP4 and professional VCP3 certified VMware.

    -


    If upon that esta o any other campaign respuesta ha sido utility, votalas. Gracias.

    If you find this or any other information useful or appropriate, please consider giving points. Thank you.

    You could do something like that

    $report = @()
    Get-VMHost  | %{
         $esx = $_
         $_ | Get-ScsiLun | %{
              $lun = $_
              $_ | Get-ScsiLunPath | %{
                   $row = "" | Select HostName, LUNname, Path, Active
                   $row.HostName = $esx.Name
                   $row.LUNname = $lun.CanonicalName
                   $row.Path = $_.Name
                   $row.Active = $_.State
                   $report += $row
              }
         }
    }
    $report
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How can I get the current date?

    Hello!

    I two EditFields that will act as a filter, so a user can say display me records from here to there.

    I would like to default dates today at 7 days before.

    Here is the code that I currently have:

    Border border = BorderFactory.createSimpleBorder(new XYEdges(1,1,1,1));
    txtStartDate = new EditField("", "");
    txtStartDate.setBorder(border);
    Background txtBackground = BackgroundFactory.createSolidBackground(0xFFFFFF);
    txtStartDate.setBackground(txtBackground);
    add(txtStartDate);
    
    Border borderB = BorderFactory.createSimpleBorder(new XYEdges(1,1,1,1));
    txtEndDate = new EditField("", "");
    txtEndDate.setBorder(borderB);
    Background txtBackgroundB = BackgroundFactory.createSolidBackground(0xFFFFFF);
    txtEndDate.setBackground(txtBackgroundB);
    add(txtEndDate);
    

    Is there something like a DateTime.Now to Blackberry? How can I achieve this? Thanks a lot for the help guys.

    Ok........

    Use this...

    Date date;
    String currentdate = new SimpleDateFormat("dd/MM/yyyy").format(new Date(System.currentTimeMillis()));
    
    ------------------------------------------------------------------------------------Press Kudo to say thank to developer. Also Press the Accept as solution Button when u got the Solution.
    
  • How can I get the current user?

    I want to combine the logic of Publisher and Subscriber in a Flex application. To do this, I need to know what role has the current user (I do not change user roles implementation plan).

    Is this possible?

    Thank you.

    Hello

    I googled: "current user lccs. The 2nd shot gave me the answer =).

    Nigel

  • For the operation of broadcasting how can I get the current network address of BB device

    Hello

    I'm new to the development of BB. I want to develop a Java application or servlet I can send order button to my client devices on BES... I would like to know a few things

    • First of all know if its possiable to apply a base or servlet Java?...
    • How to know current network address of the BB device that uses BES...

    Experts of BB please help... I would like to know I can start with...

    Thanks in advance...

    (I'm in the right forum for these questions)

    Hello

    When you tap on a BlackBerry smartphone, push you to address email or PIN code associated with the device. These can be already known or read the BES.

    Push of browser channel can certainly be handled from a Java application, check on the HTTPDemo (server side) included with the BlackBerry can and JDE plug-in for Eclipse (eJDE) that shows this.

    http://NA.BlackBerry.com/eng/developers/javaappdev/devtools.jsp

    http://docs.BlackBerry.com/en/developers/deliverables/10155/index.jsp?name=http+push+sample+applicat...

    Kind regards

  • Windows 7 Desktop w/printer, my desktop XP in network computer, cannot print bc I wonder for the current print driver, I got a current version, but it does not recognize it? How can I get the printer to work?

    I have a desktop computer Windows 7 connected to an HP laserjet 4050N printer, when I try to print from a computer to Office XP, via the network, I wonder for an updated printer driver.  I downloaded the latest print driver, but it does not recognize the file inf and again requests a current print driver.  How can I get the XP desktop to print on the printer connected to the Windows 7 Desktop?

    Hello

    I suggest you to follow the steps mentioned below and check if it helps.

    Method 1:

    Printer in Windows problems:

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    http://h20000.www2.HP.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=18322&lang=en&cc=us&TaskID=135&prodTypeId=18972&prodSeriesId=25475

    For your reference: How to use Windows XP to share a printer with other people on your network: http://technet.microsoft.com/en-us/library/bb457001.aspx

    http://TechNet.Microsoft.com/en-us/library/bb456988.aspx

    To connect to a printer on a network: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/print_connect_net_printerw.mspx?mfr=true

    Hope this information is useful.

  • How can I get the tabs to go on a single line and a menu of Firefox?

    Firefox allows to have 2 lines above - Firefox menu with tabs and more and another line of the navigation toolbar. during the installation of some programs online, Firefox now have 3 lines at the top, with the Firefox menu on an entire line, the 2nd line of tabs and 3rd line of navigation toolbar. How can I get the tabs to go on a single line and a menu of Firefox?

    With the current versions of Firefox, you can choose to use the menu of Firefox (orange in windows; gray Linux) button at the left end of the Windows title bar or bar menus familiar as in earlier versions. The Firefox button is displayed by default only in Windows Vista and Windows 7, but you can turn on or off or switch between the two or temporarily show the menu bar when the Firefox button is displayed.

    If you chose to use the Firefox button and you use the default tabs on top, the tab bar will move to the title bar with the Firefox button only when you are to maximize window (the ' square' the middle button in the upper right corner of the Windows standard application window). Other selected toolbars will be displayed below that (bar Navigation, Bookmarks Toolbar and the toolbars you add via Add - ons).

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • In windows movie maker, I'm trying to open an old project. It opens, but there is no video clips - only x or empty clips. How can I get the original film clips show?

    In windows movie maker, I'm trying to open an old project. It opens, but there is no video clips - only x or empty clips. How can I get the original film clips show?

    I did a movie and released a dvd. Then, I moved my files from movie on an external hard drive to store files and free up space on my computer. So I went back to try a pull up the project and got every X / white clips. So now, I rebooted my computer with the video files I removed on the external hard drive and it still shows empty clips.
    Help.

    The red Xs indicate that Movie Maker cannot find the original source files.
    If the files are still available... just right click on the red Xs and go to the
    current location of the files source and you may be able to restore the
    path.

  • How can I get the old search wizard on windows vista/windows 7?

    Original title: bringing research research assistant, new bad engine

    Dear all.

    I like Windows XP search assistant as if worked as an engine of 'real' research, for example, bing, google and search keywords.
    The current one is too basic to windows vista and windows 7 is rubbish and doesn't like the old.

    How can I get the old search wizard on windows vista/windows 7?  If I can't do it, how I'd get that to happen?

    Your

    Tom2020

    HI Tom2020,

    If you want to leave comments about the research, please do so at:

    Windows 7 comments

  • How can I get the serial number for Adobe Acrobat XI?

    How can I get the serial number for Adobe Acrobat XI? I have download adobe for free on my laptop dell Inspiron 64 bit Web site.

    It is not free. It is an old version and is no longer sold. You can buy or subscribe to the current version of Acrobat Pro DC.

  • Illustrator will not store my settings. When I re - open the program, my settings are lost. How can I get the program to save my settings?

    Illustrator will not store my settings. When I close and reopen the program, some of my settings are lost; persistent color palettes, type of unit. How can I get the program to save these settings? We have several computers through Adobe CC and one of them has this issue. We have tried to reinstall the program, does not. Looking for someone who has had this experience and has an idea about a solution AND what is the problem.

    Jason

    Check the permissions on your user files. Looks like you have not allowed to save there who HAVE requires that the last thing that made when closing is to write the current version of the preferences.

  • How can I get the latest camera raw to Lightroom 4.2?

    How can I get the latest camera raw to Lightroom 4.2?

    You just run the update. If there is a newer version, it will be installed. Except that 4.2 is the latest version out, 4.3 is currently at the final trial staged and can be downloaded from the Adobe Labs page.

    Mylenium

  • How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    Settings > Notifications > Messages > display on the lock screen

Maybe you are looking for

  • What is wifi ASUS?

    Setting up my new MacBook Pro. For many years, for internet, I depended on my computer Internet hotspot for my phone data. At some point, I hit ASUS instead of my phone in wifi computer section, and it is connected. (Of course, my phone was already t

  • TDMS direct OR-DAQmx logging integration

    Hello Is it possible to get the PDM file reference, when you use the 'TDMS Direct in NOR-DAQmx Logging integration' like this: http://www.ni.com/white-paper/9574/en/ I need to write it manally given in a tdms file while a task-DAQmx saves the data to

  • 2011 Microsoft Streets and Trips: "your registry settings were not copied. Rerun the Setup program.

    After installation, I keep getting the message "your base registry settings were not copied. Run the Setup again"I tried several times without success

  • printer Envy 5530: Instant ink page

    I got when I went to my Flash page of ink that he was telling me how many pages I print to this day and still, he says nothing, is there somewhere on the printer I get this info? Its been a few weeks, I have to wait longer? its not up to date?

  • Wired laptop but unable to connect to the laptop wireless wireless PC can connect cable PC OK

    I have a wired network on whiich, I connected a WAP54G access point for my laptop wireless to children. They are never anything other that connect to the internet, so I never noticed this before. Now, I bought my own laptop and that you want to conne