private void UpdateShapeValues()
{
if (_ribbon != null)
{
if (_lastRibbonShape != _ribbon.RibbonShape)
{
switch (_ribbon.RibbonShape)
{
default:
case PaletteRibbonShape.Office2007:
_totalBorders = TOTAL_LEFT_RIGHT_BORDERS_2007;
_layoutNormalMain.VertOffset = VERT_OFFSET_2007;
_layoutNormalSepTop.SeparatorSize = new Size(NORMAL_BORDER_TOPLEFT2007, NORMAL_BORDER_TOPLEFT2007);
_layoutNormalSepLeft.SeparatorSize = new Size(NORMAL_BORDER_TOPLEFT2007, NORMAL_BORDER_TOPLEFT2007);
_layoutNormalSepRight.SeparatorSize = new Size(NORMAL_BORDER_RIGHT2007, NORMAL_BORDER_RIGHT2007);
_layoutCollapsedImagePadding.PreferredPadding = COLLAPSED_IMAGE_PADDING_2007;
_lastRibbonShape = PaletteRibbonShape.Office2007;
break;
case PaletteRibbonShape.Office2010:
_totalBorders = TOTAL_LEFT_RIGHT_BORDERS_2010;
_layoutNormalMain.VertOffset = VERT_OFFSET_2010;
_layoutNormalSepTop.SeparatorSize = new Size(NORMAL_BORDER_TOP2010, NORMAL_BORDER_TOP2010);
_layoutNormalSepLeft.SeparatorSize = new Size(NORMAL_BORDER_LEFT2010, NORMAL_BORDER_LEFT2010);
_layoutNormalSepRight.SeparatorSize = new Size(NORMAL_BORDER_RIGHT2010, NORMAL_BORDER_RIGHT2010);
_layoutCollapsedImagePadding.PreferredPadding = COLLAPSED_IMAGE_PADDING_2010;
_lastRibbonShape = PaletteRibbonShape.Office2010;
break;
}
}
}
}