コード例 #1
0
ファイル: ConstChartBody.cs プロジェクト: sillsdev/FieldWorks
		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();
		}
コード例 #2
0
ファイル: ConstChartBody.cs プロジェクト: sillsdev/FieldWorks
		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();
		}
コード例 #3
0
ファイル: ConstChartBody.cs プロジェクト: sillsdev/FieldWorks
		/// <summary>
		/// Make one.
		/// </summary>
		/// <param name="baseObj"></param>
		/// <param name="cache"></param>
		/// <param name="vwenv"></param>
		/// <param name="hvo"></param>
		public MakeCellsMethod(ConstChartVc baseObj, FdoCache cache, IVwEnv vwenv, int hvo)
		{
			m_this = baseObj;
			m_cache = cache;
			m_rowRepo = m_cache.ServiceLocator.GetInstance<IConstChartRowRepository>();
			m_partRepo = m_cache.ServiceLocator.GetInstance<IConstituentChartCellPartRepository>();

			// Decorator makes sure that things get put out in the right order if chart is RtL
			m_chart = baseObj.m_chart;
			//var sPopFormatting = m_cache.TsStrFactory.MakeString(Convert.ToString(m_chart.PDF), m_cache.DefaultAnalWs);
			m_vwenv = new ChartRowEnvDecorator(vwenv);

			m_hvoRow = hvo;
			m_row = m_rowRepo.GetObject(m_hvoRow);
		}