C# 클래스 SobekCM.Library.HTML.abstractHtmlSubwriter

Abstract class which all HTML subwriters must extend. This class contains some of the basic HTML-writing helper values and contains some of the values used by many of the subclasses. HTML subwriters are the top level writing classes employed by the Html_MainWriter.
파일 보기 프로젝트 열기: MarkVSullivan/SobekCM-Web-Application 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
RequestSpecificValues RequestCache
emptybehaviors List

공개 메소드들

메소드 설명
Add_Banner ( TextWriter Output, string Banner_Division_Name, string Web_Page_Title, Navigation_Object CurrentMode, Web_Skin_Object HTML_Skin, Item_Aggregation Hierarchy_Object ) : void

Adds the banner to the response stream from either the html web skin or from the current item aggreagtion object, depending on flags in the web skin object

This is called by several html subwriters that otherwise tell this class to suppress writing the banner

Add_Footer ( TextWriter Output ) : void

Add the footer to the output

Add_Header ( TextWriter Output ) : void

Add the header to the output

Write_Additional_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void

Writes additional HTML to the output stream just before the main place holder but after the TocPlaceHolder in the itemNavForm form.

Write_Final_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void

Writes final HTML after all the forms

Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : bool

Writes the HTML generated by this abstract html subwriter directly to the response stream

Write_Internal_Header_HTML ( TextWriter Output, User_Object Current_User ) : void

Adds the internal header HTML for this specific HTML writer

Write_ItemNavForm_Closing ( TextWriter Output, Custom_Tracer Tracer ) : void

Writes final HTML to the output stream after all the placeholders and just before the itemNavForm is closed.

Write_ItemNavForm_Opening ( TextWriter Output, Custom_Tracer Tracer ) : void

Writes the html to the output stream open the itemNavForm, which appears just before the TocPlaceHolder

Write_Within_HTML_Head ( TextWriter Output, Custom_Tracer Tracer ) : void

Write any additional values within the HTML Head of the final served page

By default this does nothing, but can be overwritten by all the individual html subwriters

보호된 메소드들

메소드 설명
Get_Browse_Info ( Navigation_Object Current_Mode, Item_Aggregation Aggregation_Object, string Base_Directory, Custom_Tracer Tracer, SobekCM.Core.Aggregations.Item_Aggregation_Child_Page &Browse_Object, SobekCM.Core.Results.Search_Results_Statistics &Complete_Result_Set_Info, List &Paged_Results, HTML_Based_Content &Browse_Info_Display_Text ) : bool

Gets the browse or info object and any other needed data for display ( text to display)

This attempts to pull the objects from the cache. If unsuccessful, it builds the objects from the database and hands off to the CachedDataManager to store in the cache

Get_Collection ( Navigation_Object Current_Mode, Custom_Tracer Tracer, Item_Aggregation &Aggregation_Object ) : bool

Gets the item aggregation and search fields for the current item aggregation

This attempts to pull the objects from the cache. If unsuccessful, it builds the objects from the database and hands off to the CachedDataManager to store in the cache.

Get_Top_Level_Collection ( Navigation_Object Current_Mode, Custom_Tracer Tracer, Item_Aggregation &Aggregation_Object ) : bool

Gets the item aggregation and search fields for the current item aggregation

This attempts to pull the objects from the cache. If unsuccessful, it builds the objects from the database and hands off to the CachedDataManager to store in the cache.

Write_Internal_Header_Search_Box ( TextWriter Output ) : void

Adds the internal header search box to the current output stream

abstractHtmlSubwriter ( RequestCache RequestSpecificValues ) : System

Base constructor

비공개 메소드들

메소드 설명
set_web_skin_from_aggregation ( Navigation_Object Current_Mode, Item_Aggregation Aggregation_Object ) : void

메소드 상세

Add_Banner() 공개 정적인 메소드

Adds the banner to the response stream from either the html web skin or from the current item aggreagtion object, depending on flags in the web skin object
This is called by several html subwriters that otherwise tell this class to suppress writing the banner
public static Add_Banner ( TextWriter Output, string Banner_Division_Name, string Web_Page_Title, Navigation_Object CurrentMode, Web_Skin_Object HTML_Skin, Item_Aggregation Hierarchy_Object ) : void
Output System.IO.TextWriter Stream to which to write the HTML for the banner
Banner_Division_Name string Name for the wrapper division around the banner
Web_Page_Title string Web page title to add behind the banner image
CurrentMode SobekCM.Core.Navigation.Navigation_Object Mode / navigation information for the current request
HTML_Skin SobekCM.Core.Skins.Web_Skin_Object HTML Web skin which controls the overall appearance of this digital library
Hierarchy_Object SobekCM.Core.Aggregations.Item_Aggregation Current item aggregation object to display
리턴 void

Add_Footer() 공개 메소드

Add the footer to the output
public Add_Footer ( TextWriter Output ) : void
Output System.IO.TextWriter Stream to which to write the HTML for this footer
리턴 void

Add_Header() 공개 메소드

Add the header to the output
public Add_Header ( TextWriter Output ) : void
Output System.IO.TextWriter Stream to which to write the HTML for this header
리턴 void

Get_Browse_Info() 보호된 정적인 메소드

