Scribus
Open source desktop publishing at your fingertips
ColorList Class Reference
Inheritance diagram for ColorList:
Collaboration diagram for ColorList:

Public Member Functions

 ColorList (ScribusDoc *doc=NULL, bool retainDoc=false)
 
ColorListoperator= (const ColorList &list)
 
ScribusDocdocument (void) const
 Get the document the list is related , return in cpp due to scribusdoc class delcaration.
 
void setDocument (ScribusDoc *doc)
 Assign the doc to which the list belong to.
 
void addColors (const ColorList &colorList, bool overwrite=true)
 Add colors from the specified list. Colors are added using shadow copy.
 
void copyColors (const ColorList &colorList, bool overwrite=true)
 Copy colors from the specified list.
 
void ensureDefaultColors (void)
 Ensure availability of black and white colors.
 
QString tryAddColor (QString name, ScColor col)
 Try to add ScColor col to the list, if col already exists either by name or by value the existing color name is returned.
 

Protected Member Functions

void ensureBlack (void)
 Ensure availability of black color.
 
void ensureWhite (void)
 Ensure availability of white color.
 
void ensureRegistration (void)
 Ensure availability of registration color.
 

Protected Attributes

QPointer< ScribusDocm_doc
 
bool m_retainDoc
 

The documentation for this class was generated from the following files: