Difference between revisions of "User:Ericb/Salframe.hxx"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 1: Line 1:
 
Defines types and styles for the frames
 
Defines types and styles for the frames
 
+
==Macro==
 
Defines macro for the System Abstraction Layer Frame Types :  
 
Defines macro for the System Abstraction Layer Frame Types :  
  
Line 23: Line 23:
 
  Y->0x0002, WIDTH->0x0004, HEIGHT->0x0008
 
  Y->0x0002, WIDTH->0x0004, HEIGHT->0x0008
 
--------------------------------------------------------
 
--------------------------------------------------------
Methods
+
==Methods==
  
 
virtual SalGraphics*        GetGraphics() = 0;
 
virtual SalGraphics*        GetGraphics() = 0;

Revision as of 09:18, 16 February 2006

Defines types and styles for the frames

Macro

Defines macro for the System Abstraction Layer Frame Types :

 TOTOP_RESTOREWHENMIN->0x0001, TOTOP_FOREGROUNDTASK0->x0002, TOTOP_GRABFOCUS->0x0004, TOTOP_GRABFOCUS_ONLY  ->0x0008, ENDEXTTEXTINPUT_COMPLETE->0x0001, ENDEXTTEXTINPUT_CANCEL->0x0002


Defines marcro for the System Abstraction Layer Frame Style :

 DEFAULT->0x00000001, MOVEABLE->0x00000002, SIZEABLE->0x00000004, CLOSEABLE->0x00000008 
 
 -no shadow effect on WindowsXP: NOSHADOW->0x00000010
 -indicate tooltip windows, so they can always be topmost: TOOLTIP->0x00000020
 -windows without windowmanager decoration, this typically only applies to floating windows: OWNERDRAWDECORATION->0x00000040
 -dialogs: DIALOG->0x00000080
 -system child window: CHILD->0x10000000
 -floating window: FLOAT->0x20000000
 -toolwindows should be painted with a smaller decoration: TOOLWINDOW->0x40000000
 -the window containing the intro bitmap, aka splashscreen: INTRO->0x80000000

Defines macro for the Flags for System Abstraction Layer Frame Position and Size :

Y->0x0002, WIDTH->0x0004, HEIGHT->0x0008

Methods

virtual SalGraphics* GetGraphics() = 0;

method acquiring pointer on Graphics

virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;

releases graphics
test using DBG_ASSERT(): 
checks if graphic exist and is valid before releasing. If not errors will be sent.

virtual BOOL PostEvent( void* pData ) = 0;

sends event to  X11

virtual void SetTitle( const XubString& rTitle ) = 0;

sets WMN name (WMN = Window Manager's Name)

virtual void SetIcon( USHORT nIcon ) = 0;

sets icon size:
calculates max icon size,
then checks if gnome or KDE is running and sets icon accordingly 
then plays around with WMH: Window Manager Hints (resize & Co) << to be corrected

Work in progress

Personal tools