<!--#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_PageCopyDlg.inc
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Encapsulate the ASP logic associated with PageCopyDlg.asp
'
' Implements the INCASPPageManager interface:
'	- Sub InitManager()
'
' Exposes the following properties:
'	- Property ShowLabelURL
'	- Property ShowChannelTreeURL
'	- Property ShowChannelNameURL
'	- Property Charset
'	- Property Error
' ********************************************************************

Class CNCASPPageManager_PageCopyDlg

	' -- The Label URL
	Public ShowLabelURL

	' -- The Tree URL that hosts the lists of channels
	Public ShowChannelTreeURL

	' -- The ChannelName URL that shows the selected channel name and ok button
	Public ShowChannelNameURL

	' -- The hidden frame that used for show error message
	Public ShowErrorURL

	' -- Charset for multi-language
	Public Charset


	' -- Error code
	Public Error

	' ---- [Private] Class standard initialization routine
	Private Sub Class_Initialize()
		ShowLabelURL = "#"
		ShowChannelTreeURL = "#"
		ShowChannelNameURL = "#"
		ShowErrorURL = "#"
		Error = ""
	End Sub

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

		Call SetupCharset

		Call SetupLabelURL

		Call SetupTreeURL

		Call SetupNameInTextBoxURL

		Call SetupErrorReturnURL
	End Sub


	' ---- [Private] Set up the tree control
	Private Sub SetupLabelURL()
		ShowLabelURL = IDS_FRAMEWORK_VIRTUAL_PATH & IDS_PAGEOPERATIONEDIT_PAGECOPY_PATH & _
							 "/ChannelLabel.asp?" & URLEncodedQueryString()
	End Sub


	' ---- [Private] Set up the tree control
	Private Sub SetupTreeURL()
		ShowChannelTreeURL = IDS_FRAMEWORK_VIRTUAL_PATH & IDS_PAGEOPERATIONEDIT_PAGECOPY_PATH & _
							 "/ChannelsBrowse.asp?" & URLEncodedQueryString() & "&" & _
							 IDS_QSTR_PAGECREATIONEDIT_FRESHTREE & "=" & IDS_PAGECREATIONEDIT_FRESHTREE_TRUE

	End Sub


	' ---- [Private] Set up textbox for showing the channel Name
	Private Sub SetupNameInTextBoxURL()
		ShowChannelNameURL = IDS_FRAMEWORK_VIRTUAL_PATH & IDS_PAGEOPERATIONEDIT_PAGECOPY_PATH & _
							 "/ChannelName.asp?" & URLEncodedQueryString()
	End Sub


	Private Sub SetupErrorReturnURL()
		ShowErrorURL = IDS_FRAMEWORK_VIRTUAL_PATH & IDS_PAGEOPERATIONEDIT_PAGECOPY_PATH & _
							 "/ChannelError.asp?" & URLEncodedQueryString()
	End Sub

		' ---- [Private]
	Private Sub SetupCharset()
		Charset = AutoSession.ThisPosting.Charset
	End Sub


End Class

%>
