Home
last modified time | relevance | path

Searched refs:nTwips (Results 1 – 25 of 28) sorted by relevance

12

/trunk/main/sc/source/filter/rtf/
H A Drtfparse.cxx126 sal_Bool ScRTFParser::SeekTwips( sal_uInt16 nTwips, SCCOL* pCol ) in SeekTwips() argument
129 sal_Bool bFound = pColTwips->Seek_Entry( nTwips, &nPos ); in SeekTwips()
141 else if ( nCol != 0 && (((*pColTwips)[nCol-1] + SC_RTFTWIPTOL) >= nTwips) ) in SeekTwips()
166 SeekTwips( pE->nTwips, &nCol ); in ColAdjust()
239 && SeekTwips( pD->nTwips, &n2 ) && n1 == n2) ) in NewCellRow()
246 if ( !SeekTwips( pD->nTwips, &n ) ) in NewCellRow()
247 pColTwips->Insert( pD->nTwips ); in NewCellRow()
292 nLastWidth = pD->nTwips; in ProcToken()
322 pInsDefault->nTwips = pInfo->nTokenValue; // rechter Zellenrand in ProcToken()
354 pActEntry->nTwips = pActDefault->nTwips; in ProcToken()
[all …]
/trunk/main/sc/source/ui/view/
H A Dcolrowba.cxx46 String lcl_MetricString( long nTwips, const String& rText ) in lcl_MetricString() argument
48 if ( nTwips <= 0 ) in lcl_MetricString()
54 sal_Int64 nUserVal = MetricField::ConvertValue( nTwips*100, 1, 2, FUNIT_TWIP, eUserMet ); in lcl_MetricString()
230 long nTwips = (long) ( nVal / pViewData->GetPPTX() ); in GetDragHelp() local
231 return lcl_MetricString( nTwips, ScGlobal::GetRscString(STR_TIP_WIDTH) ); in GetDragHelp()
397 long nTwips = (long) ( nVal / pViewData->GetPPTY() ); in GetDragHelp() local
398 return lcl_MetricString( nTwips, ScGlobal::GetRscString(STR_TIP_HEIGHT) ); in GetDragHelp()
H A Dcellsh3.cxx61 inline long TwipsToHMM(long nTwips) { return (nTwips * 127 + 36) / 72; } in TwipsToHMM() argument
63 inline long TwipsToEvenHMM(long nTwips) { return ( (nTwips * 127 + 72) / 144 ) * 2; } in TwipsToEvenHMM() argument
H A Dviewdata.cxx2061 long nTwips; in SetScreenPos() local
2066 nTwips = (long) (rVisAreaStart.X() / HMM_PER_TWIPS); in SetScreenPos()
2068 nTwips = -nTwips; in SetScreenPos()
2074 if (nSize+nAdd <= nTwips+1 && nX1<MAXCOL) in SetScreenPos()
2084 nTwips = (long) (rVisAreaStart.Y() / HMM_PER_TWIPS); in SetScreenPos()
2090 if (nSize+nAdd <= nTwips+1 && nY1<MAXROW) in SetScreenPos()
2199 sal_uInt16 nTwips = pDoc->GetCommonWidth( nEndCol, nTabNo ); in CalcPPT() local
2200 if ( nTwips ) in CalcPPT()
2202 double fOriginal = nTwips * nPPTX; in CalcPPT()
H A Dviewfunc.cxx265 sal_uInt16 nTwips = pDoc->GetOptimalColWidth( nCol, nTab, aProv.GetDevice(), in GetOptimalColWidth() local
267 return nTwips; in GetOptimalColWidth()
2466 sal_uInt16 nTwips = (sal_uInt16)( nPixel / nPPTX ); in ModifyCellSize() local
2467 if (nTwips != 0) in ModifyCellSize()
2468 nWidth = nTwips + STD_EXTRA_WIDTH; in ModifyCellSize()
/trunk/main/sc/source/core/data/
H A Ddocumen3.cxx1662 long nTwips; in GetRange() local
1667 nTwips = (long) (aPosRect.Left() / HMM_PER_TWIPS); in GetRange()
1674 if (nSize+nAdd <= nTwips+1 && nX1<MAXCOL) in GetRange()
1683 nTwips = (long) (aPosRect.Right() / HMM_PER_TWIPS); in GetRange()
1690 if (nSize+nAdd < nTwips && nX2<MAXCOL) in GetRange()
1701 nTwips = (long) (aPosRect.Top() / HMM_PER_TWIPS); in GetRange()
1708 nTwips = (long) (aPosRect.Bottom() / HMM_PER_TWIPS); in GetRange()
1729 long nTwips = (long) (rVal / HMM_PER_TWIPS); in lcl_SnapHor() local
1734 if ( nSnap + nAdd/2 < nTwips || nCol < rStartCol ) in lcl_SnapHor()
1749 long nTwips = (long) (rVal / HMM_PER_TWIPS); in lcl_SnapVer() local
[all …]
H A Dpatattr.cxx80 inline long TwipsToHMM(long nTwips) { return (nTwips * 127 + 36) / 72; } in TwipsToHMM() argument
H A Dtable1.cxx1508 long nTwips = (long) (nPixel / nPPTX); in MaybeAddExtraColumn() local
1511 long nMissing = nTwips - nDocW; in MaybeAddExtraColumn()
H A Dcolumn2.cxx727 sal_uInt16 nTwips = (sal_uInt16) (nWidth / nPPTX); in GetOptimalColWidth() local
728 return nTwips; in GetOptimalColWidth()
/trunk/main/sc/source/core/tool/
H A Ddocoptio.cxx55 inline long TwipsToHMM(long nTwips) { return (nTwips * 127 + 36) / 72; } in TwipsToHMM() argument
58 inline long TwipsToEvenHMM(long nTwips) { return ( (nTwips * 127 + 72) / 144 ) * 2; } in TwipsToEvenHMM() argument
/trunk/main/sc/source/ui/unoobj/
H A Ddefltuno.cxx80 inline long TwipsToHMM(long nTwips) { return (nTwips * 127 + 36) / 72; } in TwipsToHMM() argument
82 inline long TwipsToEvenHMM(long nTwips) { return ( (nTwips * 127 + 72) / 144 ) * 2; } in TwipsToEvenHMM() argument
H A Dstyleuno.cxx381 inline long TwipsToHMM(long nTwips) { return (nTwips * 127 + 36) / 72; } in TwipsToHMM() argument
/trunk/main/sc/source/filter/excel/
H A Dxltools.cxx307 double XclTools::GetInchFromTwips( sal_Int32 nTwips ) in GetInchFromTwips() argument
309 return static_cast< double >( nTwips ) / EXC_TWIPS_PER_INCH; in GetInchFromTwips()
322 sal_Int32 XclTools::GetHmmFromTwips( sal_Int32 nTwips ) in GetHmmFromTwips() argument
324 return GetHmmFromInch( GetInchFromTwips( nTwips ) ); in GetHmmFromTwips()
H A Dxlstyle.cxx298 void XclFontData::SetScHeight( sal_Int32 nTwips ) in SetScHeight() argument
300 mnHeight = static_cast< sal_uInt16 >( ::std::min( nTwips, static_cast<sal_Int32>(0x7FFFL) ) ); in SetScHeight()
/trunk/main/sc/source/ui/inc/
H A Dviewdata.hxx480 static inline long ToPixel( sal_uInt16 nTwips, double nFactor );
504 inline long ScViewData::ToPixel( sal_uInt16 nTwips, double nFactor ) in ToPixel() argument
506 long nRet = (long)( nTwips * nFactor ); in ToPixel()
507 if ( !nRet && nTwips ) in ToPixel()
/trunk/main/sc/source/filter/inc/
H A Drtfparse.hxx35 sal_uInt16 nTwips; // rechter Rand der Zelle member
75 sal_Bool SeekTwips( sal_uInt16 nTwips, SCCOL* pCol );
H A Dxltools.hxx136 static double GetInchFromTwips( sal_Int32 nTwips );
143 static sal_Int32 GetHmmFromTwips( sal_Int32 nTwips );
H A Deeparser.hxx69 sal_uInt16 nTwips; // RTF ColAdjust etc. member
H A Dhtmlexp.hxx155 sal_uInt16 ToPixel( sal_uInt16 nTwips );
H A Dxlstyle.hxx337 void SetScHeight( sal_Int32 nTwips );
/trunk/main/oox/inc/oox/export/
H A Dutils.hxx61 static inline sal_Int64 TwipsToEMU( sal_Int32 nTwips ) in TwipsToEMU() argument
63 return sal_Int64( nTwips ) * 635; in TwipsToEMU()
/trunk/main/editeng/source/items/
H A Dtextitem.cxx883 long nTwips = bConvert ? nHeight : MM100_TO_TWIP_UNSIGNED(nHeight); in QueryValue() local
884 aFontHeight.Height = (float)( nTwips / 20.0 ); in QueryValue()
924 long nTwips = bConvert ? nHeight : MM100_TO_TWIP_UNSIGNED(nHeight); in QueryValue() local
925 rVal <<= (float)( nTwips / 20.0 ); in QueryValue()
/trunk/main/filter/source/flash/
H A Dswfwriter1.cxx127 …sal_Int32 nTwips = mpVDev->LogicToLogic( Point( n100thMM, n100thMM ), &aSourceMapMode, &aTWIPSMod… in mapRelative() local
128 return nTwips; in mapRelative()
/trunk/main/sc/source/ui/vba/
H A Dvbarange.cxx191 short nTwips = static_cast<short>(nVal); in lcl_pointsToTwips() local
192 return nTwips; in lcl_pointsToTwips()
3811 sal_uInt16 nTwips = lcl_pointsToTwips( nColWidth ); in setColumnWidth() local
3819nTwips, sal_True, sal_True ); in setColumnWidth()
3974 sal_uInt16 nTwips = lcl_pointsToTwips( nHeight ); in setRowHeight() local
3983nTwips, sal_True, sal_True ); in setRowHeight()
/trunk/main/sw/source/filter/html/
H A Dswhtml.cxx4920 long nTwips = Application::GetDefaultDevice()->PixelToLogic( in ToTwips() local
4922 return nTwips <= USHRT_MAX ? (sal_uInt16)nTwips : USHRT_MAX; in ToTwips()

Completed in 255 milliseconds

12