<!--#include virtual="/NR/System/WBC/Internals/Main/WBCApp.inc"-->
<!--#include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/PageOperationUIStrings.inc" -->
<!--#include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/EditMode/InternalProgrammingConstants.inc" -->
<!--#include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/EditMode/EntryProgrammingConstants.inc" -->


<%
' ********************************************************************
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	IMPORTANT.  Please read the legal.txt file, located in the
'	"<CMS Install Directory>\Server\httpexec\WBC\Internals"
'	directory, governing the use of this internal file."
' ********************************************************************

' ********************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/
'			/EditMode/PageCopy/CNCASPPageManager_ChannelLabel.inc
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Encapsulate the ASP logic associated with ChannelsBrowse.asp
'
' Implements the INCASPPageManager interface:
'	- Sub InitManager()
'
' Exposes the following properties:
'	- Property m_strCharSet
'	- Property m_pCurrentPageNode
'	- Property m_strError
'	- Property m_lCodePage
'	- Property m_pASPUtils
' ********************************************************************

Class CNCASPPageManager_ChannelLabel

	' -- The current Posting Node
	Private m_pCurrentPageNode

	' -- m_strCharSet for the m_strError page
	Private m_strCharSet

	' -- Code Page for MLS
	Private m_lCodePage

	' -- m_strError code
	Private m_strError

	' -- ASPUtil for MLS support
	Private m_pASPUtils

	Public Property Get CurrentPageNode()
		Set CurrentPageNode = m_pCurrentPageNode
	End Property

	Public Property Get Charset()
		CharSet = m_strCharset
	End Property

	Public Property Get CodePage()
		CodePage = m_lCodePage
	End Property

	Public Property Get ErrorString()
		ErrorString = m_strError
	End Property

	Public Property Get ASPUtils()
		Set ASPUtils = m_pASPUtils
	End Property

	' ---- [Private] Class standard initialization routine
	Private Sub Class_Initialize()
		Set m_pCurrentPageNode = Nothing
		m_strCharSet = ""
		m_lCodePage = 0
		m_strError = IDS_E_NO_ERROR
		Set m_pASPUtils = Nothing
	End Sub


	' ---- [Public] InitManager will take care of all programming logic in the ASP page
	Public Sub InitManager()

		' -- Setup CurrentObject
		Call SetupCurrentPageNode

		Call SetupMLSInfo()

	End Sub

	' ---- [Private] Set up the page object
	Private Sub SetupCurrentPageNode()
		Dim strPageGuid

		strPageGuid = Request.QueryString(IDS_QSTR_PAGEOPERATIONEDIT_SOURCEPAGE)
		If strPageGuid = "" Then
			m_strError = IDS_E_ERR_PAGE_NOT_FOUND
		Else
			Set m_pCurrentPageNode = AutoSession.Searches.GetByGUID(strPageGuid)
			If (m_pCurrentPageNode is Nothing) Then
				m_strError = IDS_E_ERR_PAGE_NOT_FOUND
			End If
		End If
	End Sub

		' ---- [Private]
	Private Sub SetupMLSInfo()
		m_strCharSet = AutoSession.ThisPosting.CharSet
		m_lCodePage = AutoSession.ThisPosting.CodePage
		Set m_pASPUtils = GetInitializedASPUtils()
	End Sub


End Class

%>
