| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- //---------------------------------------------------------------------------
- #ifndef ToolsH
- #define ToolsH
- #include <comctrls.hpp>
- #include <WinInterface.h>
- #include <HelpIntfs.hpp>
- #include <WinHelpViewer.hpp>
- //---------------------------------------------------------------------------
- void __fastcall CenterFormOn(TForm * Form, TControl * CenterOn);
- bool __fastcall ExecuteShellAndWait(const AnsiString Path, const AnsiString Params);
- bool __fastcall ExecuteShellAndWait(const AnsiString Command);
- void __fastcall CreateDesktopShortCut(const AnsiString &Name,
- const AnsiString &File, const AnsiString & Params, const AnsiString & Description,
- int SpecialFolder = -1);
- AnsiString __fastcall GetListViewStr(TListView * ListView);
- void __fastcall LoadListViewStr(TListView * ListView, AnsiString LayoutStr);
- void __fastcall RestoreForm(AnsiString Data, TForm * Form);
- AnsiString __fastcall StoreForm(TCustomForm * Form);
- void __fastcall RestoreFormSize(AnsiString Data, TForm * Form);
- AnsiString __fastcall StoreFormSize(TForm * Form);
- TFontStyles __fastcall IntToFontStyles(int value);
- int __fastcall FontStylesToInt(const TFontStyles value);
- void __fastcall ValidateMaskEdit(TComboBox * Edit);
- void __fastcall ValidateMaskEdit(TEdit * Edit);
- void __fastcall OpenBrowser(AnsiString URL);
- bool __fastcall IsFormatInClipboard(unsigned int Format);
- bool __fastcall TextFromClipboard(AnsiString & Text);
- HANDLE __fastcall OpenTextFromClipboard(const char *& Text);
- void __fastcall CloseTextFromClipboard(HANDLE Handle);
- void __fastcall ExitActiveControl(TForm * Form);
- AnsiString __fastcall ReadResource(const AnsiString ResName);
- bool __fastcall DumpResourceToFile(const AnsiString ResName,
- const AnsiString FileName);
- TOpenDialog * __fastcall CreateOpenDialog(TComponent * AOwner);
- void __fastcall BrowseForExecutable(TEdit * Control, AnsiString Title,
- AnsiString Filter, bool FileNameCommand, bool Escape);
- void __fastcall BrowseForExecutable(TComboBox * Control, AnsiString Title,
- AnsiString Filter, bool FileNameCommand, bool Escape);
- bool __fastcall FontDialog(TFont * Font);
- bool __fastcall SaveDialog(AnsiString Title, AnsiString Filter,
- AnsiString DefaultExt, AnsiString & FileName);
- bool __fastcall AutodetectProxyUrl(AnsiString & Proxy);
- bool __fastcall IsWin64();
- void __fastcall CopyToClipboard(AnsiString Text);
- void __fastcall CopyToClipboard(TStrings * Strings);
- void __fastcall ShutDownWindows();
- //---------------------------------------------------------------------------
- #define IUNKNOWN \
- virtual HRESULT __stdcall QueryInterface(const GUID& IID, void **Obj) \
- { \
- return TInterfacedObject::QueryInterface(IID, (void *)Obj); \
- } \
- \
- virtual ULONG __stdcall AddRef() \
- { \
- return TInterfacedObject::_AddRef(); \
- } \
- \
- virtual ULONG __stdcall Release() \
- { \
- return TInterfacedObject::_Release(); \
- }
- //---------------------------------------------------------------------------
- void __fastcall InitializeCustomHelp(ICustomHelpViewer * HelpViewer);
- void __fastcall FinalizeCustomHelp();
- //---------------------------------------------------------------------------
- #endif
|