{
if( impl.mController )
{
- value = impl.mController->GetLineWrapMode();
+ const char* name = Scripting::GetEnumerationName< Layout::LineWrap::Mode >( impl.mController->GetLineWrapMode(),
+ LINE_WRAP_MODE_STRING_TABLE,
+ LINE_WRAP_MODE_STRING_TABLE_COUNT );
+ if( name )
+ {
+ value = std::string( name );
+ }
}
}
} //switch
{
if( impl.mController )
{
- value = impl.mController->GetLineWrapMode();
+ const char* name = Scripting::GetEnumerationName< Layout::LineWrap::Mode >( impl.mController->GetLineWrapMode(),
+ LINE_WRAP_MODE_STRING_TABLE,
+ LINE_WRAP_MODE_STRING_TABLE_COUNT );
+ if( name )
+ {
+ value = std::string( name );
+ }
}
break;
}