Ejemplo n.º 1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:TeDivisionLayoutMgr"/> class.
		/// </summary>
		/// <param name="layoutConfig">The layout config.</param>
		/// <param name="pubDiv">The pub div.</param>
		/// <param name="filterInstance">The filter instance.</param>
		/// <param name="numberOfColumns">The number of columns.</param>
		/// <param name="fIntroDivision">set to <c>true</c> for an intro division, otherwise
		/// <c>false</c>.</param>
		/// <remarks>We explicitly specify the number of columns for this division because we
		/// use the same IPubDivision for multiple division with different number of columns.
		/// </remarks>
		/// ------------------------------------------------------------------------------------
		public TeDivisionLayoutMgr(IPrintLayoutConfigurer layoutConfig,
			IPubDivision pubDiv, int filterInstance, int numberOfColumns, bool fIntroDivision)
			: base(layoutConfig, pubDiv, filterInstance)
		{
			m_numberMainStreamColumns = numberOfColumns;
			m_fIntroDivision = fIntroDivision;
		}
Ejemplo n.º 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:TeDivisionLayoutMgr"/> class.
 /// </summary>
 /// <param name="layoutConfig">The layout config.</param>
 /// <param name="pubDiv">The pub div.</param>
 /// <param name="filterInstance">The filter instance.</param>
 /// <param name="numberOfColumns">The number of columns.</param>
 /// <param name="fIntroDivision">set to <c>true</c> for an intro division, otherwise
 /// <c>false</c>.</param>
 /// <remarks>We explicitly specify the number of columns for this division because we
 /// use the same IPubDivision for multiple division with different number of columns.
 /// </remarks>
 /// ------------------------------------------------------------------------------------
 public TeDivisionLayoutMgr(IPrintLayoutConfigurer layoutConfig,
                            IPubDivision pubDiv, int filterInstance, int numberOfColumns, bool fIntroDivision)
     : base(layoutConfig, pubDiv, filterInstance)
 {
     m_numberMainStreamColumns = numberOfColumns;
     m_fIntroDivision          = fIntroDivision;
 }
Ejemplo n.º 3
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="DivisionLayoutMgr"/> class.
		/// </summary>
		/// <param name="configurer">The print layout configurer that provides details about
		/// the streams that belong to this division.</param>
		/// <param name="division">The PubDivision used to get margin and header/
		/// footer settings</param>
		/// <param name="filterInstance">filter instance to use for book filtering</param>
		/// -----------------------------------------------------------------------------------
		public DivisionLayoutMgr(IPrintLayoutConfigurer configurer, IPubDivision division,
			int filterInstance)
		{
			m_filterInstance = filterInstance;
			m_configurer = configurer;
			m_pubDivision = division;
			m_numberMainStreamColumns = (division == null) ? 1 : division.NumColumns;
			SetInfoFromDB();
		}
Ejemplo n.º 4
0
		/// -----------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="DummyDivision"/> class.
		/// </summary>
		/// <param name="configurer">The print layout configurer that provides details about
		/// the streams that belong to this division.</param>
		/// <param name="nColumns">Number of columns</param>
		/// -----------------------------------------------------------------------------------
		public DummyDivision(IPrintLayoutConfigurer configurer, int nColumns)
			: base(configurer, null, 0)
		{
			m_numberMainStreamColumns = nColumns;
		}