private void PrintColumnGroupHeaders(int hvo, IVwEnv vwenv) { var analWs = m_cache.DefaultAnalWs; var oldEnv = vwenv; // store this for later MakeTableAndRowWithStdWidths(vwenv, hvo, true); vwenv = new ChartRowEnvDecorator(vwenv); // in case this is a RTL chart (vwenv as ChartRowEnvDecorator).IsRtL = m_chart.IsRightToLeft; PrintRowNumCellHeader(vwenv, analWs); vwenv.AddObjProp(DsChartTags.kflidTemplate, this, kfragTemplateHeader); PrintNotesCellHeader(vwenv, analWs); (vwenv as ChartRowEnvDecorator).FlushDecorator(); // if it is a RTL chart, put it out reversed. vwenv = oldEnv; // remove Decorator vwenv.CloseTableRow(); vwenv.CloseTable(); }
private void PrintIndividualColumnHeaders(int hvo, IVwEnv vwenv) { var tssFact = m_cache.TsStrFactory; var analWs = m_cache.DefaultAnalWs; var oldEnv = vwenv; MakeTableAndRowWithStdWidths(vwenv, hvo, true); vwenv = new ChartRowEnvDecorator(vwenv); // in case this is a RTL chart (vwenv as ChartRowEnvDecorator).IsRtL = m_chart.IsRightToLeft; MakeCellsMethod.OpenRowNumberCell(vwenv); // blank cell under header for row numbers vwenv.CloseTableCell(); PrintTemplateColumnHeaders(vwenv, tssFact, analWs); MakeCellsMethod.OpenStandardCell(vwenv, 1, false); // blank cell below Notes header vwenv.CloseTableCell(); (vwenv as ChartRowEnvDecorator).FlushDecorator(); // if RTL, put out headers reversed vwenv = oldEnv; // remove Decorator vwenv.CloseTableRow(); vwenv.CloseTable(); }