Esempio n. 1
0
int MAction::expand( WString& command, WFileName* target, const WString& mask, WVList* states, SwMode mode )
{
    MCommand s;
    for( int j=0; j<_commands.count(); j++ ) {
        MCommand* x = (MCommand*)_commands[j];
        const WString& xm = x->mask();
        if( xm.size() == 0 || xm.match( mask ) ) {
            if( j > 0 ) s.concat( '\n' );
            s.concat( *x );
        }
    }
    return s.expand( command, target, _tool, mask, states, mode );
}