diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 16:51:15 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-04-11 16:51:15 +0000 |
commit | 4647f3e5ec0fd9b29758b38905f6bf246d72cfc3 (patch) | |
tree | ceee94dce9442b275f43e2b16167e85d260d5414 /vcl | |
parent | ec24cac51f2ff117c12d4d8f934121f536e37666 (diff) |
INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED
2007/02/09 16:10:45 vg 1.1.2.1: #72503# get rid of hedabu procedure: Moving headers to vcl/inc/vcl and correspondent necessary changes
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/cvtgrf.hxx | 85 | ||||
-rw-r--r-- | vcl/inc/vcl/cvtsvm.hxx | 128 | ||||
-rw-r--r-- | vcl/inc/vcl/decoview.hxx | 123 | ||||
-rw-r--r-- | vcl/inc/vcl/dialog.hxx | 177 |
4 files changed, 513 insertions, 0 deletions
diff --git a/vcl/inc/vcl/cvtgrf.hxx b/vcl/inc/vcl/cvtgrf.hxx new file mode 100644 index 000000000000..321ab262ec74 --- /dev/null +++ b/vcl/inc/vcl/cvtgrf.hxx @@ -0,0 +1,85 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: cvtgrf.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 17:50:31 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SV_CVTGRF_HXX +#define _SV_CVTGRF_HXX + +#ifndef _VCL_DLLAPI_H +#include <vcl/dllapi.h> +#endif + +#ifndef _LINK_HXX +#include <tools/link.hxx> +#endif +#ifndef _SV_SALCTYPE_H +#include <vcl/salctype.hxx> +#endif + +// -------------------- +// - GraphicConverter - +// -------------------- + +struct ConvertData; +class Graphic; + +class VCL_DLLPUBLIC GraphicConverter +{ +private: + + Link maFilterHdl; + ConvertData* mpConvertData; + +//#if 0 // _SOLAR__PRIVATE +public: + SAL_DLLPRIVATE ULONG ImplConvert( ULONG nInFormat, void* pInBuffer, ULONG nInBufSize, + void** ppOutBuffer, ULONG nOutFormat ); +//#endif // __PRIVATE + +public: + + GraphicConverter(); + ~GraphicConverter(); + + static ULONG Import( SvStream& rIStm, Graphic& rGraphic, ULONG nFormat = CVT_UNKNOWN ); + static ULONG Export( SvStream& rOStm, const Graphic& rGraphic, ULONG nFormat ); + + ConvertData* GetConvertData() { return mpConvertData; } + + void SetFilterHdl( const Link& rLink ) { maFilterHdl = rLink; } + const Link& GetFilterHdl() const { return maFilterHdl; } +}; + +#endif // _SV_CVTGRF_HXX + diff --git a/vcl/inc/vcl/cvtsvm.hxx b/vcl/inc/vcl/cvtsvm.hxx new file mode 100644 index 000000000000..8a1bbf5ab06c --- /dev/null +++ b/vcl/inc/vcl/cvtsvm.hxx @@ -0,0 +1,128 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: cvtsvm.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 17:50:41 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SV_CVTMTF_HXX +#define _SV_CVTMTF_HXX + +#ifndef _VCL_DLLAPI_H +#include <vcl/dllapi.h> +#endif + +#ifndef _SV_METAACT_HXX +#include <vcl/metaact.hxx> +#endif +#ifndef _SV_GDIMTF_HXX +#include <vcl/gdimtf.hxx> +#endif + +// ----------- +// - Defines - +// ----------- + +#define CONVERT_TO_SVM1 0x00000001UL +#define CONVERT_FROM_SVM1 0x00000002UL + +#define GDI_PIXEL_ACTION 1 +#define GDI_POINT_ACTION 2 +#define GDI_LINE_ACTION 3 +#define GDI_RECT_ACTION 4 +#define GDI_ELLIPSE_ACTION 5 +#define GDI_ARC_ACTION 6 +#define GDI_PIE_ACTION 7 +#define GDI_INVERTRECT_ACTION 8 +#define GDI_HIGHLIGHTRECT_ACTION 9 +#define GDI_POLYLINE_ACTION 10 +#define GDI_POLYGON_ACTION 11 +#define GDI_POLYPOLYGON_ACTION 12 +#define GDI_TEXT_ACTION 13 +#define GDI_TEXTARRAY_ACTION 14 +#define GDI_STRETCHTEXT_ACTION 15 +#define GDI_ICON_ACTION 16 +#define GDI_BITMAP_ACTION 17 +#define GDI_BITMAPSCALE_ACTION 18 +#define GDI_PEN_ACTION 19 +#define GDI_FONT_ACTION 20 +#define GDI_BACKBRUSH_ACTION 21 +#define GDI_FILLBRUSH_ACTION 22 +#define GDI_MAPMODE_ACTION 23 +#define GDI_CLIPREGION_ACTION 24 +#define GDI_RASTEROP_ACTION 25 +#define GDI_PUSH_ACTION 26 +#define GDI_POP_ACTION 27 +#define GDI_MOVECLIPREGION_ACTION 28 +#define GDI_ISECTCLIPREGION_ACTION 29 +#define GDI_MTF_ACTION 30 +#define GDI_BITMAPSCALEPART_ACTION 32 +#define GDI_GRADIENT_ACTION 33 + +#define GDI_TRANSPARENT_COMMENT 1024 +#define GDI_HATCH_COMMENT 1025 +#define GDI_REFPOINT_COMMENT 1026 +#define GDI_TEXTLINECOLOR_COMMENT 1027 +#define GDI_TEXTLINE_COMMENT 1028 +#define GDI_FLOATTRANSPARENT_COMMENT 1029 +#define GDI_GRADIENTEX_COMMENT 1030 +#define GDI_COMMENT_COMMENT 1031 +#define GDI_UNICODE_COMMENT 1032 + +// ---------------- +// - SVMConverter - +// ---------------- + +class Stack; + +class VCL_DLLPUBLIC SVMConverter +{ +private: +//#if 0 // _SOLAR__PRIVATE + SAL_DLLPRIVATE void ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ); + SAL_DLLPRIVATE void ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf ); + SAL_DLLPRIVATE ULONG ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf, + VirtualDevice& rSaveVDev, BOOL& rRop_0_1, + Color& rLineCol, Stack& rLineColStack, + rtl_TextEncoding& rActualCharSet ); +//#endif + +public: + SVMConverter( SvStream& rIStm, GDIMetaFile& rMtf, ULONG nConvertMode ); + ~SVMConverter() {} + +private: + // Not implemented + SVMConverter( const SVMConverter& ); + SVMConverter& operator=( const SVMConverter& ); +}; + +#endif // _SV_CVTMTF_HXX diff --git a/vcl/inc/vcl/decoview.hxx b/vcl/inc/vcl/decoview.hxx new file mode 100644 index 000000000000..f70e3fd6e00d --- /dev/null +++ b/vcl/inc/vcl/decoview.hxx @@ -0,0 +1,123 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: decoview.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 17:51:05 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SV_DECOVIEW_HXX +#define _SV_DECOVIEW_HXX + +#ifndef _SV_SV_H +#include <vcl/sv.h> +#endif + +#ifndef _VCL_DLLAPI_H +#include <vcl/dllapi.h> +#endif + +#ifndef _SV_SYMBOL_HXX +#include <vcl/symbol.hxx> +#endif + +class Rectangle; +class Color; +class OutputDevice; + +// ------------------------ +// - DecorationView-Types - +// ------------------------ + +// Flags for DrawSymbol() +#define SYMBOL_DRAW_MONO ((USHORT)0x0001) +#define SYMBOL_DRAW_DISABLE ((USHORT)0x0002) + +// Flags for DrawFrame() +#define FRAME_DRAW_IN ((USHORT)0x0001) +#define FRAME_DRAW_OUT ((USHORT)0x0002) +#define FRAME_DRAW_GROUP ((USHORT)0x0003) +#define FRAME_DRAW_DOUBLEIN ((USHORT)0x0004) +#define FRAME_DRAW_DOUBLEOUT ((USHORT)0x0005) +#define FRAME_DRAW_MENU ((USHORT)0x0010) +#define FRAME_DRAW_WINDOWBORDER ((USHORT)0x0020) +#define FRAME_DRAW_MONO ((USHORT)0x1000) +#define FRAME_DRAW_NODRAW ((USHORT)0x8000) +#define FRAME_DRAW_STYLE ((USHORT)0x000F) + +// Flags for DrawHighlightFrame() +#define FRAME_HIGHLIGHT_IN ((USHORT)0x0001) +#define FRAME_HIGHLIGHT_OUT ((USHORT)0x0002) +#define FRAME_HIGHLIGHT_TESTBACKGROUND ((USHORT)0x4000) +#define FRAME_HIGHLIGHT_STYLE ((USHORT)0x000F) + +// Flags for DrawButton() +#define BUTTON_DRAW_DEFAULT ((USHORT)0x0001) +#define BUTTON_DRAW_NOLIGHTBORDER ((USHORT)0x0002) +#define BUTTON_DRAW_PRESSED ((USHORT)0x0004) +#define BUTTON_DRAW_CHECKED ((USHORT)0x0008) +#define BUTTON_DRAW_DONTKNOW ((USHORT)0x0010) +#define BUTTON_DRAW_MONO ((USHORT)0x0020) +#define BUTTON_DRAW_NOFILL ((USHORT)0x0040) +#define BUTTON_DRAW_DISABLED ((USHORT)0x0080) +#define BUTTON_DRAW_HIGHLIGHT ((USHORT)0x0100) +#define BUTTON_DRAW_FLAT ((USHORT)0x0200) +#define BUTTON_DRAW_NOTOPLIGHTBORDER ((USHORT)0x0400) +#define BUTTON_DRAW_NOBOTTOMSHADOWBORDER ((USHORT)0x0800) +#define BUTTON_DRAW_NOLEFTLIGHTBORDER ((USHORT)0x1000) +#define BUTTON_DRAW_NOTEXT ((USHORT)0x2000) +#define BUTTON_DRAW_NOIMAGE ((USHORT)0x4000) +#define BUTTON_DRAW_NODRAW ((USHORT)0x8000) + +// ------------------ +// - DecorationView - +// ------------------ + +class VCL_DLLPUBLIC DecorationView +{ +private: + OutputDevice* mpOutDev; + +public: + DecorationView( OutputDevice* pOutDev ) + { mpOutDev = pOutDev; } + + void DrawSymbol( const Rectangle& rRect, SymbolType eType, + const Color& rColor, USHORT nStyle = 0 ); + void DrawFrame( const Rectangle& rRect, + const Color& rLeftTopColor, + const Color& rRightBottomColor ); + void DrawHighlightFrame( const Rectangle& rRect, + USHORT nStyle = FRAME_HIGHLIGHT_OUT ); + Rectangle DrawFrame( const Rectangle& rRect, USHORT nStyle = FRAME_DRAW_OUT ); + Rectangle DrawButton( const Rectangle& rRect, USHORT nStyle ); +}; + +#endif // _SV_DECOVIEW_HXX diff --git a/vcl/inc/vcl/dialog.hxx b/vcl/inc/vcl/dialog.hxx new file mode 100644 index 000000000000..cf1fdd06b201 --- /dev/null +++ b/vcl/inc/vcl/dialog.hxx @@ -0,0 +1,177 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: dialog.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: vg $ $Date: 2007-04-11 17:51:15 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SV_DIALOG_HXX +#define _SV_DIALOG_HXX + +#ifndef _SV_SV_H +#include <vcl/sv.h> +#endif + +#ifndef _VCL_DLLAPI_H +#include <vcl/dllapi.h> +#endif + +#ifndef _SV_SYSWIN_HXX +#include <vcl/syswin.hxx> +#endif + +// parameter to pass to the dialogue constructor if really no parent is wanted +// whereas NULL chooses the deafult dialogue parent +#define DIALOG_NO_PARENT ((Window*)0xffffffff) + +// ---------- +// - Dialog - +// ---------- + +struct DialogImpl; + +class VCL_DLLPUBLIC Dialog : public SystemWindow +{ +private: + Window* mpDialogParent; + Dialog* mpPrevExecuteDlg; + DialogImpl* mpDialogImpl; + long mnMousePositioned; + BOOL mbInExecute; + BOOL mbOldSaveBack; + BOOL mbInClose; + BOOL mbModalMode; + + SAL_DLLPRIVATE void ImplInitDialogData(); + SAL_DLLPRIVATE void ImplInitSettings(); + +//#if 0 // _SOLAR__PRIVATE + // Copy assignment is forbidden and not implemented. + SAL_DLLPRIVATE Dialog (const Dialog &); + SAL_DLLPRIVATE Dialog & operator= (const Dialog &); + +protected: + using Window::ImplInit; + SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle ); + SAL_DLLPRIVATE void ImplDialogRes( const ResId& rResId ); + SAL_DLLPRIVATE void ImplCenterDialog(); + +public: + SAL_DLLPRIVATE BOOL IsInClose() const { return mbInClose; } +//#endif + +protected: + Dialog( WindowType nType ); + virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags ); + +public: + Dialog( Window* pParent, WinBits nStyle = WB_STDDIALOG ); + Dialog( Window* pParent, const ResId& rResId ); + virtual ~Dialog(); + + virtual long Notify( NotifyEvent& rNEvt ); + virtual void StateChanged( StateChangedType nStateChange ); + virtual void DataChanged( const DataChangedEvent& rDCEvt ); + + virtual BOOL Close(); + + virtual short Execute(); + BOOL IsInExecute() const { return mbInExecute; } + + //////////////////////////////////////// + // Dialog::Execute replacement API +public: + // Link impl: DECL_LINK( MyEndDialogHdl, Dialog* ); <= param is dialog just ended + virtual void StartExecuteModal( const Link& rEndDialogHdl ); + BOOL IsStartedModal() const; + long GetResult() const; +private: + BOOL ImplStartExecuteModal(); + void ImplEndExecuteModal(); +public: + + // Dialog::Execute replacement API + //////////////////////////////////////// + + void EndDialog( long nResult = 0 ); + static void EndAllDialogs( Window* pParent=NULL ); + + void GetDrawWindowBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder, + sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const; + + void SetModalInputMode( BOOL bModal ); + void SetModalInputMode( BOOL bModal, BOOL bSubModalDialogs ); + BOOL IsModalInputMode() const { return mbModalMode; } + + void GrabFocusToFirstControl(); +}; + +// ------------------ +// - ModelessDialog - +// ------------------ + +class VCL_DLLPUBLIC ModelessDialog : public Dialog +{ +//#if 0 // _SOLAR__PRIVATE + // Copy assignment is forbidden and not implemented. + SAL_DLLPRIVATE ModelessDialog (const ModelessDialog &); + SAL_DLLPRIVATE ModelessDialog & operator= (const ModelessDialog &); +//#endif + +public: + ModelessDialog( Window* pParent, WinBits nStyle = WB_STDMODELESS ); + ModelessDialog( Window* pParent, const ResId& rResId ); +}; + +// --------------- +// - ModalDialog - +// --------------- + +class VCL_DLLPUBLIC ModalDialog : public Dialog +{ +public: + ModalDialog( Window* pParent, WinBits nStyle = WB_STDMODAL ); + ModalDialog( Window* pParent, const ResId& rResId ); + +private: + using Window::Show; + void Show( BOOL bVisible = TRUE ); + using Window::Hide; + void Hide(); + +//#if 0 // _SOLAR__PRIVATE + // Copy assignment is forbidden and not implemented. + SAL_DLLPRIVATE ModalDialog (const ModalDialog &); + SAL_DLLPRIVATE ModalDialog & operator= (const ModalDialog &); +//#endif +}; + +#endif // _SV_DIALOG_HXX |