Lines Matching refs:nIdx
239 sal_uInt16 nIdx; member
256 nIdx(0), in SvxRuler_Impl()
587 inline sal_uInt16 SvxRuler::GetObjectBordersOff(sal_uInt16 nIdx) const in GetObjectBordersOff()
589 return bHorz? nIdx: nIdx + 2; in GetObjectBordersOff()
1835 const sal_uInt16 nIdx = GetDragAryPos()+INDENT_GAP; in DragIndents() local
1836 const long lDiff = pIndents[nIdx].nPos - lDragPos; in DragIndents()
1838 if((nIdx == INDENT_FIRST_LINE || in DragIndents()
1839 nIdx == INDENT_LEFT_MARGIN ) && in DragIndents()
1844 pIndents[nIdx].nPos = lDragPos; in DragIndents()
1923 sal_uInt16 nIdx = GetDragAryPos()+TAB_GAP; in DragTabs() local
1926 long nDiff = lDragPos - pTabs[nIdx].nPos; in DragTabs()
1931 for(sal_uInt16 i = nIdx; i < nTabCount; ++i) in DragTabs()
1936 pTabs[nIdx].nStyle |= RULER_STYLE_INVISIBLE; in DragTabs()
1938 pTabs[nIdx].nStyle &= ~RULER_STYLE_INVISIBLE; in DragTabs()
1944 pTabs[nIdx].nPos = lDragPos; in DragTabs()
1945 for(sal_uInt16 i = nIdx+1; i < nTabCount; ++i) in DragTabs()
1952 pTabs[i].nPos = pTabs[nIdx].nPos + nDelta; in DragTabs()
1960 pTabs[nIdx].nPos = lDragPos; in DragTabs()
1963 pTabs[nIdx].nStyle |= RULER_STYLE_INVISIBLE; in DragTabs()
1965 pTabs[nIdx].nStyle &= ~RULER_STYLE_INVISIBLE; in DragTabs()
2062 int nIdx; in DragBorders() local
2067 nIdx = GetDragAryPos(); in DragBorders()
2070 nIdx=0; in DragBorders()
2085 lPos-nDragOffset - pBorders[nIdx].nPos in DragBorders()
2093 for(int i = nBorderCount-2; i >= nIdx; --i) in DragBorders()
2125 pBorders[nIdx].nPos += lDiff; in DragBorders()
2128 lLeft = pBorders[nIdx].nPos; in DragBorders()
2130 nLimit=nIdx+1; in DragBorders()
2135 nStartLimit = nIdx - 1; in DragBorders()
2142 nLimit=nIdx+1; in DragBorders()
2143 pBorders[nIdx].nPos += lDiff; in DragBorders()
2144 lLeft = pBorders[nIdx].nPos; in DragBorders()
2190 for(int i = 0; i < nIdx; ++i) in DragBorders()
2197 for(int i = pColumnItem->Count() - 1; i > nIdx; --i) in DragBorders()
2213 nLimit=nIdx+1; in DragBorders()
2214 lLeft=(pBorders[nIdx].nPos+=lDiff); in DragBorders()
2224 for(int i = 0; i < nIdx; ++i) in DragBorders()
2241 pBorders[nIdx].nPos+=lDiff; in DragBorders()
2246 lDiff = lPos - pBorders[nIdx].nPos; in DragBorders()
2247 pBorders[nIdx].nWidth += pBorders[nIdx].nPos - lPos; in DragBorders()
2248 pBorders[nIdx].nPos = lPos; in DragBorders()
2253 const long nOld = pBorders[nIdx].nWidth; in DragBorders()
2254 pBorders[nIdx].nWidth = lPos - pBorders[nIdx].nPos; in DragBorders()
2255 lDiff = pBorders[nIdx].nWidth - nOld; in DragBorders()
2260 GetActRightColumn() == nIdx && in DragBorders()
2267 GetActLeftColumn()==nIdx && in DragBorders()
2288 const sal_uInt16 nIdx = GetDragAryPos(); in DragObjectBorder() local
2289 pObjectBorders[GetObjectBordersOff(nIdx)].nPos = lPos; in DragObjectBorder()
2663 sal_uInt16 nIdx=GetDragAryPos(); in PrepareProportional_Impl() local
2684 lOrigLPos = pBorders[nIdx].nPos + pBorders[nIdx].nWidth; in PrepareProportional_Impl()
2687 lActBorderSum = pBorders[nIdx].nWidth; in PrepareProportional_Impl()
2699 nStartBorder = nIdx + 1; in PrepareProportional_Impl()
2705 nEndBorder = nIdx; in PrepareProportional_Impl()
2708 lWidth = pBorders[nIdx].nPos; in PrepareProportional_Impl()
2712 lPos = lOrigLPos = pBorders[nIdx].nPos; in PrepareProportional_Impl()
2756 const sal_uInt16 nIdx = GetDragAryPos()+TAB_GAP; in PrepareProportional_Impl() local
2757 pRuler_Imp->nTotalDist -= pTabs[nIdx].nPos; in PrepareProportional_Impl()
2759 for(sal_uInt16 n=0;n<=nIdx;pRuler_Imp->pPercBuf[n++]=0) ; in PrepareProportional_Impl()
2760 for(sal_uInt16 i = nIdx+1; i < nTabCount; ++i) in PrepareProportional_Impl()
2762 const long nDelta = pTabs[i].nPos - pTabs[nIdx].nPos; in PrepareProportional_Impl()
3080 const sal_uInt16 nIdx = GetDragAryPos(); in CalcMinMax() local
3085 nMaxRight = pBorders[nIdx].nPos + in CalcMinMax()
3086 pBorders[nIdx].nWidth + lNullPix; in CalcMinMax()
3088 if(0 == nIdx) in CalcMinMax()
3091 nMaxLeft = pBorders[nIdx-1].nPos + in CalcMinMax()
3092 pBorders[nIdx-1].nWidth + lNullPix; in CalcMinMax()
3093 if(nIdx == pColumnItem->GetActColumn()) in CalcMinMax()
3097 nMaxLeft += pBorders[nIdx].nPos + in CalcMinMax()
3103 nMaxLeft += pBorders[nIdx].nPos - in CalcMinMax()
3107 if(0 != nIdx) in CalcMinMax()
3108 nMaxLeft -= pBorders[nIdx-1].nPos + in CalcMinMax()
3109 pBorders[nIdx-1].nWidth; in CalcMinMax()
3121 sal_uInt16 nLeftCol=GetActLeftColumn(sal_False, nIdx); in CalcMinMax()
3123 sal_uInt16 nRightCol=GetActRightColumn(sal_False, nIdx); in CalcMinMax()
3140 nMaxRight = pBorders[nIdx].nMaxPos; in CalcMinMax()
3151 nMaxLeft = (nIdx + 1) * lMinFrame + lNullPix; in CalcMinMax()
3153 nMaxLeft = pBorders[nIdx].nMinPos + lNullPix; in CalcMinMax()
3161 (pColumnItem->Count() - nIdx - 1) * lMinFrame; in CalcMinMax()
3163 nMaxRight = pBorders[nIdx].nMaxPos + lNullPix; in CalcMinMax()
3166 nMaxRight=lNullPix+CalcPropMaxRight(nIdx); in CalcMinMax()
3169 nMaxRight = pBorders[nIdx].nMaxPos + lNullPix; in CalcMinMax()
3183 if(nActRightCol == nIdx) in CalcMinMax()
3187 nMaxLeft += pBorders[nIdx].nPos + in CalcMinMax()
3196 nMaxLeft += pBorders[nIdx].nPos - in CalcMinMax()
3212 nMaxRight=lNullPix+CalcPropMaxRight(nIdx); in CalcMinMax()
3217 (nBorderCount-nIdx-1)*lMinFrame; in CalcMinMax()
3240 nMaxRight += pBorders[nIdx].nPos + in CalcMinMax()
3241 pBorders[nIdx].nWidth; in CalcMinMax()
3248 GetActRightColumn(sal_True, nIdx); in CalcMinMax()
3250 if( nActLeftCol == nIdx ) in CalcMinMax()
3268 nMaxRight += pBorders[nIdx].nPos + in CalcMinMax()
3269 pBorders[nIdx].nWidth; in CalcMinMax()
3273 nMaxRight -= pBorders[nIdx].nWidth; in CalcMinMax()
3282 if(CalcLimits(nMaxLeft, nMaxRight, nIdx & 1? sal_False : sal_True)) in CalcMinMax()
3298 nMaxLeft = lNullPix + pBorders[nIdx].nPos; in CalcMinMax()
3299 if(nIdx == pColumnItem->Count()-2) { // letzte Spalte in CalcMinMax()
3306 nMaxRight += pBorders[nIdx].nPos + in CalcMinMax()
3307 pBorders[nIdx].nWidth; in CalcMinMax()
3311 nMaxRight = lNullPix + pBorders[nIdx+1].nPos; in CalcMinMax()
3312 if(pColumnItem->GetActColumn()-1 == nIdx) { in CalcMinMax()
3313 nMaxRight -= pBorders[nIdx+1].nPos - GetRightIndent() + in CalcMinMax()
3316 nMaxRight += pBorders[nIdx].nPos + in CalcMinMax()
3317 pBorders[nIdx].nWidth; in CalcMinMax()
3321 nMaxRight -= pBorders[nIdx].nWidth; in CalcMinMax()
3330 const sal_uInt16 nIdx = GetDragAryPos(); in CalcMinMax() local
3331 switch(nIdx) { in CalcMinMax()
3345 if((INDENT_FIRST_LINE - INDENT_GAP) != nIdx && in CalcMinMax()
3365 if((INDENT_FIRST_LINE - INDENT_GAP) != nIdx && in CalcMinMax()
3716 if(pTabStopItem && pTabStopItem->Count() > pRuler_Imp->nIdx) in IMPL_LINK_INLINE_END()
3718 SvxTabStop aTabStop = (*pTabStopItem)[pRuler_Imp->nIdx]; in IMPL_LINK_INLINE_END()
3720 pTabStopItem->Remove(pRuler_Imp->nIdx); in IMPL_LINK_INLINE_END()
3725 pRuler_Imp->nIdx = 0; in IMPL_LINK_INLINE_END()
3747 GetType( rCEvt.GetMousePosPixel(), &pRuler_Imp->nIdx ) && in Command()
3748 pTabs[pRuler_Imp->nIdx+TAB_GAP].nStyle < RULER_TAB_DEFAULT ) in Command()
3766 aMenu.CheckItem(i+1, i == pTabs[pRuler_Imp->nIdx+TAB_GAP].nStyle); in Command()