How can we simulate the Indesign paragraph rules in Adobe Flex4?

Hi,
http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6dc1a.h tml
The above link specifies how Paragraph Rules are added in InDesign.
I have a scenario where I would want the same thing to happen in Flex.
So is there any thing that can be done in Adobe Flex 4 in TLF 1.1 so that we can add these rules in the view generated using Flex.
I was initially thinking of using inline graphics but I it will not help my cause.
Please share if there is any way out
Thanks
Ashar

Interesting problem! Here's a suggestion to try.
Make your own ContainerController class that derives from ContainerController and overrides the addTextLine protected method. Each time a line is added, check it to see if it is the first or last line of the paragraph (assuming you wanted rules above and below). If so, then create a new DisplayObject for the rule, and make the rule a child of the TextLine. Then call super.addTextLine, which will add the TextLine to the container. To determine whether the line is first or last, get the TextFlowLine from the TextLine's userData. The TextFlowLine has a location property which will tell you if the line is first, last, middle, or only. To get TLF to use your derived ContainerController class, pass in one of your ContainerController's when you call addController on the textFlow's flowComposer.
So, your code might look something like this:
textFlow.flowComposer.addController(new RuleContainerController(sprite, width, height));
class RuleContainerController extends ContainerController
     override protected function addTextLine(textLine:TextLine, index:int):void
          var line:TextFlowLine = textLine.userData as TextFlowLine;
          if (line.location & TextFlowLine.LAST)
               ruleAfter:DisplayObject = // set up the rule here
               textLine.addChild(ruleAfter);
          super.addTextLine(textLine, index);
This code will add a rule to every paragraph, which may not be what you want. But you could add a user property that you add to the paragraph, and then the addTextLine could use the TextFlowLine to get the paragraph and only attach the rule if property is set.
This is really just sketched out, I haven't compiled or debugged it or anything, but it seems like it might work for your problem. Let me know how it works!
- robin

