Lines Matching refs:nIn
162 long CalcToUnit( float nIn, SfxMapUnit eUnit ) in CalcToUnit() argument
172 float nTmp = nIn; in CalcToUnit()
175 nTmp = nIn * 10 / 567; in CalcToUnit()
194 long ItemToControl( long nIn, SfxMapUnit eItem, SfxFieldUnit eCtrl ) in ItemToControl() argument
205 nIn /= 10; in ItemToControl()
207 nIn /= 100; in ItemToControl()
208 nOut = TransformMetric( nIn, FUNIT_MM, (FieldUnit)eCtrl ); in ItemToControl()
214 nOut = TransformMetric( nIn, FUNIT_CM, (FieldUnit)eCtrl ); in ItemToControl()
224 nIn /= 10; in ItemToControl()
226 nIn /= 100; in ItemToControl()
228 nIn /= 1000; in ItemToControl()
229 nOut = TransformMetric( nIn, FUNIT_INCH, (FieldUnit)eCtrl ); in ItemToControl()
235 nOut = TransformMetric( nIn, FUNIT_POINT, (FieldUnit)eCtrl ); in ItemToControl()
241 nOut = TransformMetric( nIn, FUNIT_TWIP, (FieldUnit)eCtrl ); in ItemToControl()
251 long ControlToItem( long nIn, SfxFieldUnit eCtrl, SfxMapUnit eItem ) in ControlToItem() argument
253 return ItemToControl( nIn, eItem, eCtrl ); in ControlToItem()
346 long CalcToPoint( long nIn, SfxMapUnit eUnit, sal_uInt16 nFaktor ) in CalcToPoint() argument
357 nRet = nIn; in CalcToPoint()
359 nRet = nIn * 567; in CalcToPoint()
385 long CMToTwips( long nIn ) in CMToTwips() argument
389 if ( nIn <= ( LONG_MAX / 567 ) && nIn >= ( LONG_MIN / 567 ) ) in CMToTwips()
390 nRet = nIn * 567; in CMToTwips()
396 long MMToTwips( long nIn ) in MMToTwips() argument
400 if ( nIn <= ( LONG_MAX / 567 ) && nIn >= ( LONG_MIN / 567 ) ) in MMToTwips()
401 nRet = nIn * 567 / 10; in MMToTwips()
407 long InchToTwips( long nIn ) in InchToTwips() argument
411 if ( nIn <= ( LONG_MAX / 1440 ) && nIn >= ( LONG_MIN / 1440 ) ) in InchToTwips()
412 nRet = nIn * 1440; in InchToTwips()
418 long PointToTwips( long nIn ) in PointToTwips() argument
422 if ( nIn <= ( LONG_MAX / 20 ) && nIn >= ( LONG_MIN / 20 ) ) in PointToTwips()
423 nRet = nIn * 20; in PointToTwips()
429 long PicaToTwips( long nIn ) in PicaToTwips() argument
433 if ( nIn <= ( LONG_MAX / 240 ) && nIn >= ( LONG_MIN / 240 ) ) in PicaToTwips()
434 nRet = nIn * 240; in PicaToTwips()
440 long TwipsToCM( long nIn ) in TwipsToCM() argument
442 long nRet = nIn / 567; in TwipsToCM()
448 long InchToCM( long nIn ) in InchToCM() argument
452 if ( nIn <= ( LONG_MAX / 254 ) && nIn >= ( LONG_MIN / 254 ) ) in InchToCM()
453 nRet = nIn * 254 / 100; in InchToCM()
459 long MMToCM( long nIn ) in MMToCM() argument
461 long nRet = nIn / 10; in MMToCM()
467 long PointToCM( long nIn ) in PointToCM() argument
471 if ( nIn <= ( LONG_MAX / 20 ) && nIn >= ( LONG_MIN / 20 ) ) in PointToCM()
472 nRet = nIn * 20 / 567; in PointToCM()
478 long PicaToCM( long nIn) in PicaToCM() argument
482 if ( nIn <= ( LONG_MAX / 12 / 20 ) && nIn >= ( LONG_MIN / 12 / 20 ) ) in PicaToCM()
483 nRet = nIn * 12 * 20 / 567; in PicaToCM()
489 long TwipsToMM( long nIn ) in TwipsToMM() argument
493 if ( nIn <= ( LONG_MAX / 10 ) && nIn >= ( LONG_MIN / 10 ) ) in TwipsToMM()
494 nRet = nIn * 10 / 566; in TwipsToMM()
500 long CMToMM( long nIn ) in CMToMM() argument
504 if ( nIn <= ( LONG_MAX / 10 ) && nIn >= ( LONG_MIN / 10 ) ) in CMToMM()
505 nRet = nIn * 10; in CMToMM()
511 long InchToMM( long nIn ) in InchToMM() argument
515 if ( nIn <= ( LONG_MAX / 254 ) && nIn >= ( LONG_MIN / 254 ) ) in InchToMM()
516 nRet = nIn * 254 / 10; in InchToMM()
522 long PointToMM( long nIn ) in PointToMM() argument
526 if ( nIn <= ( LONG_MAX / 200 ) && nIn >= ( LONG_MIN / 200 ) ) in PointToMM()
527 nRet = nIn * 200 / 567; in PointToMM()
533 long PicaToMM( long nIn ) in PicaToMM() argument
537 if ( nIn <= ( LONG_MAX / 12 / 200 ) && nIn >= ( LONG_MIN / 12 / 200 ) ) in PicaToMM()
538 nRet = nIn * 12 * 200 / 567; in PicaToMM()
544 long TwipsToInch( long nIn ) in TwipsToInch() argument
546 long nRet = nIn / 1440; in TwipsToInch()
552 long CMToInch( long nIn ) in CMToInch() argument
556 if ( nIn <= ( LONG_MAX / 100 ) && nIn >= ( LONG_MIN / 100 ) ) in CMToInch()
557 nRet = nIn * 100 / 254; in CMToInch()
563 long MMToInch( long nIn ) in MMToInch() argument
567 if ( nIn <= ( LONG_MAX / 10 ) && nIn >= ( LONG_MIN / 10 ) ) in MMToInch()
568 nRet = nIn * 10 / 254; in MMToInch()
574 long PointToInch( long nIn ) in PointToInch() argument
576 long nRet = nIn / 72; in PointToInch()
582 long PicaToInch( long nIn ) in PicaToInch() argument
584 long nRet = nIn / 6; in PicaToInch()
590 long TwipsToPoint( long nIn ) in TwipsToPoint() argument
592 long nRet = nIn / 20; in TwipsToPoint()
598 long InchToPoint( long nIn ) in InchToPoint() argument
602 if ( nIn <= ( LONG_MAX / 72 ) && nIn >= ( LONG_MIN / 72 ) ) in InchToPoint()
603 nRet = nIn * 72; in InchToPoint()
609 long CMToPoint( long nIn ) in CMToPoint() argument
613 if ( nIn <= ( LONG_MAX / 567 ) && nIn >= ( LONG_MIN / 567 ) ) in CMToPoint()
614 nRet = nIn * 567 / 20; in CMToPoint()
620 long MMToPoint( long nIn ) in MMToPoint() argument
624 if ( nIn <= ( LONG_MAX / 567 ) && nIn >= ( LONG_MIN / 567 ) ) in MMToPoint()
625 nRet = nIn * 567 / 200; in MMToPoint()
631 long PicaToPoint( long nIn ) in PicaToPoint() argument
633 long nRet = nIn / 12; in PicaToPoint()
639 long TwipsToPica( long nIn ) in TwipsToPica() argument
641 long nRet = nIn / 240; in TwipsToPica()
647 long InchToPica( long nIn ) in InchToPica() argument
651 if ( nIn <= ( LONG_MAX / 6 ) && nIn >= ( LONG_MIN / 6 ) ) in InchToPica()
652 nRet = nIn * 6; in InchToPica()
658 long PointToPica( long nIn ) in PointToPica() argument
662 if ( nIn <= ( LONG_MAX / 12 ) && nIn >= ( LONG_MIN / 12 ) ) in PointToPica()
663 nRet = nIn * 12; in PointToPica()
669 long CMToPica( long nIn ) in CMToPica() argument
673 if ( nIn <= ( LONG_MAX / 567 ) && nIn >= ( LONG_MIN / 567 ) ) in CMToPica()
674 nRet = nIn * 567 / 20 / 12; in CMToPica()
680 long MMToPica( long nIn ) in MMToPica() argument
684 if ( nIn <= ( LONG_MAX / 567 ) && nIn >= ( LONG_MIN / 567 ) ) in MMToPica()
685 nRet = nIn * 567 / 200 / 12; in MMToPica()
691 long Nothing( long nIn ) in Nothing() argument
693 long nRet = nIn; in Nothing()