Mac OS X Porting salframe
From Apache OpenOffice Wiki
Working in progres... (don't hesitate 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
Role of Salframe
SalFrame abstracts any kind of system window.
What can and what cannot Salframe
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.