Similar Messages

  • How can i keep the indesign window to stay a certain size?

    How can i keep the indesign window to stay a certain size? After writing files the Indesign window defaults to original size and I need it to stay a certain size. Can anyone help?
    Thank you
    Ray Jimenez

    Hi, the only possibility I can see is making multiple copies of...
    /System/Library/Components/KeyboardViewer.component/Contents/SharedSupport/Keybo ardViewerServer.app
    And running one in each Space.

  • Hi,how can i change the default settings on my adobe readerX1 such that it will display all my pdf files according to their individual cover pages (as cover picture thumbnails)before i click them to open and read........i really enjoyed this feature as a

    hi,how can i change the default settings on my adobe readerX1 such that it will display all my pdf files according to their individual cover pages (as cover picture thumbnails)before i click them to open and read........i really enjoyed this feature as a default settings upon installation in previous editions of adobe reader .i use a windows 8 pc now.thank

    For sideloaded content the nook pulls the metadata from ePub file itself.  I would suggest looking at a program like Sigil or Calibre that will let you edit the metadata in the book to make it appear like you want.
    For the PDF vs ePub - No, that's the way PDFs work (think of them as graphics, not text), wheres ePubs are Web Pages - so  no you can't them to behave exactly alike without converting the files.

  • How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.

    How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.I don't see nay with Adobe Send.

    There isn't a feature in Adobe Send for setting and end-date for a file's availability. At any time, you can Unshare the file, however.

  • How can I use the Locu Menu Widget in Adobe Muse?

    I am trying to use the Locu Short Code in Adobe Muse but each time I use the following short code it crashes the entire site/program. Can someone let me know what additional div's or code I can use to insert this code into my website?
    <script id="-locu-widget" type="text/javascript" src="https://widget.locu.com/widget2/locu.widget.v2.0.js?id=e603c6353046c918b4f8&medium=web"></script>

    Hi there
    I'd be checking to see how a basic MailTo: function works on the affected PC. Just visit a web page that has a clickable link that opens email. Click the link and observe the behavior. You may find yourself surprised.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How can I use the downloaded lens profiles through Adobe lens profile downloader?

    How can use these lens profile after installing them?

    You choose them to be used in the lens correction panel in Develop:
    Beat

  • How can I change the Subject and Message in Adobe Send?

    Bonjour,
    Lorsque je veux envoyer un document, dans les cases "objet et message" pourquoi avoir installé du texte que je dois systématiquement supprimer pour y placer le mien.
    Avant avec l'excellent Adobe SendNow c'était simple et parfait.
    Bonne journée.
    FRB

    Bonjour
    Merci pour votre patience et votre amabilité.
    Malheureusement ce mail ne répond pas à ma question.
    Je trouve absurde d’avoir renseigné les cases “Objet et message”, car chaque fois je dois effacer votre texte pour y renseigner le mien.
    Cela n’existait pas avec Adobe SendNow !
    Bonne journée,
    Fabrice
    Le 31 oct. 2014 à 17:59, Sara.Forsberg <[email protected]> a écrit :
    "objet et message"
    created by Sara.Forsberg <https://forums.adobe.com/people/Sara.Forsberg> in Adobe Acrobat.com Services - View the full discussion <https://forums.adobe.com/message/6887424#6887424>
    Hi szpulka,
    In Adobe Send, select Personalized Link after you select the file to send. Then, you can customize the Subject and Message as you'd like.
    Best,
    Sara
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6887424#6887424
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Acrobat.com Services by email <mailto:[email protected]com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=48 70>
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0 <http://forums.adobe.com/thread/416458?tstart=0>.
    FABRICE ROUX-BIEJAT
    +33 6 3715 2428

  • How can I find the "Accept" button to download Adobe Reader? I've downloaded it, installed it, can't find the 'accept button'. am using a Mac.

    need help in finding the 'accept button for downloading adobe reader. I'm using a Mac.

    You're all wrong. Here's the story:
    I have reluctantly been using the Chrome browser for some time, and suddenly they have withdrawn support for viewing PDFs in Reader, not in the browser. Didn't announce it, just did it. Goodbye Chrome. Grrrrr.
    Compatible web browsers and PDFMaker applications

  • How can I use   the InDesign ColorPicker dialog in my plug-in?

    Hello everyone:
           I want use the colorpicker dialog in my plug-in,but I can`t find anyway, that colorpicker dialog as follow:
      it`s a model dialog and I will get the color which I chosen at last. it was disturbing  me for sereral days.
                                                                                                                  Thank you for you answering.

    Hi
    Have you tried to use IColorPickerPanelHelper, IColorPickerPanelAttributes, IColorPickerWidgetProvider?
    Regards
    bartek

  • How can I erase the VAT number from an Adobe account?

    I don't want to buy the adobe product as a company, but as an individual. You can erase the company name but the VAT is still there and I don't know how to erase it.
    Thank you!

    Please contact Adobe support to get the VAT removed from your account.
    Regards
    Rajshree

  • How can I change the country in my personal Adobe Account details

    In the Adobe Account, when updating my details, it states that when changing country, in my case from Germany to United Kingdom, I have to ask via this method using the customer service - it reads "Wenn Sie ein anderes Land auswählen möchten, wenden Sie sich bitte an den Kundendienst." So here I am. I have never used this before and have no idea how to see the answer if any are posted.
    Why make it so difficult, it must be very common in Europe that people move around nowadays. Why can't I update my details?
    I can't read German that well but my account is all in German, at least have an option to change languages.
    Thanks

    Hi 7oaksGaz,
    1) Due to tax reasons, it's not possible to change the country associated with an existing Adobe ID.
    Follow the steps mentioned in the below link as a workaround to create an Adobe ID with the email address you currently use for the existing Adobe ID.
    http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    2) You can change the language of the application from AAM preferences
    Please find the link below for the article with the steps
    http://helpx.adobe.com/creative-cloud/kb/creative-cloud-trial-mode.html
    Thanks!
    Eshant

  • How can I change the default header font in adobe acrobat?

    Hi,
    We run adobe acrobat 7 (ver 7.1.4)  throughout the office.
    We have a large number of pdf's to create from word documents and each one needs a header and footer.
    For official reasons these must be in Times New Roman font and 10 point font size.
    Adobe defaults to Arial 8-point.
    Is there a way to change this default so that it does not have to be changed individually for each pdf?

    You can save the settings and re-use the settings.

  • How can I synchronize the e books in one Adobe Ditial Editions program

    to another PC with this program?
    Or is it not possible?

    Provided installs of Adobe's Digital Editions are authorized under a common Adobe ID then more than one device can be utilized.
    Various posts to the Digital Editions forum  speak to this.
    http://forums.adobe.com/community/adobe_digital_editions
    In general, posts by Jim Lester will provide much useful information.
    Also, at http://www.adobe.com/products/digitaleditions/
    the links to FAQs, Help, etc go to more information.
    Be well...

  • How can I hide the option to "Open in Adobe Forms Central" in embedded responses.

    Hello All,
    I created a Web based form and the responses received through same are available in an web page (through embed code). Now I wish to limit the ability of those viewing same to export the data in XLS format. For this one thing I need to somehow enable is to remove the "Open in Adobe Forms Central" as the export to XLS option is only available there.
    Looking forward to your responses.

    ...... if anything,
    this could have appeared after I did the EFI frimware update.
    So, is it standart to see the "choose network" option (below the bootable volumes)
    in te start up manager (option-boot) ?
    cheers,
    pascal

  • How can I change the country associated with my Adobe ID?

    mon statut de compte de mon forait actuel est Adobe Export PDF Annuel est désactivé à cause que l'adresse de facturation est automatiquement lié avec la Belgique et pas avec la France... comment modifier????

    Hi daenen,
    Please see this document: http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    I hope that helps! Please let us know if you have additional questions.
    Best,
    Sara

Maybe you are looking for