home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / MSDEV98 / BIN / IDE / CLIPASST.DLL / string.txt next >
Text File  |  1998-06-18  |  14KB  |  168 lines

  1. 1    Clipboard assistant
  2. 2    Clipboard Assistant
  3. 3    Clipboard Assistant
  4. 4    This component inserts custom handlers for managing the Copy, Cut and Paste menu items under the Edit menu.
  5. 5    Select a view class.
  6. 6    Enter a string with which to register a custom clipboard format.
  7. 10    The selected class is derived from CEditView, which contains\nbuilt in support for the Copy, Cut, and Paste menu items.\n\nDo you wish to continue and override this built in support?
  8. 11    The selected class is derived from CRichEditView, which contains\nbuilt in support for the Copy, Cut, and Paste menu items.\n\nDo you wish to continue and override this built in support?
  9. 12    This component has already been applied to this project, and cannot be applied a second time!
  10. 13    The clipboard assistant could find no classes derived from CView in this project. At least one class derived from CView is required to insert this component into this project.
  11. 14    Could not add afxpriv.h to project include file.\nYou will need to add a #include directive for afxpriv.h by hand.
  12. 15    Could not find the constructor for the specified view class.\nYou will need to add the code to initialize m_nClipboardFormat by hand.
  13. 16    Component insertion cancelled at user's request.
  14. 17    The Clipboard Assistant was not able to insert the specified support for clipboard operations. The Clipboard Assistant will not overwrite existing functions. It is very likely that one of the functions this component was trying to write already exists for the specified class.
  15. 18    The Clipboard Assistant has successfully modified your project files, to add clipboard support to the specified CView derived class.
  16. 100    BOOL %s::IsEditCtrl(CWnd* pWnd)
  17. 101    BOOL %s::IsRichEditCtrl(CWnd* pWnd)
  18. 102    int %s::IsRichOrEditCtrl(HWND hWnd)
  19. 120    afx_msg void %s::OnUpdateEditCopyCut(CCmdUI* pCmdUI)
  20. 121    afx_msg void %s::OnUpdateEditPaste(CCmdUI* pCmdUI)
  21. 122    afx_msg void %s::OnUpdateEditUndo(CCmdUI* pCmdUI)
  22. 123    afx_msg void %s::OnEditCopy()
  23. 124    afx_msg void %s::OnEditCut()
  24. 125    afx_msg void %s::OnEditPaste()
  25. 126    afx_msg void %s::OnEditUndo()
  26. 127    BOOL %s::IsSelected()
  27. 128    void %s::DoCutCopyPaste(CArchive &ar, BOOL bCut)
  28. 129    UINT %s::m_nClipboardFormat
  29. 140    ON_UPDATE_COMMAND_UI(ID_EDIT_COPY, OnUpdateEditCopyCut)
  30. 141    ON_UPDATE_COMMAND_UI(ID_EDIT_CUT, OnUpdateEditCopyCut)
  31. 142    ON_UPDATE_COMMAND_UI(ID_EDIT_PASTE, OnUpdateEditPaste)
  32. 143    ON_UPDATE_COMMAND_UI(ID_EDIT_UNDO, OnUpdateEditUndo)
  33. 144    ON_COMMAND(ID_EDIT_COPY, OnEditCopy)
  34. 145    ON_COMMAND(ID_EDIT_CUT, OnEditCut)
  35. 146    ON_COMMAND(ID_EDIT_PASTE, OnEditPaste)
  36. 147    ON_COMMAND(ID_EDIT_UNDO, OnEditUndo)
  37. 160    \n    ASSERT_VALID(pWnd);\n\n    TCHAR lpClassName[32];\n    ::GetClassName(pWnd->GetSafeHwnd(), lpClassName, 32);\n\n    if (!_tcscmp(lpClassName, _T("Edit")))\n        return TRUE;\n\n    return FALSE;
  38. 161    \n    {\n        CWnd* pWnd = CWnd::GetFocus();\n\n        if (pWnd != NULL)\n        {\n            if (IsEditCtrl(pWnd))\n            {\n                int nStart, nEnd;\n
  39. 162                    ((CEdit*)pWnd)->GetSel(nStart, nEnd);\n                pCmdUI->Enable(nStart != nEnd);\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  40. 163    \n    {\n        CWnd* pWnd = CWnd::GetFocus();\n\n        if (pWnd != NULL)\n        {\n            if (IsEditCtrl(pWnd))\n            {\n
  41. 164                    pCmdUI->Enable(::IsClipboardFormatAvailable(CF_TEXT));\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  42. 166    \n    {\n        CWnd* pWnd = CWnd::GetFocus();\n\n        if (pWnd != NULL)\n        {\n            if (IsEditCtrl(pWnd))\n            {\n                pCmdUI->Enable(((CEdit*)pWnd)->CanUndo());\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  43. 168    \n    {\n        CEdit* pEdit = (CEdit*)CWnd::GetFocus();\n        pEdit->Copy();\n    }
  44. 170    \n    {\n        CEdit* pEdit = (CEdit*)CWnd::GetFocus();\n        pEdit->Cut();\n    }
  45. 172    \n    {\n        CEdit* pEdit = (CEdit*)CWnd::GetFocus();\n        pEdit->Paste();\n    }
  46. 174    \n    {\n        CEdit* pEdit = (CEdit*)CWnd::GetFocus();\n        pEdit->Undo();\n    }
  47. 181    \n    ASSERT_VALID(pWnd);\n\n    TCHAR lpClassName[32];\n    ::GetClassName(pWnd->GetSafeHwnd(), lpClassName, 32);\n\n    if (!_tcscmp(lpClassName, _T("RICHEDIT")))\n        return TRUE;\n\n    return FALSE;
  48. 182    \n    {\n        CWnd* pWnd = CWnd::GetFocus();\n\n        if (pWnd != NULL)\n        {\n            if (IsRichEditCtrl(pWnd))\n            {\n                int nStart, nEnd;\n                ((CEdit*)pWnd)->GetSel(nStart, nEnd);\n
  49. 183                    pCmdUI->Enable(nStart != nEnd);\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  50. 184    \n    {\n        CWnd* pWnd = CWnd::GetFocus();\n\n        if (pWnd != NULL)\n        {\n            if (IsRichEditCtrl(pWnd))\n            {\n
  51. 185                    pCmdUI->Enable(::IsClipboardFormatAvailable(CF_TEXT));\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  52. 186    \n    {\n        CWnd* pWnd = CWnd::GetFocus();\n\n        if (pWnd != NULL)\n        {\n            if (IsRichEditCtrl(pWnd))\n            {\n
  53. 187                    pCmdUI->Enable(((CEdit*)pWnd)->CanUndo());\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  54. 188    \n    {\n        CRichEditCtrl* pEdit = (CRichEditCtrl*)CWnd::GetFocus();\n        pEdit->Copy();\n    }
  55. 190    \n    {\n        CRichEditCtrl* pEdit = (CRichEditCtrl*)CWnd::GetFocus();\n        pEdit->Cut();\n    }
  56. 192    \n    {\n        CRichEditCtrl* pEdit = (CRichEditCtrl*)CWnd::GetFocus();\n        pEdit->Paste();\n    }
  57. 194    \n    {\n        CRichEditCtrl* pEdit = (CRichEditCtrl*)CWnd::GetFocus();\n        pEdit->Undo();\n    }
  58. 201    \n    ASSERT(::IsWindow(hWnd));\n\n    TCHAR lpClassName[32];\n    ::GetClassName(hWnd,lpClassName, 32);\n\n    if (!_tcscmp(lpClassName, _T("Edit")))\n        return 1;\n    if (!_tcscmp(lpClassName, _T("RICHEDIT")))\n        return 2;\n\n    return 0;
  59. 202    \n    {\n        HWND hWndFocus = ::GetFocus();\n\n        if (hWndFocus != NULL)\n        {\n            int wndtype = IsRichOrEditCtrl(hWndFocus);\n            if (wndtype == 1) // is an edit control\n            {\n                int nStart,nEnd;\n                ::SendMessage(hWndFocus, EM_GETSEL, (WPARAM)&nStart, (LPARAM)&nEnd);\n
  60. 203                    pCmdUI->Enable(nStart != nEnd);\n                return;\n            }\n            else if (wndtype == 2) // is a richedit control\n            {\n                CHARRANGE cr;\n                ::SendMessage(hWndFocus, EM_EXGETSEL, 0, (LPARAM)&cr);\n                pCmdUI->Enable(cr.cpMin != cr.cpMax);\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  61. 204    \n    {\n        HWND hWndFocus = ::GetFocus();\n\n        if (hWndFocus != NULL)\n        {\n            if (IsRichOrEditCtrl(hWndFocus))\n            {\n
  62. 205                    pCmdUI->Enable(::IsClipboardFormatAvailable(CF_TEXT));\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  63. 206    \n    {\n        HWND hWndFocus = ::GetFocus();\n\n        if (hWndFocus != NULL)\n        {\n            if (IsRichOrEditCtrl(hWndFocus))\n            {\n
  64. 207                    pCmdUI->Enable(::SendMessage(hWndFocus, EM_CANUNDO, 0, 0));\n                return;\n            }\n        }\n    }\n\n    pCmdUI->Enable(FALSE);
  65. 208    \n    {\n        HWND hWndFocus = ::GetFocus();\n        ASSERT(::IsWindow(hWndFocus));\n        ::SendMessage(hWndFocus, WM_COPY, 0, 0);\n    }
  66. 210    \n    {\n        HWND hWndFocus = ::GetFocus();\n        ASSERT(::IsWindow(hWndFocus));\n        ::SendMessage(hWndFocus, WM_CUT, 0, 0);\n    }
  67. 212    \n    {\n        HWND hWndFocus = ::GetFocus();\n        ASSERT(::IsWindow(hWndFocus));\n        ::SendMessage(hWndFocus, WM_PASTE, 0, 0);\n    }
  68. 214    \n    {\n        HWND hWndFocus = ::GetFocus();\n        ASSERT(::IsWindow(hWndFocus));\n        ::SendMessage(hWndFocus, EM_UNDO, 0, 0);\n    }
  69. 220    \n    pCmdUI->Enable(IsSelected());
  70. 221    \n    pCmdUI->Enable(::IsClipboardFormatAvailable(m_nClipboardFormat));
  71. 223    \n    {\n        CSharedFile    memFile;\n        CArchive ar(&memFile, CArchive::store|CArchive::bNoFlushOnDelete);\n\n        // serialize data to archive object\n        DoCutCopyPaste(ar, FALSE);\n\n        ar.Flush();
  72. 224    \n    {\n        CSharedFile    memFile;\n        CArchive ar(&memFile, CArchive::store|CArchive::bNoFlushOnDelete);\n\n        // serialize data to archive object\n        DoCutCopyPaste(ar, TRUE);\n\n        ar.Flush();\n\n        HGLOBAL hData = memFile.Detach();
  73. 225    \n    {\n        if (OpenClipboard())\n        {\n            HANDLE hData = ::GetClipboardData(m_nClipboardFormat);\n            if (hData != NULL)\n            {\n                CSharedFile memFile;\n                memFile.SetHandle(hData,FALSE);\n                
  74. 227    \n\n    // TODO: Add/Replace code to selectively enable and disable the copy \n    //       and cut menu items. Return TRUE when one or more items are
  75. 228    \n\n    // TODO: Add/Replace code to copy the currently selected data to or\n    //       from the clipboard, via the CArchive object. Note: \n    //       ar.IsStoring() set to TRUE indicates a copy or cut operation.
  76. 243    \n\n        HGLOBAL hData = memFile.Detach();\n        if (OpenClipboard())\n        {\n            ::SetClipboardData(m_nClipboardFormat, hData);\n            CloseClipboard();\n        }\n        else\n            AfxMessageBox(CG_IDS_CANNOT_OPEN_CLIPBOARD);\n    }
  77. 244    \n        if (OpenClipboard())\n        {\n            ::SetClipboardData(m_nClipboardFormat, hData);\n            CloseClipboard();\n        }\n        else\n            AfxMessageBox(CG_IDS_CANNOT_OPEN_CLIPBOARD);\n    }
  78. 245    CArchive ar(&memFile, CArchive::load);\n\n                // serialize data to document\n                DoCutCopyPaste(ar, FALSE);\n                ar.Close();\n                memFile.Detach();\n            }\n            else\n                
  79. 247    \n    //       selected, and return FALSE when no items are selected.\n\n    return TRUE;
  80. 248    \n\n    GetDocument()->Serialize(ar);\n\n    if (bCut)\n    {\n        ASSERT(ar.IsStoring()); // no cutting on paste operation\n\n        // TODO: Add/Replace code to delete the currently selected items.
  81. 265    AfxMessageBox(CG_IDS_CANNOT_GET_CLIPBOARD_DATA);\n            CloseClipboard();\n        }\n        else\n            AfxMessageBox(CG_IDS_CANNOT_OPEN_CLIPBOARD);\n    }\n
  82. 268    \n\n        GetDocument()->DeleteContents();\n    }\n\n    // updated view and flag as modified if cut or paste operation\n    
  83. 288    if (!(ar.IsStoring() && !bCut))\n    {\n        GetDocument()->UpdateAllViews(NULL);\n        GetDocument()->SetModifiedFlag();\n    }
  84. 300    Failed to open Clipboard!
  85. 301    Failed to get Clipboard data!
  86. 350       BOOL %s::IsEditCtrl(CWnd* pWnd);\n   afx_msg void %s::OnUpdateEditCopyCut(CCmdUI* pCmdUI);\n   afx_msg void %s::OnUpdateEditPaste(CCmdUI* pCmdUI);\n   afx_msg void %s::OnUpdateEditUndo(CCmdUI* pCmdUI);\n   afx_msg void %s::OnEditCopy();\n   afx_msg void %s::OnEditCut();\n   afx_msg void %s::OnEditPaste();\n   afx_msg void %s::OnEditUndo();\n
  87. 351       BOOL %s::IsRichEditCtrl(CWnd* pWnd);\n   afx_msg void %s::OnUpdateEditCopyCut(CCmdUI* pCmdUI);\n   afx_msg void %s::OnUpdateEditPaste(CCmdUI* pCmdUI);\n   afx_msg void %s::OnUpdateEditUndo(CCmdUI* pCmdUI);\n   afx_msg void %s::OnEditCopy();\n   afx_msg void %s::OnEditCut();\n   afx_msg void %s::OnEditPaste();\n   afx_msg void %s::OnEditUndo();\n
  88. 352       UINT %s::m_nClipboardFormat;\n   BOOL %s::IsSelected();\n   void %s::DoCutCopyPaste(CArchive &ar, BOOL bCut);\n   afx_msg void %s::OnUpdateEditCopyCut(CCmdUI* pCmdUI);\n   afx_msg void %s::OnUpdateEditPaste(CCmdUI* pCmdUI);\n   afx_msg void %s::OnEditCopy();\n   afx_msg void %s::OnEditCut();\n   afx_msg void %s::OnEditPaste();\n   CG_IDS_CANNOT_OPEN_CLIPBOARD\n   CG_IDS_CANNOT_GET_CLIPBOARD_DATA\n
  89. 353       int %s::IsRichOrEditCtrl(HWND hWnd);\n   afx_msg void %s::OnUpdateEditCopyCut(CCmdUI* pCmdUI);\n   afx_msg void %s::OnUpdateEditPaste(CCmdUI* pCmdUI);\n   afx_msg void %s::OnUpdateEditUndo(CCmdUI* pCmdUI);\n   afx_msg void %s::OnEditCopy();\n   afx_msg void %s::OnEditCut();\n   afx_msg void %s::OnEditPaste();\n   afx_msg void %s::OnEditUndo();\n
  90. 354    Select a CView derived class and at least one check box!
  91. 355    Members to be added:\n
  92. 57344    Clipboard Assistant
  93. 57346        // CG: This block was added by the Clipboard Assistant component
  94. 57347        // CG: This function was added by the Clipboard Assistant component
  95. 57348        // CG: This line was added by the Clipboard Assistant component
  96. 61440    Open
  97. 61441    Save As
  98. 61442    All Files (*.*)
  99. 61443    Untitled
  100. 61446    an unnamed file
  101. 61457    &Hide
  102. 61472    No error message is available.
  103. 61473    An unsupported operation was attempted.
  104. 61474    A required resource was unavailable.
  105. 61475    Out of memory.
  106. 61476    An unknown error has occurred.
  107. 61696    Invalid filename.
  108. 61697    Failed to open document.
  109. 61698    Failed to save document.
  110. 61699    Save changes to %1?
  111. 61700    Failed to create empty document.
  112. 61701    The file is too large to open.
  113. 61702    Could not start print job.
  114. 61703    Failed to launch help.
  115. 61704    Internal application error.
  116. 61705    Command failed.
  117. 61706    Insufficient memory to perform operation.
  118. 61707    System registry entries have been removed and the INI file (if any) was deleted.
  119. 61708    Not all of the system registry entries (or INI file) were removed.
  120. 61709    This program requires the file %s, which was not found on this system.
  121. 61710    This program is linked to the missing export %s in the file %s. This machine may have an incompatible version of %s.
  122. 61712    Please enter an integer.
  123. 61713    Please enter a number.
  124. 61714    Please enter an integer between %1 and %2.
  125. 61715    Please enter a number between %1 and %2.
  126. 61716    Please enter no more than %1 characters.
  127. 61717    Please select a button.
  128. 61718    Please enter an integer between 0 and 255.
  129. 61719    Please enter a positive integer.
  130. 61720    Please enter a date and/or time.
  131. 61721    Please enter a currency.
  132. 61728    Unexpected file format.
  133. 61729    %1\nCannot find this file.\nPlease verify that the correct path and file name are given.
  134. 61730    Destination disk drive is full.
  135. 61731    Unable to read from %1, it is opened by someone else.
  136. 61732    Unable to write to %1, it is read-only or opened by someone else.
  137. 61733    An unexpected error occurred while reading %1.
  138. 61734    An unexpected error occurred while writing %1.
  139. 61836    Unable to read write-only property.
  140. 61837    Unable to write read-only property.
  141. 61840    Unable to load mail system support.
  142. 61841    Mail system DLL is invalid.
  143. 61842    Send Mail failed to send message.
  144. 61856    No error occurred.
  145. 61857    An unknown error occurred while accessing %1.
  146. 61858    %1 was not found.
  147. 61859    %1 contains an invalid path.
  148. 61860    %1 could not be opened because there are too many open files.
  149. 61861    Access to %1 was denied.
  150. 61862    An invalid file handle was associated with %1.
  151. 61863    %1 could not be removed because it is the current directory.
  152. 61864    %1 could not be created because the directory is full.
  153. 61865    Seek failed on %1
  154. 61866    A hardware I/O error was reported while accessing %1.
  155. 61867    A sharing violation occurred while accessing %1.
  156. 61868    A locking violation occurred while accessing %1.
  157. 61869    Disk full while accessing %1.
  158. 61870    An attempt was made to access %1 past its end.
  159. 61872    No error occurred.
  160. 61873    An unknown error occurred while accessing %1.
  161. 61874    An attempt was made to write to the reading %1.
  162. 61875    An attempt was made to access %1 past its end.
  163. 61876    An attempt was made to read from the writing %1.
  164. 61877    %1 has a bad format.
  165. 61878    %1 contained an unexpected object.
  166. 61879    %1 contains an incorrect schema.
  167. 61888    pixels
  168.