Skip navigation
Kommersant PH
Currently Being Moderated

Implementing own IStrand?

Apr 26, 2011 7:14 AM

We need mark a range of text in ITextModel by our ID. That range must remember this ID through all copy/paste operation between any instance of ITextModel`s.  Is it require describe a new IStrand implementation, or not? Functionality of IAttributeStrand in kCharAttrStrandBoss looks fine, but our text range marker can be removed together with other style override attributes.

How best to achieve our goal?

 
Replies
  • Currently Being Moderated
    Apr 30, 2011 5:30 AM   in reply to Kommersant PH

    I'm playing around with similar ideas right now.

     

    IAttrReport::LastsThroughStyleChange() and eventually IAttrReport::CanBeInStyle() sound promising, but I don't know how far you get.

     

    Has anybody outside Adobe already managed to implement their own strand?

    Are there any nasty surprises such as private/undocumented interfaces and services?

    Will a custom strand break document compatibility or does the IgnoreTags mechanism work here?

     

    Dirk

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 30, 2011 11:37 PM   in reply to Dirk Becker 

    Dirk,

     

    If you find out the answers to this, I'd love to know too...

     

    Harbs

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points