Gets the browse or info object and any other needed data for display ( text to display)
This attempts to pull the objects from the cache. If unsuccessful, it builds the objects from the database and hands off to the CachedDataManager to store in the cache
protected static Get_Browse_Info ( Navigation_Object Current_Mode, Item_Aggregation Aggregation_Object, string Base_Directory, Custom_Tracer Tracer, SobekCM.Core.Aggregations.Item_Aggregation_Child_Page &Browse_Object, SobekCM.Core.Results.Search_Results_Statistics &Complete_Result_Set_Info, List &Paged_Results, HTML_Based_Content &Browse_Info_Display_Text ) : bool
Current_Mode SobekCM.Core.Navigation.Navigation_Object Mode / navigation information for the current request
Aggregation_Object SobekCM.Core.Aggregations.Item_Aggregation Item Aggregation object
Base_Directory string Base directory location under which the the CMS/info source file will be found
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
Browse_Object SobekCM.Core.Aggregations.Item_Aggregation_Child_Page [OUT] Stores all the information about this browse or info
Complete_Result_Set_Info SobekCM.Core.Results.Search_Results_Statistics [OUT] Information about the entire set of results
Paged_Results List [OUT] List of search results for the requested page of results
Browse_Info_Display_Text SobekCM.Core.WebContent.HTML_Based_Content [OUT] Static HTML-based content to be displayed if this is browing a staticly created html source file
리턴 bool

Get_Collection() 보호된 정적인 메소드

Gets the item aggregation and search fields for the current item aggregation
This attempts to pull the objects from the cache. If unsuccessful, it builds the objects from the database and hands off to the CachedDataManager to store in the cache.
protected static Get_Collection ( Navigation_Object Current_Mode, Custom_Tracer Tracer, Item_Aggregation &Aggregation_Object ) : bool
Current_Mode SobekCM.Core.Navigation.Navigation_Object Mode / navigation information for the current request
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
Aggregation_Object SobekCM.Core.Aggregations.Item_Aggregation [OUT] Fully-built object for the current aggregation object
리턴 bool

Get_Top_Level_Collection() 보호된 정적인 메소드

Gets the item aggregation and search fields for the current item aggregation
This attempts to pull the objects from the cache. If unsuccessful, it builds the objects from the database and hands off to the CachedDataManager to store in the cache.
protected static Get_Top_Level_Collection ( Navigation_Object Current_Mode, Custom_Tracer Tracer, Item_Aggregation &Aggregation_Object ) : bool
Current_Mode SobekCM.Core.Navigation.Navigation_Object Mode / navigation information for the current request
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
Aggregation_Object SobekCM.Core.Aggregations.Item_Aggregation [OUT] Fully-built object for the current aggregation object
리턴 bool

Write_Additional_HTML() 공개 메소드

Writes additional HTML to the output stream just before the main place holder but after the TocPlaceHolder in the itemNavForm form.
public Write_Additional_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Stream to directly write to
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
리턴 void

Write_Final_HTML() 공개 메소드

Writes final HTML after all the forms
public Write_Final_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Stream to directly write to
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
리턴 void

Write_HTML() 공개 추상적인 메소드

Writes the HTML generated by this abstract html subwriter directly to the response stream
public abstract Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : bool
Output System.IO.TextWriter Stream to which to write the HTML for this subwriter
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
리턴 bool

Write_Internal_Header_HTML() 공개 메소드

Adds the internal header HTML for this specific HTML writer
public Write_Internal_Header_HTML ( TextWriter Output, User_Object Current_User ) : void
Output System.IO.TextWriter Stream to which to write the HTML for the internal header information
Current_User SobekCM.Core.Users.User_Object Currently logged on user, to determine specific rights
리턴 void

Write_Internal_Header_Search_Box() 보호된 메소드

Adds the internal header search box to the current output stream
protected Write_Internal_Header_Search_Box ( TextWriter Output ) : void
Output System.IO.TextWriter Output stream to write the html for the internal header search box to
리턴 void

Write_ItemNavForm_Closing() 공개 메소드

Writes final HTML to the output stream after all the placeholders and just before the itemNavForm is closed.
public Write_ItemNavForm_Closing ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Stream to which to write the text for this main writer
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
리턴 void

Write_ItemNavForm_Opening() 공개 메소드

Writes the html to the output stream open the itemNavForm, which appears just before the TocPlaceHolder
public Write_ItemNavForm_Opening ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Stream to directly write to
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
리턴 void

Write_Within_HTML_Head() 공개 메소드

Write any additional values within the HTML Head of the final served page
By default this does nothing, but can be overwritten by all the individual html subwriters
public Write_Within_HTML_Head ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Output stream currently within the HTML head tags
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
리턴 void

abstractHtmlSubwriter() 보호된 메소드

Base constructor
protected abstractHtmlSubwriter ( RequestCache RequestSpecificValues ) : System
RequestSpecificValues RequestCache All the necessary, non-global data specific to the current request
리턴 System

프로퍼티 상세

RequestSpecificValues 보호되어 있는 프로퍼티

Protected field contains the information specific to the current request
protected RequestCache RequestSpecificValues
리턴 RequestCache

emptybehaviors 보호되어 있는 정적으로 프로퍼티

Empty list of behaviors, returned by default
This just prevents an empty set from having to be created over and over
protected static List emptybehaviors
리턴 List