protected virtual void DrawRibbonTabSelectedTop2007(Rectangle rect,
Color c4, Color c5,
MementoRibbonTabSelected2007 cache)
{
GraphicsPath outsidePath = new GraphicsPath();
// Create path for a curved dark border around the tab
outsidePath.AddLine(rect.Left, rect.Bottom - 2, rect.Left + 1, rect.Bottom - 3);
outsidePath.AddLine(rect.Left + 1, rect.Bottom - 3, rect.Left + 1, rect.Top + 1.5f);
outsidePath.AddLine(rect.Left + 1, rect.Top + 1.5f, rect.Left + 3, rect.Top);
outsidePath.AddLine(rect.Left + 3, rect.Top, rect.Right - 4, rect.Top);
outsidePath.AddLine(rect.Right - 4, rect.Top, rect.Right - 2, rect.Top + 1.5f);
outsidePath.AddLine(rect.Right - 2, rect.Top + 1.5f, rect.Right - 2, rect.Bottom - 3);
outsidePath.AddLine(rect.Right - 2, rect.Bottom - 3, rect.Right - 1, rect.Bottom - 2);
cache.centerRect = new Rectangle(rect.Left + 4, rect.Top + 4, rect.Width - 8, rect.Height - 4);
RectangleF centerRectF = new RectangleF(cache.centerRect.Left - 1, cache.centerRect.Top - 1, cache.centerRect.Width + 2, cache.centerRect.Height + 2);
cache.centerBrush = new LinearGradientBrush(centerRectF, c4, c5, 90f);
cache.outsidePath = outsidePath;
}