| /trunk/main/sal/textenc/ |
| H A D | convertgb18030.c | 79 sal_uInt32 nCode = 0; in ImplConvertGb18030ToUnicode() local 88 nCode = ((ImplGb18030ToUnicodeContext *) pContext)->m_nCode; in ImplConvertGb18030ToUnicode() 107 nCode = nChar - 0x81; in ImplConvertGb18030ToUnicode() 120 nCode = nCode * 10 + (nChar - 0x30); in ImplConvertGb18030ToUnicode() 126 nCode = nCode * 190 + (nChar <= 0x7E ? nChar - 0x40 : in ImplConvertGb18030ToUnicode() 129 *pDestBufPtr++ = pGb18030Data[nCode]; in ImplConvertGb18030ToUnicode() 144 nCode = nCode * 126 + (nChar - 0x81); in ImplConvertGb18030ToUnicode() 157 nCode = nCode * 10 + (nChar - 0x30); in ImplConvertGb18030ToUnicode() 160 if (nCode >= 189000 && nCode <= 1237575) in ImplConvertGb18030ToUnicode() 163 nCode -= 189000 - 0x10000; in ImplConvertGb18030ToUnicode() [all …]
|
| /trunk/main/vcl/inc/vcl/ |
| H A D | keycod.hxx | 61 sal_uInt16 nCode; member in KeyCode 65 KeyCode() { nCode = 0; eFunc = KEYFUNC_DONTKNOW; } in KeyCode() 68 { nCode = nKey | nModifier; eFunc = KEYFUNC_DONTKNOW; } in KeyCode() 72 sal_uInt16 GetFullCode() const { return nCode; } in GetFullCode() 73 sal_uInt16 GetFullKeyCode() const { return (nCode) ; } in GetFullKeyCode() 78 { return (nCode & KEY_CODE); } in GetCode() 81 { return (nCode & KEY_MODTYPE); } in GetModifier() 83 { return (nCode & KEY_ALLMODTYPE); } in GetAllModifier() 85 { return ((nCode & KEY_SHIFT) != 0); } in IsShift() 87 { return ((nCode & KEY_MOD1) != 0); } in IsMod1() [all …]
|
| /trunk/main/filter/source/graphicfilter/itiff/ |
| H A D | lzwdecom.cxx | 119 sal_uInt16 nBits,nCode; in GetNextCode() local 126 nCode=0; in GetNextCode() 130 nCode=(nCode<<nInputBitsBufSize) | nInputBitsBuf; in GetNextCode() 139 nCode=(nCode<<nBits) | (nInputBitsBuf>>(nInputBitsBufSize-nBits)); in GetNextCode() 146 return nCode; in GetNextCode() 165 sal_uInt16 i,nCode; in DecompressSome() local 167 nCode=GetNextCode(); in DecompressSome() 168 if (nCode==256) { in DecompressSome() 170 nCode=GetNextCode(); in DecompressSome() 171 if (nCode==257) { bEOIFound=sal_True; return; } in DecompressSome() [all …]
|
| H A D | ccidecom.cxx | 747 pHufTab[i].nCode!=pHufTabSave[i].nCode || in MakeLookUp() 755 nMinCode = nMask & (pHufTab[i].nCode << (nMaxCodeBits-pHufTab[i].nCodeBits)); in MakeLookUp() 771 sal_uInt16 nCode; in ReadEOL() local 800 nCode = (sal_uInt16)( ( nInputBitsBuf >> ( nInputBitsBufSize - 12 ) ) & 0x0fff ); in ReadEOL() 801 if ( nCode == 0x0001 ) in ReadEOL() 853 sal_uInt16 nCode,nCodeBits; in ReadCodeAndDecode() local 864 nCode=(sal_uInt16)((nInputBitsBuf>>(nInputBitsBufSize-nMaxCodeBits)) in ReadCodeAndDecode() 866 nCodeBits=pLookUp[nCode].nCodeBits; in ReadCodeAndDecode() 869 return pLookUp[nCode].nValue; in ReadCodeAndDecode() 929 sal_uInt16 nCode,nCodeBits,nDataBits,nTgtFreeByteBits; in Read1DScanlineData() local [all …]
|
| /trunk/main/sc/source/ui/dbgui/ |
| H A D | scuiimoptdlg.cxx | 49 String GetDelimiter( sal_Unicode nCode ) const; 65 sal_Unicode nCode = 0; in GetCode() local 74 nCode = (sal_Unicode) theDelTab.GetToken( i+1, cSep ).ToInt32(); in GetCode() 82 return nCode; in GetCode() 87 String ScDelimiterTable::GetDelimiter( sal_Unicode nCode ) const in GetDelimiter() 96 if ( nCode == (sal_Unicode) theDelTab.GetToken( i+1, cSep ).ToInt32() ) in GetDelimiter() 146 sal_Unicode nCode; in ScImportOptionsDlg() local 185 nCode = pOptions->nFieldSepCode; in ScImportOptionsDlg() 186 aStr = pFieldSepTab->GetDelimiter( nCode ); in ScImportOptionsDlg() 189 aEdFieldSep.SetText( String((sal_Unicode)nCode) ); in ScImportOptionsDlg() [all …]
|
| H A D | csvcontrol.cxx | 289 ScMoveMode ScCsvControl::GetHorzDirection( sal_uInt16 nCode, bool bHomeEnd ) in GetHorzDirection() argument 291 switch( nCode ) in GetHorzDirection() 296 if( bHomeEnd ) switch( nCode ) in GetHorzDirection() 304 ScMoveMode ScCsvControl::GetVertDirection( sal_uInt16 nCode, bool bHomeEnd ) in GetVertDirection() argument 306 switch( nCode ) in GetVertDirection() 313 if( bHomeEnd ) switch( nCode ) in GetVertDirection()
|
| /trunk/main/vcl/unx/gtk/window/ |
| H A D | gtkframe.cxx | 83 sal_uInt16 nCode = 0; in GetKeyModCode() local 85 nCode |= KEY_SHIFT; in GetKeyModCode() 87 nCode |= KEY_MOD1; in GetKeyModCode() 89 nCode |= KEY_MOD2; in GetKeyModCode() 94 nCode |= KEY_MOD3; in GetKeyModCode() 95 return nCode; in GetKeyModCode() 100 sal_uInt16 nCode = GetKeyModCode( state ); in GetMouseModCode() local 102 nCode |= MOUSE_LEFT; in GetMouseModCode() 104 nCode |= MOUSE_MIDDLE; in GetMouseModCode() 106 nCode |= MOUSE_RIGHT; in GetMouseModCode() [all …]
|
| /trunk/main/svtools/source/filter/igif/ |
| H A D | decode.cxx | 144 sal_uInt16 nCode; in ProcessOneCode() local 163 nCode = sal::static_int_cast< sal_uInt16 >( in ProcessOneCode() 168 if ( nCode < nClearCode ) in ProcessOneCode() 171 AddToTable( nOldCode, nCode ); in ProcessOneCode() 173 else if ( ( nCode > nEOICode ) && ( nCode <= nTableSize ) ) in ProcessOneCode() 175 if ( nCode == nTableSize ) in ProcessOneCode() 178 AddToTable( nOldCode, nCode ); in ProcessOneCode() 182 if ( nCode == nClearCode ) in ProcessOneCode() 195 nOldCode = nCode; in ProcessOneCode() 198 pE = pTable + nCode; in ProcessOneCode()
|
| /trunk/main/framework/source/accelerators/ |
| H A D | keymapping.cxx | 163 sal_Int16 nCode = KeyIdentifierMap[i].Code; in KeyMapping() local 165 m_lIdentifierHash[sIdentifier] = nCode ; in KeyMapping() 166 m_lCodeHash [nCode] = sIdentifier; in KeyMapping() 187 sal_uInt16 nCode = 0; in mapIdentifierToCode() local 188 if (!KeyMapping::impl_st_interpretIdentifierAsPureKeyCode(sIdentifier, nCode)) in mapIdentifierToCode() 194 return (sal_uInt16)nCode; in mapIdentifierToCode() 198 ::rtl::OUString KeyMapping::mapCodeToIdentifier(sal_uInt16 nCode) in mapCodeToIdentifier() argument 200 Code2IdentifierHash::const_iterator pIt = m_lCodeHash.find(nCode); in mapCodeToIdentifier() 205 return ::rtl::OUString::valueOf((sal_Int32)nCode); in mapCodeToIdentifier() 212 sal_Int32 nCode = sIdentifier.toInt32(); in impl_st_interpretIdentifierAsPureKeyCode() local [all …]
|
| /trunk/main/sw/source/filter/ww1/ |
| H A D | w1sprm.cxx | 206 sal_uInt16 nCode; in STOP1() local 213 case 1: nCode = DEF_LINE_WIDTH_0; break; in STOP1() 214 case 2: nCode = DEF_LINE_WIDTH_1; break; in STOP1() 215 case 3: nCode = DEF_LINE_WIDTH_2; break; in STOP1() 216 case 4: nCode = DEF_LINE_WIDTH_3; break; in STOP1() 217 case 5: nCode = DEF_LINE_WIDTH_4; break; in STOP1() 219 pLine->SetOutWidth(nCode); in STOP1() 227 case 1: nCode = DEF_DOUBLE_LINE0_IN; break; in STOP1() 229 pLine->SetOutWidth(nCode); in STOP1() 233 case 1: nCode = DEF_DOUBLE_LINE0_OUT; break; in STOP1() [all …]
|
| /trunk/main/vcl/source/window/ |
| H A D | winproc.cxx | 126 sal_uInt16 nCode, sal_uInt16 nSVEvent, in ImplHandleMouseFloatMode() argument 157 if ( nCode & MOUSE_LEFT ) in ImplHandleMouseFloatMode() 344 sal_uInt16 nCode, sal_uInt16 nMode ) in ImplHandleMouseEvent() argument 375 … ImplHandleMouseEvent( pWindow, EVENT_MOUSEMOVE, sal_False, nX, nY, nMsgTime, nCode, nMode ); in ImplHandleMouseEvent() 384 pWinFrameData->mnMouseCode = nCode; in ImplHandleMouseEvent() 458 ImplHandleMouseFloatMode( pChild, aMousePos, nCode, nSVEvent, bMouseLeave ); in ImplHandleMouseEvent() 468 MouseEvent aMEvt( aChildPos, pWinFrameData->mnClickCount, nMode, nCode, nCode ); in ImplHandleMouseEvent() 537 if ( (nCode & (MOUSE_LEFT | MOUSE_RIGHT | MOUSE_MIDDLE)) == in ImplHandleMouseEvent() 574 nCode & (KEY_SHIFT | KEY_MOD1 | KEY_MOD2 | KEY_MOD3), in ImplHandleMouseEvent() 576 nCode & (KEY_SHIFT | KEY_MOD1 | KEY_MOD2), in ImplHandleMouseEvent() [all …]
|
| H A D | split.cxx | 368 sal_uInt16 nCode = aKeyCode.GetCode(); in ImplKbdTracking() local 369 if ( nCode == KEY_ESCAPE || nCode == KEY_RETURN ) in ImplKbdTracking() 376 if ( nCode != KEY_ESCAPE ) in ImplKbdTracking() 431 switch( nCode ) in ImplKbdTracking() 657 sal_uInt16 nCode = aKeyCode.GetCode(); in KeyInput() local 658 switch ( nCode ) in KeyInput()
|
| /trunk/main/framework/qa/complex/accelerators/ |
| H A D | KeyMapping.java | 31 protected Short nCode; field in KeyIdentifierInfo 36 nCode = nC; in KeyIdentifierInfo() 42 public void put(String sIdentifier, Short nCode) in put() argument 44 super.put(sIdentifier, nCode); in put() 54 public void put(Short nCode, String sIdentifier) in put() argument 56 super.put(nCode, sIdentifier); in put() 58 public String get(Short nCode) in get() argument 60 return (String)super.get(nCode); in get() 150 aIdentifierHashMap.put(aInfoMap[i].sIdentifier, aInfoMap[i].nCode); in KeyMapping() 151 aCodeHashMap.put(aInfoMap[i].nCode, aInfoMap[i].sIdentifier); in KeyMapping() [all …]
|
| /trunk/main/svx/workben/ |
| H A D | edittest.cxx | 1534 USHORT nCode = rKEvt.GetKeyCode().GetCode(); in KeyInput() local 1536 if ( ( nCode == KEY_A) && rKEvt.GetKeyCode().IsMod1() ) in KeyInput() 1538 else if ( ( nCode == KEY_R ) && rKEvt.GetKeyCode().IsMod2() ) in KeyInput() 1540 else if ( ( nCode == KEY_L ) && rKEvt.GetKeyCode().IsMod2() ) in KeyInput() 1547 else if ( ( nCode == KEY_Z ) && rKEvt.GetKeyCode().IsMod2() ) in KeyInput() 1551 else if ( ( nCode == KEY_V ) && rKEvt.GetKeyCode().IsMod2() ) in KeyInput() 1556 else if ( ( ( nCode == KEY_ADD ) || ( nCode == KEY_SUBTRACT ) )&& rKEvt.GetKeyCode().IsMod2() ) in KeyInput() 1558 short nDiff = ( nCode == KEY_ADD ) ? (+5) : (-5); in KeyInput() 1577 ( ( nCode == KEY_UP) || ( nCode == KEY_DOWN ) || in KeyInput() 1578 ( nCode == KEY_LEFT ) || ( nCode == KEY_RIGHT ) ) ) in KeyInput() [all …]
|
| /trunk/main/sdext/source/presenter/ |
| H A D | PresenterPaneBorderManager.cxx | 170 sal_Int32 nCode = 0; in ClassifyBorderElementUnderMouse() local 175 nCode = mnOutside; in ClassifyBorderElementUnderMouse() 177 nCode = mnLeft; in ClassifyBorderElementUnderMouse() 180 nCode = mnOutside; in ClassifyBorderElementUnderMouse() 182 nCode = mnRight; in ClassifyBorderElementUnderMouse() 184 nCode = mnHorizontalCenter; in ClassifyBorderElementUnderMouse() 189 nCode |= mnOutside; in ClassifyBorderElementUnderMouse() 191 nCode |= mnTop; in ClassifyBorderElementUnderMouse() 194 nCode |= mnOutside; in ClassifyBorderElementUnderMouse() 196 nCode |= mnBottom; in ClassifyBorderElementUnderMouse() [all …]
|
| /trunk/main/chart2/source/controller/main/ |
| H A D | ChartController_Window.cxx | 1341 sal_uInt16 nCode = aKeyCode.GetCode(); in execute_KeyInput() local 1357 if( nCode == KEY_ESCAPE ) in execute_KeyInput() 1403 if( nCode == KEY_ADD || in execute_KeyInput() 1404 nCode == KEY_SUBTRACT ) in execute_KeyInput() 1407 bDragInside = ( nCode == KEY_SUBTRACT ); in execute_KeyInput() 1410 nCode == KEY_LEFT || in execute_KeyInput() 1411 nCode == KEY_RIGHT || in execute_KeyInput() 1412 nCode == KEY_UP || in execute_KeyInput() 1413 nCode == KEY_DOWN ) in execute_KeyInput() 1426 (nCode == KEY_RIGHT && (aMaximumPosition.X < 0)) || in execute_KeyInput() [all …]
|
| /trunk/main/filter/source/graphicfilter/egif/ |
| H A D | giflzwc.cxx | 52 inline void WriteBits( sal_uInt16 nCode, sal_uInt16 nCodeLen ); 72 inline void GIFImageDataOutputStream::WriteBits( sal_uInt16 nCode, sal_uInt16 nCodeLen ) in WriteBits() argument 77 nBitsBuf |= (sal_uLong) nCode << nBitsBufSize; in WriteBits() 126 …sal_uInt16 nCode; // Der Code fuer den String von Pixelwerten, der sich ergi… member 170 pTable[i].nValue = (sal_uInt8) ( pTable[i].nCode = i ); in StartCompression() 208 pIDOS->WriteBits(pPrefix->nCode,nCodeSize); in Compress() 245 pIDOS->WriteBits(pPrefix->nCode,nCodeSize); in EndCompression()
|
| /trunk/main/vcl/unx/generic/window/ |
| H A D | salobj.cxx | 454 sal_uInt16 nCode = 0; in sal_GetCode() local 457 nCode |= MOUSE_LEFT; in sal_GetCode() 459 nCode |= MOUSE_MIDDLE; in sal_GetCode() 461 nCode |= MOUSE_RIGHT; in sal_GetCode() 464 nCode |= KEY_SHIFT; in sal_GetCode() 466 nCode |= KEY_MOD1; in sal_GetCode() 468 nCode |= KEY_MOD2; in sal_GetCode() 470 nCode |= KEY_MOD3; in sal_GetCode() 472 return nCode; in sal_GetCode()
|
| /trunk/main/unotools/source/config/ |
| H A D | accelcfg.cxx | 229 sal_Int16 nCode=rKeyEvent.KeyCode, nModifier=rKeyEvent.Modifiers; in GetCommand() local 230 if ( !nCode ) in GetCommand() 231 nCode = rKeyEvent.KeyFunc; in GetCommand() 235 if ( p->nCode == nCode && p->nModifier == nModifier ) in GetCommand() 250 if ( p->nCode == rItem.nCode && p->nModifier == rItem.nModifier ) in SetCommand()
|
| /trunk/main/ooxml/source/framework/JavaOOXMLParser/src/org/apache/openoffice/ooxml/parser/ |
| H A D | Parser.java | 61 final int nCode = maReader.next(); in Parse() local 62 switch(nCode) in Parse() 104 Log.Err.printf("can't handle XML event of type %d\n", nCode); in Parse() 153 final int nCode = maReader.next(); in Skip() local 154 switch (nCode) in Skip() 187 Log.Dbg.printf("%s\n", nCode); in Skip()
|
| /trunk/main/sc/source/ui/view/ |
| H A D | olinewin.cxx | 999 sal_uInt16 nCode = rKCode.GetCode(); in KeyInput() local 1000 bool bUpDownKey = (nCode == KEY_UP) || (nCode == KEY_DOWN); in KeyInput() 1001 bool bLeftRightKey = (nCode == KEY_LEFT) || (nCode == KEY_RIGHT); in KeyInput() 1004 if ( (nCode == KEY_TAB) && (bNoMod || bShift) ) in KeyInput() 1011 bool bForward = (nCode == KEY_DOWN) || (nCode == KEY_RIGHT); in KeyInput() 1021 else if ( bCtrl && (nCode >= KEY_1) && (nCode <= KEY_9) ) in KeyInput() 1023 size_t nLevel = static_cast< size_t >( nCode - KEY_1 ); in KeyInput()
|
| /trunk/main/filter/source/graphicfilter/etiff/ |
| H A D | etiff.cxx | 61 …sal_uInt16 nCode; // Der Code fuer den String von Pixelwerten, der sich ergi… member 113 inline void WriteBits( sal_uInt16 nCode, sal_uInt16 nCodeLen ); 496 inline void TIFFWriter::WriteBits( sal_uInt16 nCode, sal_uInt16 nCodeLen ) in WriteBits() argument 498 dwShift |= ( nCode << ( nOffset - nCodeLen ) ); in WriteBits() 506 if ( nCode == 257 && nOffset != 32 ) in WriteBits() 532 pTable[ i ].nValue = (sal_uInt8)( pTable[ i ].nCode = i ); in StartCompression() 564 WriteBits( pPrefix->nCode, nCodeSize ); in Compress() 598 WriteBits( pPrefix->nCode, nCodeSize ); in EndCompression()
|
| /trunk/main/sal/osl/w32/ |
| H A D | diagnose.c | 87 int nCode; in osl_assertFailedLine() 127 nCode = MessageBox(hWndParent, szBoxMessage, "Assertion Failed!", nFlags); in osl_assertFailedLine() 129 if (nCode == IDYES) in osl_assertFailedLine() 132 if (nCode == IDNO) in osl_assertFailedLine() 135 if (nCode == IDCANCEL) in osl_assertFailedLine()
|
| /trunk/main/forms/source/richtext/ |
| H A D | richtextvclcontrol.cxx | 222 sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode(); in PreNotify() local 226 if ( ( KEY_TAB == nCode ) && bCtrl && !bAlt ) in PreNotify() 237 if ( ( ( KEY_F12 == nCode ) in PreNotify() 238 || ( KEY_F11 == nCode ) in PreNotify() 244 bool bLoad = KEY_F11 == nCode; in PreNotify()
|
| /trunk/main/editeng/source/editeng/ |
| H A D | editeng.cxx | 849 sal_uInt16 nCode = rKeyEvent.GetKeyCode().GetCode(); in PostKeyEvent() local 886 switch ( nCode ) in PostKeyEvent() 971 … if ( !rKeyEvent.GetKeyCode().IsMod2() || ( nCode == KEY_LEFT ) || ( nCode == KEY_RIGHT ) ) in PostKeyEvent() 973 …e->DoVisualCursorTraveling( aCurSel.Max().GetNode() ) && ( ( nCode == KEY_LEFT ) || ( nCode == KEY… in PostKeyEvent() 984 if ( nCode == KEY_HOME ) in PostKeyEvent() 986 else if ( nCode == KEY_END ) in PostKeyEvent() 1007 if (pFmt && nCode == KEY_BACKSPACE && in PostKeyEvent() 1035 switch( nCode ) in PostKeyEvent() 1054 nDel = ( nCode == KEY_DELETE ) ? DEL_RIGHT : DEL_LEFT; in PostKeyEvent() 1142 … if ( ( nCode == KEY_W ) && rKeyEvent.GetKeyCode().IsMod1() && rKeyEvent.GetKeyCode().IsMod2() ) in PostKeyEvent() [all …]
|