SIL.FieldWorks.Common.RootSites.PrintRootSite.SetPrintRange C# (CSharp) Method

SetPrintRange() private method

Sets the print range, if necessary, in the PrintSettings. Also initializes the HasMorePages property.
private SetPrintRange ( ) : void
return void
		private void SetPrintRange()
		{
			// If the user wants to print all the pages, fill in the print pages range.
			if (m_psettings.PrintRange == PrintRange.AllPages || m_psettings.PrintRange == PrintRange.Selection)
			{
				// REVIEW: If we ever have a a way to specify a low end to the available range,
				// the FromPage will have to change to account for that.
				m_psettings.FromPage = 1;
				m_psettings.ToPage = m_totalNumberOfPages;
			}
			else if (m_psettings.FromPage > m_totalNumberOfPages)
			{
				// At this point, we know the user specified a page range that is outside the
				// available range of pages to print.
				m_morePagesToPrint = false;
			}
			m_nextPageToPrint = m_psettings.FromPage;
		}
		#endregion