#include <ut_PropVector.h>
Public Member Functions | |
UT_PropVector () | |
void | addOrReplaceProp (const gchar *pszProp, const gchar *pszVal) |
void | getProp (const gchar *pszProp, const gchar *&pszVal) const |
void | removeProp (const gchar *pszProp) |
UT_PropVector::UT_PropVector | ( | ) | [inline] |
void UT_PropVector::addOrReplaceProp | ( | const gchar * | pszProp, | |
const gchar * | pszVal | |||
) |
References UT_GenericVector< gchar * >::addItem(), FREEP, gchar, UT_GenericVector< gchar * >::getItemCount(), UT_GenericVector< gchar * >::getNthItem(), UT_GenericVector< gchar * >::setNthItem(), and UT_ASSERT.
Referenced by AP_Dialog_FormatFrame::applyChanges(), AP_Dialog_FormatTable::setBackgroundColor(), AP_Dialog_FormatFrame::setBGColor(), AP_Dialog_FormatTable::setBorderColor(), AP_Dialog_Border_Shading::setBorderColor(), AP_Dialog_FormatFrame::setBorderColorBottom(), AP_Dialog_FormatFrame::setBorderColorLeft(), AP_Dialog_FormatFrame::setBorderColorRight(), AP_Dialog_FormatFrame::setBorderColorTop(), AP_Dialog_FormatFrame::setBorderLineStyleBottom(), AP_Dialog_FormatFrame::setBorderLineStyleLeft(), AP_Dialog_FormatFrame::setBorderLineStyleRight(), AP_Dialog_FormatFrame::setBorderLineStyleTop(), AP_Dialog_Border_Shading::setBorderStyle(), AP_Dialog_FormatTable::setBorderThickness(), AP_Dialog_Border_Shading::setBorderThickness(), AP_Dialog_FormatFrame::setBorderThicknessBottom(), AP_Dialog_FormatFrame::setBorderThicknessLeft(), AP_Dialog_FormatFrame::setBorderThicknessRight(), AP_Dialog_FormatFrame::setBorderThicknessTop(), AP_Dialog_Border_Shading::setCurBlockProps(), AP_Dialog_FormatTable::setCurCellProps(), AP_Dialog_FormatFrame::setCurFrameProps(), AP_Dialog_FormatFrame::setPositionMode(), AP_Dialog_Border_Shading::setShadingColor(), AP_Dialog_Border_Shading::setShadingPattern(), AP_Dialog_FormatFrame::setWrapping(), AP_Dialog_FormatTable::toggleLineType(), AP_Dialog_FormatFrame::toggleLineType(), and AP_Dialog_Border_Shading::toggleLineType().
void UT_PropVector::getProp | ( | const gchar * | pszProp, | |
const gchar *& | pszVal | |||
) | const |
References UT_GenericVector< gchar * >::getItemCount(), and UT_GenericVector< gchar * >::getNthItem().
Referenced by AP_Dialog_FormatTable::_getToggleButtonStatus(), AP_Dialog_FormatFrame::_getToggleButtonStatus(), AP_Dialog_Border_Shading::_getToggleButtonStatus(), AP_Dialog_FormatFrame::applyChanges(), AP_FormatTable_preview::draw(), AP_FormatFrame_preview::draw(), AP_Border_Shading_preview::draw(), and AP_Dialog_FormatFrame::setCurFrameProps().
void UT_PropVector::removeProp | ( | const gchar * | pszProp | ) |
Removes the key,value pair (pszProp,pszVal) given by pszProp from the Vector of all properties of the current format. If the Property does not exists nothing happens
UT_Vector | &vec the vector to remove the pair from | |
const | gchar * pszProp the property name |
References UT_GenericVector< gchar * >::deleteNthItem(), FREEP, gchar, UT_GenericVector< gchar * >::getItemCount(), and UT_GenericVector< gchar * >::getNthItem().
Referenced by AP_Dialog_FormatTable::setBackgroundColor(), AP_Dialog_FormatFrame::setBGColor(), AP_Dialog_Border_Shading::setCurBlockProps(), AP_Dialog_FormatTable::setCurCellProps(), and AP_Dialog_Border_Shading::setShadingColor().