IParagraphJustificationStyle

A style that controls the justification direction of the paragraphs it is applied to.

Do not derive your own classes from this class.


IParagraphJustificationStyle - Member Functions and Data by Group

Constructors & Destructor

Use the constructors and destructor in this group to create and destroy objects of class IParagraphJustificationStyle.


[view class]
~IParagraphJustificationStyle
public:
virtual ~IParagraphJustificationStyle()
Destroys the IParagraphJustificationStyle object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IParagraphJustificationStyle
Constructs an IParagraphJustificationStyle object.


Overload 1
Default constructor.
public:
IParagraphJustificationStyle()
The default constructor leaves the style in an undefined state! A default-constructed style must have its value filled in in some way before it is used for anything!

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IParagraphJustificationStyle(EJustification value)
Use this constructor to creater an IParagraphJustificationStyle object that is initialized to the value specified by the given EJustification constant.

value
An EJustification enumerated constant specifying the type of justification.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 3
Copy constructor.
public:
IParagraphJustificationStyle( const IParagraphJustificationStyle& other )
Constructs an IParagraphJustificationStyle object that is copied from the given one.

other
The IParagraphJustificationStyle object to be copied.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Assignment Operator

Use the assignment operator to replace the current IParagraphJustificationStyle object with the given one.


[view class]
operator =
public:
IParagraphJustificationStyle& operator =( const IParagraphJustificationStyle& other )
Assignment operator.

other
The IParagraphJustificationStyle object to be used to replace this, the current, one.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Comparing Two IParagraphJustificationStyleObjects for Equality or Ineqaulity

Use these functions to compare the given IParagraphJustificationStyle object with the current one for equality or inequality.


[view class]
operator !=
public:
bool operator !=( const IParagraphJustificationStyle& other ) const
Compares the given IParagraphJustificationStyle object against this, the current, one to determine if their content is different.

other
The IParagraphJustificationStyle to be tested against this, the current, one.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
operator ==
public:
bool operator ==( const IParagraphJustificationStyle& other ) const
Compares the given IParagraphJustificationStyle object against this, the current, one to determine if their content is the same.

other
The IParagraphJustificationStyle to be tested against this, the current, one.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Getting and Setting the Justification Value

Use these functions to get and set the justification value.


[view class]
justification
public:
EJustification justification() const
Query the justification value.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
setJustification
public:
void setJustification(EJustification value)
Sets the justification value using the given enumerated constant.

value
An EJustification enumerated constant specifying the type of justification/

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IParagraphJustificationStyle - Enumerations


[view class]
EJustification
enum EJustification { kStart, 
                      kCenter, 
                      kEnd, 
                      kMaxJustification=127 }
Constant values specifying different justification directions Use these enumerated constants to specify different justification directions:
kStart
Aligns each line to the "beginning" of the line in the current writing direction, for example, for Roman text, align to the left margin, but for Hebrew text, align to the right margin.
kEnd
Align each line to the end of the line in the current writing direction, for example, for Roman text, align to the right margin, but for Hebrew text, align to the left margin of the paragraph between the margins

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IParagraphJustificationStyle - Inherited Member Functions and Data

Inherited Public Functions

IParagraphStyle
ITextStyle

Inherited Public Data

Inherited Protected Functions

IParagraphJustificationStyle
ITextStyle
IParagraphStyle

Inherited Protected Data