Home
last modified time | relevance | path

Searched refs:eUnit (Results 1 – 25 of 93) sorted by relevance

1234

/aoo4110/main/cui/source/tabpages/
H A Dgrfpage.cxx207 aHeightMF.SetMax( nTmp, eUnit ); in Reset()
209 aWidthMF.SetMax( nTmp, eUnit ); in Reset()
211 aHeightMF.SetMin( nTmp, eUnit ); in Reset()
212 aWidthMF.SetMin( nTmp, eUnit ); in Reset()
419 eUnit); in IMPL_LINK()
427 eUnit ); in IMPL_LINK()
460 ( lcl_GetValue(aTopMF, eUnit) + in IMPL_LINK()
568 lcl_GetValue( aLeftMF, eUnit ) - in IMPL_LINK()
569 lcl_GetValue( aRightMF, eUnit ); in IMPL_LINK()
572 lcl_GetValue( aTopMF, eUnit ) - in IMPL_LINK()
[all …]
H A Dconnect.cxx192 SetMetricValue( aMtrFldHorz1, nValue, eUnit ); in Reset()
206 SetMetricValue( aMtrFldHorz2, nValue, eUnit ); in Reset()
220 SetMetricValue( aMtrFldVert1, nValue, eUnit ); in Reset()
234 SetMetricValue( aMtrFldVert2, nValue, eUnit ); in Reset()
337 nValue = GetCoreValue( aMtrFldHorz1, eUnit ); in FillItemSet()
344 nValue = GetCoreValue( aMtrFldHorz2, eUnit ); in FillItemSet()
351 nValue = GetCoreValue( aMtrFldVert1, eUnit ); in FillItemSet()
358 nValue = GetCoreValue( aMtrFldVert2, eUnit ); in FillItemSet()
365 nValue = GetCoreValue( aMtrFldLine1, eUnit ); in FillItemSet()
372 nValue = GetCoreValue( aMtrFldLine2, eUnit ); in FillItemSet()
[all …]
H A Dparagrph.cxx183 FieldUnit eUnit = in IMPL_LINK() local
245 SfxMapUnit eUnit = pPool->GetMetric( nWhich ); in FillItemSet() local
267 GetCoreValue( aLineDistAtMetricBox, eUnit ) ); in FillItemSet()
288 SfxMapUnit eUnit = pPool->GetMetric( nWhich ); in FillItemSet() local
334 SfxMapUnit eUnit = pPool->GetMetric( nWhich ); in FillItemSet() local
369 (sal_uInt16)GetCoreValue( aFLineIndent, eUnit ) ); in FillItemSet()
387 if ( MAP_100TH_MM != eUnit ) in FillItemSet()
491 eUnit ); in Reset()
750 rAttr.GetInterLineSpace(), eUnit ); in SetLineSpacing_Impl()
882 FieldUnit eUnit = in IMPL_LINK_INLINE_END() local
[all …]
H A Dlabdlg.cxx176 SfxMapUnit eUnit; in FillItemSet() local
184 eUnit = pPool->GetMetric( GetWhich( SDRATTR_CAPTIONGAP ) ); in FillItemSet()
219 eUnit = pPool->GetMetric( GetWhich( SDRATTR_CAPTIONESCABS ) ); in FillItemSet()
231 eUnit = pPool->GetMetric( GetWhich( SDRATTR_CAPTIONLINELEN ) ); in FillItemSet()
267 SfxMapUnit eUnit; in Reset() local
275 eUnit = pPool->GetMetric( nWhich ); in Reset()
277 SetMetricValue( aMF_ANSATZ, nEscAbs, eUnit ); in Reset()
286 eUnit = pPool->GetMetric( nWhich ); in Reset()
288 SetMetricValue( aMF_LAENGE, nLineLen, eUnit ); in Reset()
293 eUnit = pPool->GetMetric( nWhich ); in Reset()
[all …]
H A Dmeasure.cxx193 eUnit = pPool->GetMetric( SDRATTR_MEASURELINEDIST ); in Reset()
203 SetMetricValue( aMtrFldLineDist, nValue, eUnit ); in Reset()
218 SetMetricValue( aMtrFldHelplineOverhang, nValue, eUnit ); in Reset()
233 SetMetricValue( aMtrFldHelplineDist, nValue, eUnit ); in Reset()
248 SetMetricValue( aMtrFldHelpline1Len, nValue, eUnit ); in Reset()
263 SetMetricValue( aMtrFldHelpline2Len, nValue, eUnit ); in Reset()
451 nValue = GetCoreValue( aMtrFldLineDist, eUnit ); in FillItemSet()
458 nValue = GetCoreValue( aMtrFldHelplineOverhang, eUnit ); in FillItemSet()
465 nValue = GetCoreValue( aMtrFldHelplineDist, eUnit ); in FillItemSet()
472 nValue = GetCoreValue( aMtrFldHelpline1Len, eUnit ); in FillItemSet()
[all …]
H A Dpage.cxx186 long ConvertLong_Impl( const long nIn, SfxMapUnit eUnit ) in ConvertLong_Impl() argument
488 SetMetricValue( aLeftMarginEdit, rLRSpace.GetLeft(), eUnit ); in Reset()
502 SetMetricValue( aTopMarginEdit, rULSpace.GetUpper(), eUnit ); in Reset()
579 ConvertLong_Impl( aPaperSize.Height(), eUnit ) ) ); in Reset()
747 SfxMapUnit eUnit = pPool->GetMetric( nWhich ); in FillItemSet() local
831 Size aSize( GetCoreValue( aPaperWidthEdit, eUnit ), in FillItemSet()
832 GetCoreValue( aPaperHeightEdit, eUnit ) ); in FillItemSet()
1109 Size aSize( GetCoreValue( aPaperWidthEdit, eUnit ), in IMPL_LINK()
1110 GetCoreValue( aPaperHeightEdit, eUnit ) ); in IMPL_LINK()
1507 Size aSize( GetCoreValue( aPaperWidthEdit, eUnit ), in DeactivatePage()
[all …]
H A Dtabstpge.cxx237 MapUnit eUnit = (MapUnit)pPool->GetMetric( GetWhich( SID_ATTR_TABSTOP ) ); in FillItemSet() local
240 if ( MAP_100TH_MM != eUnit ) in FillItemSet()
263 LogicToLogic( aTmpStop.GetTabPos(), MAP_100TH_MM, eUnit ); in FillItemSet()
294 MapUnit eUnit = (MapUnit)pPool->GetMetric( GetWhich( SID_ATTR_TABSTOP ) ); in Reset() local
301 if ( MAP_100TH_MM != eUnit ) in Reset()
310 LogicToLogic( aTmpStop.GetTabPos(), eUnit, MAP_100TH_MM ); in Reset()
326 (long)((const SfxUInt16Item*)pItem)->GetValue(), eUnit, MAP_100TH_MM ); in Reset()
404 MapUnit eUnit = (MapUnit)GetItemSet().GetPool()->GetMetric( GetWhich( SID_ATTR_TABSTOP ) ); in InitTabPos_Impl() local
405 nOffset = OutputDevice::LogicToLogic( nOffset, eUnit, MAP_100TH_MM ); in InitTabPos_Impl()
515 MapUnit eUnit = (MapUnit)GetItemSet().GetPool()->GetMetric( GetWhich( SID_ATTR_TABSTOP ) ); in IMPL_LINK() local
[all …]
H A Dtextattr.cxx167 SfxMapUnit eUnit = pPool->GetMetric( SDRATTR_TEXT_LEFTDIST ); in Reset() local
177 SetMetricValue( aMtrFldLeft, nValue, eUnit ); in Reset()
190 SetMetricValue( aMtrFldRight, nValue, eUnit ); in Reset()
203 SetMetricValue( aMtrFldTop, nValue, eUnit ); in Reset()
216 SetMetricValue( aMtrFldBottom, nValue, eUnit ); in Reset()
383 SfxMapUnit eUnit = pPool->GetMetric( SDRATTR_TEXT_LEFTDIST ); in FillItemSet() local
390 nValue = GetCoreValue( aMtrFldLeft, eUnit ); in FillItemSet()
396 nValue = GetCoreValue( aMtrFldRight, eUnit ); in FillItemSet()
402 nValue = GetCoreValue( aMtrFldTop, eUnit ); in FillItemSet()
408 nValue = GetCoreValue( aMtrFldBottom, eUnit ); in FillItemSet()
/aoo4110/main/svtools/source/misc/
H A Dunitconv.cxx42 switch ( eUnit ) in SetFieldUnit()
46 eUnit = FUNIT_CM; in SetFieldUnit()
51 eUnit = FUNIT_INCH; in SetFieldUnit()
57 switch( eUnit ) in SetFieldUnit()
97 switch ( eUnit ) in SetFieldUnit()
101 eUnit = FUNIT_CM; in SetFieldUnit()
177 switch ( eUnit ) in CalcToUnit()
260 switch ( eUnit ) in MapToFieldUnit()
299 switch ( eUnit ) in ConvertValueToMap()
324 switch ( eUnit ) in ConvertValueToUnit()
[all …]
/aoo4110/main/xmloff/source/core/
H A Dxmlehelp.cxx71 eUnit = XML_UNIT_MM; in AddLength()
79 eUnit = XML_UNIT_CM; in AddLength()
87 eUnit = XML_UNIT_PT; in AddLength()
98 eUnit = XML_UNIT_INCH; in AddLength()
110 eUnit = XML_UNIT_PT; in AddLength()
127 eUnit = XML_UNIT_MM; in AddLength()
135 eUnit = XML_UNIT_CM; in AddLength()
143 eUnit = XML_UNIT_PT; in AddLength()
256 eUnit = XML_UNIT_MM; in GetConversionFactor()
263 eUnit = XML_UNIT_CM; in GetConversionFactor()
[all …]
/aoo4110/main/editeng/source/items/
H A Dpaperinf.cxx48 Size SvxPaperInfo::GetPaperSize( Paper ePaper, MapUnit eUnit ) in GetPaperSize() argument
52 return eUnit == MAP_100TH_MM ? aRet : OutputDevice::LogicToLogic(aRet, MAP_100TH_MM, eUnit); in GetPaperSize()
100 Paper SvxPaperInfo::GetSvxPaper( const Size &rSize, MapUnit eUnit, bool bSloppy ) in GetSvxPaper() argument
102 …Size aSize(eUnit == MAP_100TH_MM ? rSize : OutputDevice::LogicToLogic(rSize, eUnit, MAP_100TH_MM)); in GetSvxPaper()
111 long SvxPaperInfo::GetSloppyPaperDimension( long nSize, MapUnit eUnit ) in GetSloppyPaperDimension() argument
113 nSize = eUnit == MAP_100TH_MM ? nSize : OutputDevice::LogicToLogic(nSize, eUnit, MAP_100TH_MM); in GetSloppyPaperDimension()
115 return eUnit == MAP_100TH_MM ? nSize : OutputDevice::LogicToLogic(nSize, MAP_100TH_MM, eUnit); in GetSloppyPaperDimension()
120 Size SvxPaperInfo::GetDefaultPaperSize( MapUnit eUnit ) in GetDefaultPaperSize() argument
124 return eUnit == MAP_100TH_MM ? aRet : OutputDevice::LogicToLogic(aRet, MAP_100TH_MM, eUnit); in GetDefaultPaperSize()
/aoo4110/main/svtools/inc/svtools/
H A Dunitconv.hxx39 SVT_DLLPUBLIC void SetFieldUnit( MetricField& rCtrl, FieldUnit eUnit, sal_Bool bAll = sal_False );
40 SVT_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl, FieldUnit eUnit, sal_Bool bAll = sal_False );
42 SVT_DLLPUBLIC long CalcToUnit( float nIn, SfxMapUnit eUnit );
43 SVT_DLLPUBLIC long CalcToPoint( long nIn, SfxMapUnit eUnit, sal_uInt16 nFaktor );
48 SVT_DLLPUBLIC FieldUnit MapToFieldUnit( const SfxMapUnit eUnit );
49 SVT_DLLPUBLIC MapUnit FieldToMapUnit( const SfxFieldUnit eUnit );
51 SVT_DLLPUBLIC long ConvertValueToMap( long nVal, SfxMapUnit eUnit );
52 SVT_DLLPUBLIC long ConvertValueToUnit( long nVal, SfxMapUnit eUnit );
54 SVT_DLLPUBLIC void SetMetricValue( MetricField& rField, long lCoreValue, SfxMapUnit eUnit );
55 SVT_DLLPUBLIC long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit );
/aoo4110/main/vcl/source/gdi/
H A Dmapmod.cxx90 ImplMapMode* ImplMapMode::ImplGetStaticMapMode( MapUnit eUnit ) in ImplGetStaticMapMode() argument
95 if( eUnit >= MAP_LASTENUMDUMMY ) in ImplGetStaticMapMode()
98 ImplMapMode* pImplMapMode = ((ImplMapMode*)aStaticImplMapModeAry)+eUnit; in ImplGetStaticMapMode()
104 pImplMapMode->meUnit = eUnit; in ImplGetStaticMapMode()
150 MapMode::MapMode( MapUnit eUnit ) in MapMode() argument
154 mpImplMapMode = ImplMapMode::ImplGetStaticMapMode( eUnit ); in MapMode()
159 MapMode::MapMode( MapUnit eUnit, const Point& rLogicOrg, in MapMode() argument
165 mpImplMapMode->meUnit = eUnit; in MapMode()
190 void MapMode::SetMapUnit( MapUnit eUnit ) in SetMapUnit() argument
195 mpImplMapMode->meUnit = eUnit; in SetMapUnit()
/aoo4110/main/svx/source/sidebar/text/
H A DTextCharacterSpacingControl.cxx213 SfxMapUnit eUnit = mrTextPropertyPanel.GetSpaceController().GetCoreMetric(); in Rearrange() local
214 MapUnit eOrgUnit = (MapUnit)eUnit; in Rearrange()
314 SfxMapUnit eUnit = mrTextPropertyPanel.GetSpaceController().GetCoreMetric(); in IMPL_LINK() local
318 nVal = LogicToLogic(30, MAP_POINT, (MapUnit)eUnit); in IMPL_LINK()
327 nVal = LogicToLogic(15, MAP_POINT, (MapUnit)eUnit); in IMPL_LINK()
343 nVal = LogicToLogic(30, MAP_POINT, (MapUnit)eUnit); in IMPL_LINK()
352 nVal = LogicToLogic(60, MAP_POINT, (MapUnit)eUnit); in IMPL_LINK()
364 nVal = LogicToLogic(mnCustomKern, MAP_POINT, (MapUnit)eUnit); in IMPL_LINK()
427 SfxMapUnit eUnit = mrTextPropertyPanel.GetSpaceController().GetCoreMetric(); in IMPL_LINK() local
440 long nVal = LogicToLogic( nTmp, MAP_POINT, (MapUnit)eUnit ); in IMPL_LINK()
[all …]
H A DTextPropertyPanel.cxx106 SfxMapUnit eUnit = maSpacingControl.GetCoreMetric(); in GetSelFontSize() local
108 nH = LogicToLogic( mpHeightItem->GetHeight(), (MapUnit)eUnit, MAP_TWIP ); in GetSelFontSize()
555 SfxMapUnit eUnit = maFontSizeControl.GetCoreMetric(); in IMPL_LINK() local
556 SvxFontHeightItem aItem( CalcToUnit( fSize, eUnit ), 100, SID_ATTR_CHAR_FONTHEIGHT ) ; in IMPL_LINK()
721 SfxMapUnit eUnit = maFontSizeControl.GetCoreMetric(); in IMPL_LINK() local
722 … SvxFontHeightItem aItem( CalcToUnit( fSize, eUnit ), 100, SID_ATTR_CHAR_FONTHEIGHT ) ; in IMPL_LINK()
758 SfxMapUnit eUnit = maFontSizeControl.GetCoreMetric(); in IMPL_LINK() local
759 … SvxFontHeightItem aItem( CalcToUnit( fSize, eUnit ), 100, SID_ATTR_CHAR_FONTHEIGHT ) ; in IMPL_LINK()
903 SfxMapUnit eUnit = maFontSizeControl.GetCoreMetric(); in NotifyItemUpdate() local
904 const sal_Int64 nValue (CalcToPoint(mpHeightItem->GetHeight(), eUnit, 10 )); in NotifyItemUpdate()
/aoo4110/main/sw/source/ui/app/
H A Dappopt.cxx200 FieldUnit eUnit = pPref->GetHScrollMetric(); in CreateItemSet() local
202 pAppView->GetHLinealMetric(eUnit); in CreateItemSet()
203 pRet->Put(SfxUInt16Item( FN_HSCROLL_METRIC, static_cast< sal_uInt16 >(eUnit))); in CreateItemSet()
205 eUnit = pPref->GetVScrollMetric(); in CreateItemSet()
207 pAppView->GetVLinealMetric(eUnit); in CreateItemSet()
360 FieldUnit eUnit = (FieldUnit)pMetricItem->GetValue(); in ApplyItemSet() local
361 pPref->SetHScrollMetric(eUnit); in ApplyItemSet()
363 pAppView->ChangeTabMetric(eUnit); in ApplyItemSet()
369 FieldUnit eUnit = (FieldUnit)pMetricItem->GetValue(); in ApplyItemSet() local
370 pPref->SetVScrollMetric(eUnit); in ApplyItemSet()
[all …]
/aoo4110/main/oox/source/xls/
H A Dunitconverter.cxx178 sal_Int32 UnitConverter::scaleToMm100( double fValue, Unit eUnit ) const in scaleToMm100()
180 return static_cast< sal_Int32 >( fValue * getCoefficient( eUnit ) + 0.5 ); in scaleToMm100()
183 double UnitConverter::scaleFromMm100( sal_Int32 nMm100, Unit eUnit ) const in scaleFromMm100()
185 return static_cast< double >( nMm100 ) / getCoefficient( eUnit ); in scaleFromMm100()
246 double UnitConverter::getCoefficient( Unit eUnit ) const in getCoefficient()
248 …OSL_ENSURE( static_cast< size_t >( eUnit ) < UNIT_ENUM_SIZE, "UnitConverter::getCoefficient - inva… in getCoefficient()
249 return maCoeffs[ static_cast< size_t >( eUnit ) ]; in getCoefficient()
/aoo4110/main/svx/source/dialog/
H A Dhdft.cxx234 SfxMapUnit eUnit = pPool->GetMetric( nWSize ); in FillItemSet() local
253 long nDist = GetCoreValue( aDistEdit, eUnit ); in FillItemSet()
254 long nH = GetCoreValue( aHeightEdit, eUnit ); in FillItemSet()
265 aLR.SetLeft( (sal_uInt16)GetCoreValue( aLMEdit, eUnit ) ); in FillItemSet()
266 aLR.SetRight( (sal_uInt16)GetCoreValue( aRMEdit, eUnit ) ); in FillItemSet()
315 SfxMapUnit eUnit = pPool->GetMetric( GetWhich( SID_ATTR_PAGE_SIZE ) ); in Reset() local
352 SetMetricValue( aDistEdit, rUL.GetLower(), eUnit ); in Reset()
353 SetMetricValue( aHeightEdit, rSize.GetSize().Height() - rUL.GetLower(), eUnit ); in Reset()
357 SetMetricValue( aDistEdit, rUL.GetUpper(), eUnit ); in Reset()
362 SetMetricValue( aLMEdit, rLR.GetLeft(), eUnit ); in Reset()
[all …]
H A Doptgrid.cxx279 SfxMapUnit eUnit = in FillItemSet() local
281 long nX =GetCoreValue( aMtrFldDrawX, eUnit ); in FillItemSet()
282 long nY = GetCoreValue( aMtrFldDrawY, eUnit ); in FillItemSet()
308 SfxMapUnit eUnit = in Reset() local
310 SetMetricValue( aMtrFldDrawX , pGridAttr->nFldDrawX, eUnit ); in Reset()
311 SetMetricValue( aMtrFldDrawY , pGridAttr->nFldDrawY, eUnit ); in Reset()
/aoo4110/main/editeng/source/editeng/
H A Deehtml.cxx644 MapUnit eUnit = pImpEditEngine->GetRefMapMode().GetMapUnit(); in ImpSetStyleSheet() local
645 if ( ( eUnit != MAP_PIXEL ) && ( eUnit != MAP_SYSFONT ) && in ImpSetStyleSheet()
646 ( eUnit != MAP_APPFONT ) && ( eUnit != MAP_RELATIVE ) ) in ImpSetStyleSheet()
658 nPoints = OutputDevice::LogicToLogic( nPoints, MAP_POINT, eUnit ); in ImpSetStyleSheet()
666 aULSpaceItem.SetUpper( (sal_uInt16)OutputDevice::LogicToLogic( 42, MAP_10TH_MM, eUnit ) ); in ImpSetStyleSheet()
667 aULSpaceItem.SetLower( (sal_uInt16)OutputDevice::LogicToLogic( 35, MAP_10TH_MM, eUnit ) ); in ImpSetStyleSheet()
/aoo4110/main/editeng/inc/editeng/
H A Dpaperinf.hxx44 static Size GetDefaultPaperSize( MapUnit eUnit = MAP_TWIP );
45 static Size GetPaperSize( Paper ePaper, MapUnit eUnit = MAP_TWIP );
47 …static Paper GetSvxPaper( const Size &rSize, MapUnit eUnit = MAP_TWIP, bool bSloppy = sal_False…
48 static long GetSloppyPaperDimension( long nSize, MapUnit eUnit = MAP_TWIP );
H A Dfhgtitem.hxx85 SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE );
88 SfxMapUnit eUnit, SfxMapUnit eCoreUnit );
99 SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE ) in SetProp() argument
103 ePropUnit = eUnit; in SetProp()
/aoo4110/main/sfx2/source/appl/
H A Dmodule.cxx447 FieldUnit eUnit = FUNIT_INCH; in GetCurrentFieldUnit() local
453 eUnit = (FieldUnit)( (SfxUInt16Item*)pItem )->GetValue(); in GetCurrentFieldUnit()
457 return eUnit; in GetCurrentFieldUnit()
462 FieldUnit eUnit = FUNIT_INCH; in GetFieldUnit() local
465 eUnit = (FieldUnit)( (SfxUInt16Item*)pItem )->GetValue(); in GetFieldUnit()
466 return eUnit; in GetFieldUnit()
/aoo4110/main/vcl/inc/vcl/
H A Dmapmod.hxx58 static ImplMapMode* ImplGetStaticMapMode( MapUnit eUnit );
80 MapMode( MapUnit eUnit );
81 MapMode( MapUnit eUnit, const Point& rLogicOrg,
85 void SetMapUnit( MapUnit eUnit );
/aoo4110/main/sfx2/source/dialog/
H A Dmgetempl.cxx340 SfxMapUnit eUnit = SFX_MAPUNIT_CM; in SetDescriptionText_Impl() local
353 case FUNIT_MM: eUnit = SFX_MAPUNIT_MM; break; in SetDescriptionText_Impl()
357 case FUNIT_KM: eUnit = SFX_MAPUNIT_CM; break; in SetDescriptionText_Impl()
360 case FUNIT_PICA: eUnit = SFX_MAPUNIT_POINT; break; in SetDescriptionText_Impl()
364 case FUNIT_MILE: eUnit = SFX_MAPUNIT_INCH; break; in SetDescriptionText_Impl()
369 aDescFt.SetText( pStyle->GetDescription( eUnit ) ); in SetDescriptionText_Impl()

Completed in 374 milliseconds

1234