InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRubyAttrStrand Class Referenceabstract

#include <IRubyStrand.h>

Inheritance diagram for IRubyAttrStrand:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IRUBYATTRSTRAND }
 

Public Member Functions

virtual void SetRubyState (TextIndex *startpos, int32 *numchars, const AttributeBossList *over)=0
 
virtual bool16 GetRubyRun (TextIndex position, int32 *count, TextIndex *runBegin=nil)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Strand interface for the Japanese attribute: Ruby.

Member Function Documentation

virtual bool16 IRubyAttrStrand::GetRubyRun (TextIndex position,
int32 * count,
TextIndex * runBegin = nil 
)
pure virtual
Return ruby range, if any, at the given position.

Parameters
positionIN Desired text index. NOP if position < 0
countOUT if non-nil, return the distance from position to the end of the strand
runBeginOUT if non-nil, return the text index of the beginning of the ruby
Returns
if ruby is on or not at the given position.
virtual void IRubyAttrStrand::SetRubyState (TextIndex * startpos,
int32 * numchars,
const AttributeBossListover 
)
pure virtual
Setup the ruby strand at the given location over the given length of text based on the attributes in the overrides list.

Parameters
startposIN Where in the text to start the ruby
numcharsIN How many chars to apply the state to. Method is a NOP if *numchars <= 0
overIN The overrides to apply.
See Also
Strands, Text Attributes