/** Set the zoom factor to the specified value and center the display areaaroundthezoomcenter. @paramnZoom Thezoomfactorisgivenasintegralpercentvalue.
*/ void SetZoomIntegral(::tools::Long nZoom);
/** This internally used method performs the actual adaptation of the window'smapmodetothespecifiedzoomfactor. @paramnZoom Thezoomfactorisgivenasintegralpercentvalue. @return Whenthegivenzoomfactorliesoutsidethevalidrangeenclosed bytheminimalzoomfactorpreviouslycalculatedby <member>CalcMinZoom</member>andaconstantuppervalueitis forcedintothatinterval.Thereforethereturnedvalueisa validzoomfactor.
*/
::tools::Long SetZoomFactor(::tools::Long nZoom);
/** This method is called when the whole page shall be displayed in the window.Positionandzoomfactoraresetsothatthegiven rectangleisdisplayedaslargeaspossibleinthewindowwhileat thesametimemaintainingtherectangle'saspectratioandaddinga smallspaceatallitsfoursides(about3%ofwidthandheight). Themapmodeisadaptedaccordingly. @paramrZoomRect Therectangleisexpectedtobegivenrelativetotheupperleft cornerofthewindowinlogicalcoordinates(100thofmm). @return Thenewzoomfactorisreturnedasintegralpercentvalue.
*/
::tools::Long SetZoomRect(const ::tools::Rectangle& rZoomRect);
/** Calculate the minimal zoom factor as the value at which the applicationareawouldcompletelyfillthewindow.Allvaluesset manuallyorprogrammaticallyaresettothisvalueiftheyare smaller.Ifthecurrentlyusedzoomfactorissmallerthantheminimalzoom factorthansettheminimalzoomfactorasthenewcurrentzoom factor.
/** Calculate origin of the map mode according to the size of the view andwindow(itssizeinmodelcoordinates;thattakesthezoom factorintoaccount),andthebCenterAllowedflag.Whenitisnot setthennothingischanged.Wheninanydirectionthewindowis largerthanthevieworthevalueofaWinPosinthisdirectionis-1 thenthewindowiscenteredinthisdirection.
*/ void UpdateMapOrigin(bool bInvalidate = true);
/** The DropScroll() method is used by AcceptDrop() to scroll the contentofthewindowwhiledragginganddropping.Withthismethod youcancontrolwhetherDropScroll()shallbeused.
*/ void SetUseDropScroll(bool bUseDropScroll); void DropScroll(const Point& rMousePos); virtualvoid KeyInput(const KeyEvent& rKEvt) override;
private:
OutlinerView* GetOutlinerView() const;
protected:
Point maWinPos;
Point maViewOrigin;
Size maViewSize;
Size maPrevSize; // contains previous window size in logical coords
sal_uInt16 mnMinZoom;
sal_uInt16 mnMaxZoom;
/** This flag tells whether to re-calculate the minimal zoom factor dependingonthecurrentzoomfactor.Itsdefaultvalueisnowfalse.
*/ bool mbMinZoomAutoCalc; bool mbCenterAllowed;
::tools::Long mnTicks;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.