Source Code (Use browser search to find items of interest.)

Class Index

kword'KWVariableCustomFormat (./koffice/kword/variable.h:129)

class KWVariableCustomFormat : public KWVariableFormat
{
public:
    KWVariableCustomFormat() {}

    virtual VariableFormatType getType() const
    { return VFT_CUSTOM; }

    virtual void setFormat( QString _format );

    virtual QString convert( KWVariable *_var );

};

/******************************************************************/
/* Class: KWVariableSerialLetterFormat                            */
/******************************************************************/


kword'KWVariableCustomFormat::setFormat() (./koffice/kword/variable.cc:108)

void KWVariableCustomFormat::setFormat( QString _format )
{
    KWVariableFormat::setFormat( _format );
}

/*================================================================*/

kword'KWVariableCustomFormat::convert() (./koffice/kword/variable.cc:114)

QString KWVariableCustomFormat::convert( KWVariable *_var )
{
    if ( _var->getType() != VT_CUSTOM ) {
	qWarning( "Can't convert variable of type %d to a page num!!!", _var->getType() );
	return QString();
    }

    return dynamic_cast<KWCustomVariable*>( _var )->getValue();
}

/******************************************************************/
/* Class: KWVariableSerialLetterFormat                            */
/******************************************************************/

/*================================================================*/