Mac OS X Porting salframe

From Apache OpenOffice Wiki
Revision as of 15:35, 20 February 2007 by Damiend (Talk | contribs)

Jump to: navigation, search

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