<!--#include virtual="/NR/System/WBC/Internals/Integration/InternalHooks/PlaceholderHooks.inc"-->
<!--#include virtual="/NR/System/WBC/Customizable/Hooks/PlaceholderHooks.inc"-->

<%


Class CPlaceholderEmitter
    Public Name
    Public Width
    Public Height
    Public Rows 
    Public Columns 
    Public Style
    Public HtmlSrcCodeEditable
    Public pPlaceholder
    
    Private Sub Class_Initialize()
        call SetDefaultValues
    End Sub
    
    Public Sub SetDefaultValues()
        Name = ""
        Width = 150
        Height = 150
        Style = ""
        Rows = 25
        Columns = 40
        HtmlSrcCodeEditable = false
    End Sub
    
    Public Sub Emit(phName)
        Name = phName
        InternalEmitPlaceholder(me)
        call SetDefaultValues
    End Sub
End Class

Dim PlaceholderEmitter
set PlaceholderEmitter = new CPlaceholderEmitter

Sub EmitPlaceholder(strPhName)
	PlaceholderEmitter.Emit(strPhName)
End Sub


' ---- [Public] Replace the EmitPlaceholder() call in Emitter.inc with run-time only implementation
Sub InternalEmitPlaceholder(PlaceholderEmitter)
	Dim pThis
	Set pThis = AutoSession.This
	
	' Call hook function to invoke customzied script before the operation
	If OnInternalBeforeEmit( pThis, PlaceholderEmitter.Name, IDS_EMIT_VIEW ) And _
		OnBeforeEmit( pThis, PlaceholderEmitter.Name, IDS_EMIT_VIEW ) Then

		Response.Write AutoSession.This.Placeholders(PlaceholderEmitter.Name).html
		

		' Call Internal Hook
		Call OnInternalAfterEmit( pThis, PlaceholderEmitter.Name, IDS_EMIT_VIEW )

		' Call External Customizable Hook
		Call OnAfterEmit( pThis, PlaceholderEmitter.Name, IDS_EMIT_VIEW )
		
	End If
End Sub

%>