* Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include <LayoutContext.h>
BLayoutContextListener::BLayoutContextListener()
{
}
BLayoutContextListener::~BLayoutContextListener()
{
}
void BLayoutContextListener::_ReservedLayoutContextListener1() {}
void BLayoutContextListener::_ReservedLayoutContextListener2() {}
void BLayoutContextListener::_ReservedLayoutContextListener3() {}
void BLayoutContextListener::_ReservedLayoutContextListener4() {}
void BLayoutContextListener::_ReservedLayoutContextListener5() {}
BLayoutContext::BLayoutContext()
{
}
BLayoutContext::~BLayoutContext()
{
for (int32 i = 0;
BLayoutContextListener* listener
= (BLayoutContextListener*)fListeners.ItemAt(i);
i++) {
listener->LayoutContextLeft(this);
}
}
void
BLayoutContext::AddListener(BLayoutContextListener* listener)
{
if (listener)
fListeners.AddItem(listener);
}
void
BLayoutContext::RemoveListener(BLayoutContextListener* listener)
{
if (listener)
fListeners.RemoveItem(listener);
}