Lines Matching refs:i
167 for ( size_t i = 0; i < nTabSize; ++i ) in doSloppyFit() local
169 if (i == PAPER_USER) continue; in doSloppyFit()
171 long lDiffW = labs(aDinTab[i].m_nWidth - m_nPaperWidth); in doSloppyFit()
172 long lDiffH = labs(aDinTab[i].m_nHeight - m_nPaperHeight); in doSloppyFit()
176 m_nPaperWidth = aDinTab[i].m_nWidth; in doSloppyFit()
177 m_nPaperHeight = aDinTab[i].m_nHeight; in doSloppyFit()
178 m_eType = (Paper)i; in doSloppyFit()
197 for ( size_t i = 0; i < nTabSize; ++i ) in sloppyFitPageDimension() local
199 if (i == PAPER_USER) continue; in sloppyFitPageDimension()
202 lDiff = labs(aDinTab[i].m_nWidth - nDimension); in sloppyFitPageDimension()
204 return aDinTab[i].m_nWidth; in sloppyFitPageDimension()
206 lDiff = labs(aDinTab[i].m_nHeight - nDimension); in sloppyFitPageDimension()
208 return aDinTab[i].m_nHeight; in sloppyFitPageDimension()
290 for (size_t i = 0; i < nExtraTabSize; ++i) in getSystemDefaultPaper() local
292 if (rtl_str_compareIgnoreAsciiCase(aCustoms[i].pName, aPaper.getStr()) == 0) in getSystemDefaultPaper()
294 ePaper = aCustoms[i].ePaper; in getSystemDefaultPaper()
332 for ( size_t i = 0; i < nTabSize; ++i ) in getSystemDefaultPaper() local
334 if (i == PAPER_USER) continue; in getSystemDefaultPaper()
339 long width = (aDinTab[i].m_nWidth + 50) / 100; in getSystemDefaultPaper()
340 long height = (aDinTab[i].m_nHeight + 50) / 100; in getSystemDefaultPaper()
344 w.word = aDinTab[i].m_nWidth; in getSystemDefaultPaper()
345 h.word = aDinTab[i].m_nHeight; in getSystemDefaultPaper()
399 for ( size_t i = 0; i < nTabSize; ++i ) in PaperInfo() local
402 (nPaperWidth == aDinTab[i].m_nWidth) && in PaperInfo()
403 (nPaperHeight == aDinTab[i].m_nHeight) in PaperInfo()
406 m_eType = static_cast<Paper>(i); in PaperInfo()
423 for ( size_t i = 0; i < nTabSize; ++i ) in fromPSName() local
425 if (aDinTab[i].m_pPSName && in fromPSName()
426 !rtl_str_compareIgnoreAsciiCase(aDinTab[i].m_pPSName, rName.getStr())) in fromPSName()
428 return static_cast<Paper>(i); in fromPSName()
430 else if (aDinTab[i].m_pAltPSName && in fromPSName()
431 !rtl_str_compareIgnoreAsciiCase(aDinTab[i].m_pAltPSName, rName.getStr())) in fromPSName()
433 return static_cast<Paper>(i); in fromPSName()