Difference between revisions of "Mac OS X Porting salframe"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 1: Line 1:
Working in progres...
+
Working in progres... (don't hésitate to signal and correct wrongs and errors)
 +
 
 +
 
 +
This page intented to describe the salframe API in the mac native port of OpenOffice.
 +
It seems that's salframe is the "window" part of [[vcl]] in OOo.
 +
More when i'll have understand :-D
 +
 
 +
==Functions==
 +
 
  
 
*'''ImplSalCalcFullScreenSize'''
 
*'''ImplSalCalcFullScreenSize'''
Line 6: Line 14:
 
Locale function which calculate the full active screen size.
 
Locale function which calculate the full active screen size.
 
(Multi-Display is currently not yet implemented, that's why pframe not used here)
 
(Multi-Display is currently not yet implemented, that's why pframe not used here)
----
+
Take the Main Display ID from CoreVideo function (CGDirectDisplayID () ),
Take the Main Display ID from CoreVideo function (CGDirectDisplayID () ), and defines a CGRect named "rect" which size of this Display (usage of CGDisplayBounds(DisplayID)) to take the full positive size).
+
and defines a CGRect named "rect" which size of this Display (usage of CGDisplayBounds(DisplayID))
Then, it stores this positives integers (use of static_cast<int> to have some signed integer)into psize, with origin on the top left.
+
to take the full positive size). Then, it stores this positives integers (use of static_cast<int> to have some signed integer)
 +
into psize, with origin on the top left.
  
  

Revision as of 15:35, 20 February 2007

Working in progres... (don't hésitate to signal and correct wrongs and errors)


This page intented to describe the salframe API in the mac native port of OpenOffice.
It seems that's salframe is the "window" part of vcl in OOo.
More when i'll have understand :-D

Functions

  • ImplSalCalcFullScreenSize

static void ImplSalCalcFullScreenSize( const AquaSalFrame* pFrame, Rect* pSize )

Locale function which calculate the full active screen size. (Multi-Display is currently not yet implemented, that's why pframe not used here)

Take the Main Display ID from CoreVideo function (CGDirectDisplayID () ),
and defines a CGRect named "rect" which size of this Display (usage of CGDisplayBounds(DisplayID))
to take the full positive size). Then, it stores this positives integers (use of static_cast<int> to have some signed integer)
into psize, with origin on the top left.
Personal tools