public void CopyAllSelected(DiagramEntityContainer container)

        /* ============================================================
         *      Function :		CDiagramClipboardHandler::CopyAllSelected
         *      Description :	Clones all selected object to the paste
         *                                      array.
         *      Access :		Public
         *
         *      Return :		void
         *      Parameters :	none
         *
         *      Usage :			Call to copy all selected objects to the
         *                                      clipboard. "Paste" will put them on screen.
         *
         * ============================================================*/
        {
            ClearPaste();
            List <object> arr = container.GetData();


            int max = arr.Count;

            for (int t = 0; t < max; t++)
            {
                DiagramEntity obj = (DiagramEntity)(arr[t]);
                if (obj.Selected)
                {
                    DiagramEntity newobj = obj.Clone();
                    newobj.Selected = (true);
                    newobj.MoveRect(10, 10);
                    newobj.GroupID = (obj.GroupID);
                    m_paste.Add(newobj);
                }
            }
        }
        public void Copy(DiagramEntity obj)

        /* ============================================================
         *      Function :		CDiagramClipboardHandler::Copy
         *      Description :	Copies the object "obj" to the 'clipboard'.
         *      Access :		Public
         *
         *      Return :		void
         *      Parameters :	CDiagramEntity* obj	-	The object to copy.
         *
         *      Usage :			Call in response to a Copy-command. Note
         *                                      that "obj" will only be copied to the
         *                                      clipboard, not the screen. See also the
         *                                      functions for copy/paste below.
         *
         * ============================================================*/
        {
            ClearPaste();
            DiagramEntity newobj = obj.Clone();

            newobj.Selected = (true);
            newobj.MoveRect(10, 10);
            m_paste.Add(newobj);
        }