コード例 #1
0
ファイル: borderstyle.cpp プロジェクト: ONLYOFFICE/core
bool operator == (border_style & _b1, border_style & _b2)
{
    if (_b1.is_none() && _b2.is_none()) return true;

    if (_b1.is_none() || _b2.is_none()) return false;

    if (    _b1.get_color()     == _b2.get_color()  &&
            _b1.get_length()    == _b2.get_length() &&
            _b1.get_style()     == _b2.get_style())     return true;

    return false;
}
コード例 #2
0
ファイル: borderstyle.cpp プロジェクト: ONLYOFFICE/core
border_style::border_style(const border_style & Value)
{
    color_ = Value.get_color();
    length_ = Value.get_length();
    style_ = Value.get_style();

	none_ = Value.is_none();

    initialized_ = true;
}