Coding style for the document view part:

namespace foospace
{
class Bar
{
public:
    int foo();
private:
    int m_foo;
}
;
int Bar::foo()
{
    switch (x)
    {
    case 1:
        break;
    default:
        break;
    }
    if (isBar)
    {
        bar();
        return m_foo + 1;
    }
    else
        return 0;
}
}

