5#include "Stroika/Foundation/StroikaPreComp.h" 
    7#include "LedItControlItem.h" 
    8#include "LedItDocument.h" 
   10#include "LedItServerItem.h" 
   13using namespace Stroika::Frameworks::Led;
 
   14using namespace Stroika::Frameworks::Led::Platform;
 
   15using namespace Stroika::Frameworks::Led::StyledTextIO;
 
   22IMPLEMENT_DYNAMIC (LedItServerItem, COleServerItem)
 
   24LedItServerItem::LedItServerItem (LedItDocument* pContainerDoc)
 
   25    : COleServerItem (pContainerDoc, TRUE)
 
   31LedItServerItem::~LedItServerItem ()
 
   35void LedItServerItem::Serialize (CArchive& ar)
 
   43    if (!IsLinkedItem ()) {
 
   44        LedItDocument* pDoc = GetDocument ();
 
   50BOOL LedItServerItem::OnGetExtent (DVASPECT dwDrawAspect, CSize& rSize)
 
   58    if (dwDrawAspect != DVASPECT_CONTENT) {
 
   59        return COleServerItem::OnGetExtent (dwDrawAspect, rSize);
 
   66    [[maybe_unused]] LedItDocument* pDoc = GetDocument ();
 
   71    rSize = CSize (3000, 3000); 
 
   76BOOL LedItServerItem::OnDraw (CDC* pDC, CSize& )
 
   78    LedItDocument* pDoc = GetDocument ();
 
   83    pDC->SetMapMode (MM_ANISOTROPIC);
 
   84    pDC->SetWindowOrg (0, 0);
 
   85    pDC->SetWindowExt (3000, 3000);
 
   96    POSITION          pos   = pDoc->GetStartPosition ();
 
   97    LedItControlItem* pItem = (LedItControlItem*)pDoc->GetNextClientItem (pos);
 
   99        pItem->Draw (pDC, CRect (10, 10, 1010, 1010));
 
  105void LedItServerItem::AssertValid ()
 const 
  107    COleServerItem::AssertValid ();
 
  110void LedItServerItem::Dump (CDumpContext& dc)
 const 
  112    COleServerItem::Dump (dc);