Lines Matching refs:pGrid

1325 	FmGridControl* pGrid = (FmGridControl*) GetWindow();  in queryFieldDataType()  local
1326 sal_Int32 nColumns = pGrid->GetViewColCount(); in queryFieldDataType()
1328 DbGridColumns aColumns = pGrid->GetColumns(); in queryFieldDataType()
1348 sal_uInt16 nModelPos = pGrid->GetModelColumnPos(pGrid->GetColumnIdFromViewPos((sal_uInt16)i)); in queryFieldDataType()
1352 const DbGridRowRef xRow = pGrid->GetSeekRow(); in queryFieldDataType()
1379 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in queryFieldData() local
1380 DBG_ASSERT(pGrid && pGrid->IsOpen(), "FmXGridPeer::queryFieldData : have no valid grid window !"); in queryFieldData()
1381 if (!pGrid || !pGrid->IsOpen()) in queryFieldData()
1385 if (!pGrid->SeekRow(nRow)) in queryFieldData()
1392 DbGridRowRef xPaintRow = pGrid->GetPaintRow(); in queryFieldData()
1396 DbGridColumns aColumns = pGrid->GetColumns(); in queryFieldData()
1399 sal_Int32 nColumnCount = pGrid->GetViewColCount(); in queryFieldData()
1409 sal_uInt16 nModelPos = pGrid->GetModelColumnPos(pGrid->GetColumnIdFromViewPos((sal_uInt16)i)); in queryFieldData()
1434 …String sText = aColumns.GetObject(nModelPos)->GetCellText( xPaintRow, pGrid->getNumberFormatter() … in queryFieldData()
1473 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in propertyChange() local
1474 if (!pGrid) in propertyChange()
1480 pGrid->propertyChange(evt); in propertyChange()
1481 else if (pGrid && m_xColumns.is() && m_xColumns->hasElements()) in propertyChange()
1498 sal_uInt16 nId = pGrid->GetColumnIdFromModelPos((sal_uInt16)i); in propertyChange()
1504 if (aName != pGrid->GetColumnTitle(nId)) in propertyChange()
1505 pGrid->SetColumnTitle(nId, aName); in propertyChange()
1511 nWidth = pGrid->GetDefaultColumnWidth(pGrid->GetColumnTitle(nId)); in propertyChange()
1518 nWidth = pGrid->LogicToPixel(Point(nTest,0),MAP_10TH_MM).X(); in propertyChange()
1520 nWidth = pGrid->CalcZoom(nWidth); in propertyChange()
1523 if (nWidth != (sal_Int32(pGrid->GetColumnWidth(nId)))) in propertyChange()
1525 if (pGrid->IsEditing()) in propertyChange()
1527 pGrid->DeactivateCell(); in propertyChange()
1528 pGrid->ActivateCell(); in propertyChange()
1530 pGrid->SetColumnWidth(nId, nWidth); in propertyChange()
1538 pGrid->HideColumn(nId); in propertyChange()
1540 pGrid->ShowColumn(nId); in propertyChange()
1547 DbGridColumn* pCol = pGrid->GetColumns().GetObject(i); in propertyChange()
1562 sal_Bool bWasEditing = pGrid->IsEditing(); in propertyChange()
1564 pGrid->DeactivateCell(); in propertyChange()
1566 ::Rectangle aColRect = pGrid->GetFieldRect(nId); in propertyChange()
1568 aColRect.Bottom() = pGrid->GetSizePixel().Height(); in propertyChange()
1569 pGrid->Invalidate(aColRect); in propertyChange()
1572 pGrid->ActivateCell(); in propertyChange()
1593 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in commit() local
1594 if (!m_xCursor.is() || !pGrid) in commit()
1605 bCancel = !pGrid->commit(); in commit()
1616 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in cursorMoved() local
1619 …if (pGrid && pGrid->IsOpen() && !::comphelper::getBOOL(Reference< XPropertySet > (_rEvent.Source, … in cursorMoved()
1620 pGrid->positioned(_rEvent); in cursorMoved()
1626 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in rowChanged() local
1627 if (pGrid && pGrid->IsOpen()) in rowChanged()
1629 if (m_xCursor->rowUpdated() && !pGrid->IsCurrentAppending()) in rowChanged()
1630 pGrid->RowModified(pGrid->GetCurrentPos()); in rowChanged()
1632 pGrid->inserted(_rEvent); in rowChanged()
1729 FmGridControl* pGrid = static_cast< FmGridControl* >( GetWindow() ); in setColumns() local
1769 if (pGrid) in setColumns()
1771 pGrid->InitColumnsByModels(m_xColumns); in setColumns()
1812 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in elementInserted() local
1814 …if (!pGrid || !m_xColumns.is() || pGrid->IsInColumnMove() || m_xColumns->getCount() == ((sal_Int32… in elementInserted()
1826 nWidth = pGrid->LogicToPixel(Point(nWidth,0),MAP_10TH_MM).X(); in elementInserted()
1828 pGrid->AppendColumn(aName, (sal_uInt16)nWidth, (sal_Int16)::comphelper::getINT32(evt.Accessor)); in elementInserted()
1831 DbGridColumn* pCol = pGrid->GetColumns().GetObject(::comphelper::getINT32(evt.Accessor)); in elementInserted()
1836 pGrid->HideColumn(pCol->GetId()); in elementInserted()
1846 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in elementReplaced() local
1849 if (!pGrid || !m_xColumns.is() || pGrid->IsInColumnMove()) in elementReplaced()
1857 sal_Bool bWasEditing = pGrid->IsEditing(); in elementReplaced()
1859 pGrid->DeactivateCell(); in elementReplaced()
1861pGrid->RemoveColumn(pGrid->GetColumnIdFromModelPos((sal_uInt16)::comphelper::getINT32(evt.Accessor… in elementReplaced()
1870 nWidth = pGrid->LogicToPixel(Point(nWidth,0),MAP_10TH_MM).X(); in elementReplaced()
1871 …sal_uInt16 nNewId = pGrid->AppendColumn(aName, (sal_uInt16)nWidth, (sal_Int16)::comphelper::getINT… in elementReplaced()
1872 sal_uInt16 nNewPos = pGrid->GetModelColumnPos(nNewId); in elementReplaced()
1875 DbGridColumn* pCol = pGrid->GetColumns().GetObject(nNewPos); in elementReplaced()
1879 CursorWrapper* pGridDataSource = pGrid->getDataSource(); in elementReplaced()
1888 pGrid->InitColumnByField( pCol, xNewColumn, xColumnsByName, xColumnsByIndex ); in elementReplaced()
1894 pGrid->ActivateCell(); in elementReplaced()
1902 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in elementRemoved() local
1905 …if (!pGrid || !m_xColumns.is() || pGrid->IsInColumnMove() || m_xColumns->getCount() == ((sal_Int32… in elementRemoved()
1908pGrid->RemoveColumn(pGrid->GetColumnIdFromModelPos((sal_uInt16)::comphelper::getINT32(evt.Accessor… in elementRemoved()
1920 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in setProperty() local
1929 pGrid->SetTextLineColor(); in setProperty()
1930 pGrid->GetDataWindow().SetTextLineColor(); in setProperty()
1934 pGrid->SetTextLineColor(aTextLineColor); in setProperty()
1935 pGrid->GetDataWindow().SetTextLineColor(aTextLineColor); in setProperty()
1939 DbGridColumns& rColumns = const_cast<DbGridColumns&>(pGrid->GetColumns()); in setProperty()
1956 pGrid->Invalidate(); in setProperty()
1960 Font aGridFont = pGrid->GetControlFont(); in setProperty()
1963 pGrid->SetControlFont( aGridFont ); in setProperty()
1967 Font aGridFont = pGrid->GetControlFont(); in setProperty()
1970 pGrid->SetControlFont( aGridFont ); in setProperty()
1979 pGrid->SetHelpId( rtl::OUStringToOString( sHelpURL, RTL_TEXTENCODING_UTF8 ) ); in setProperty()
1983 pGrid->setDisplaySynchron(::comphelper::getBOOL(Value)); in setProperty()
1988 pGrid->SetCursorColor(COL_TRANSPARENT); in setProperty()
1990 pGrid->SetCursorColor( ::Color(::comphelper::getINT32(Value))); in setProperty()
1992 pGrid->Invalidate(); in setProperty()
1996 pGrid->EnablePermanentCursor(::comphelper::getBOOL(Value)); in setProperty()
1998 pGrid->Invalidate(); in setProperty()
2003 pGrid->SetControlFont( Font() ); in setProperty()
2014 Font aOldVclFont = pGrid->GetControlFont(); in setProperty()
2019 pGrid->SetControlFont( aNewVclFont ); in setProperty()
2028 pGrid->SetDataRowHeight(0); in setProperty()
2038 pGrid->SetControlBackground(); in setProperty()
2043 pGrid->SetBackground( aColor ); in setProperty()
2044 pGrid->SetControlBackground( aColor ); in setProperty()
2051 pGrid->SetControlForeground(); in setProperty()
2056 pGrid->SetTextColor( aColor ); in setProperty()
2057 pGrid->SetControlForeground( aColor ); in setProperty()
2065 sal_Int32 nHeight = pGrid->LogicToPixel(Point(0,nLogHeight),MAP_10TH_MM).Y(); in setProperty()
2067 nHeight = pGrid->CalcZoom(nHeight); in setProperty()
2068 pGrid->SetDataRowHeight(nHeight); in setProperty()
2071 pGrid->SetDataRowHeight(0); in setProperty()
2077 pGrid->EnableNavigationBar( bValue ); in setProperty()
2083 pGrid->EnableHandle( bValue ); in setProperty()
2089 pGrid->EnableHandle( bValue ); in setProperty()
2094 pGrid->GetDataWindow().Enable( bValue ); in setProperty()
2096 pGrid->Enable( bValue ); in setProperty()
2108 Window* pGrid = GetWindow(); in CreateAccessibleContext() local
2109 if ( pGrid ) in CreateAccessibleContext()
2111 Reference< XAccessible > xAcc( pGrid->GetAccessible( sal_True ) ); in CreateAccessibleContext()
2137 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in getProperty() local
2138 Window* pDataWindow = &pGrid->GetDataWindow(); in getProperty()
2155 sal_Int32 nPixelHeight = pGrid->GetDataRowHeight(); in getProperty()
2157 nPixelHeight = pGrid->CalcReverseZoom(nPixelHeight); in getProperty()
2158 aProp <<= (sal_Int32)pGrid->PixelToLogic(Point(0,nPixelHeight),MAP_10TH_MM).Y(); in getProperty()
2162 sal_Bool bHasNavBar = pGrid->HasNavigationBar(); in getProperty()
2167 sal_Bool bHasHandle = pGrid->HasHandle(); in getProperty()
2274 FmGridControl* pGrid = (FmGridControl*)GetWindow(); in updateGrid() local
2275 if (pGrid) in updateGrid()
2276 pGrid->setDataSource(_rxCursor); in updateGrid()
2288 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in setRowSet() local
2289 if (!pGrid || !m_xColumns.is() || !m_xColumns->getCount()) in setRowSet()
2305 if (pGrid) in setRowSet()
2310 pGrid->setDataSource(m_xCursor); in setRowSet()
2312 pGrid->setDataSource(Reference< XRowSet > ()); in setRowSet()
2337 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in getCurrentColumnPosition() local
2338 return pGrid ? pGrid->GetViewColumnPos(pGrid->GetCurColumnId()) : -1; in getCurrentColumnPosition()
2344 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in setCurrentColumnPosition() local
2345 if (pGrid) in setCurrentColumnPosition()
2346 pGrid->GoToColumnId(pGrid->GetColumnIdFromViewPos(nPos)); in setCurrentColumnPosition()
2354 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in selectionChanged() local
2355 if (pGrid) in selectionChanged()
2373 pGrid->markColumn(pGrid->GetColumnIdFromModelPos((sal_uInt16)i)); in selectionChanged()
2379 if ( i != pGrid->GetSelectedColumn() ) in selectionChanged()
2383pGrid->SelectColumnPos(pGrid->GetViewColumnPos(pGrid->GetColumnIdFromModelPos( (sal_uInt16)i )) + … in selectionChanged()
2385 if (pGrid->IsEditing()) in selectionChanged()
2386 pGrid->DeactivateCell(); in selectionChanged()
2389 pGrid->SetNoSelection(); in selectionChanged()
2393 pGrid->markColumn(USHRT_MAX); in selectionChanged()
2421 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in getCount() local
2422 if (pGrid) in getCount()
2423 return pGrid->GetViewColCount(); in getCount()
2431 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in getByIndex() local
2433 _nIndex >= getCount() || !pGrid) in getByIndex()
2438 sal_uInt16 nId = pGrid->GetColumnIdFromViewPos((sal_uInt16)_nIndex); in getByIndex()
2440 sal_uInt16 nPos = pGrid->GetModelColumnPos(nId); in getByIndex()
2442 DbGridColumn* pCol = pGrid->GetColumns().GetObject(nPos); in getByIndex()
2462 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in setMode() local
2464 pGrid->SetFilterMode(sal_True); in setMode()
2467 pGrid->SetFilterMode(sal_False); in setMode()
2468 pGrid->setDataSource(m_xCursor); in setMode()
2508 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in columnVisible() local
2510 sal_Int32 _nIndex = pGrid->GetModelColumnPos(pColumn->GetId()); in columnVisible()
2523 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in columnHidden() local
2525 sal_Int32 _nIndex = pGrid->GetModelColumnPos(pColumn->GetId()); in columnHidden()
2538 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in draw() local
2539 sal_Int32 nOldFlags = pGrid->GetBrowserFlags(); in draw()
2540 pGrid->SetBrowserFlags(nOldFlags | EBBF_NOROWPICTURE); in draw()
2544 pGrid->SetBrowserFlags(nOldFlags); in draw()
2678 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in statusChanged() local
2680 pGrid->GetNavigationBar().InvalidateState(*pSlots); in statusChanged()
2736 FmGridControl* pGrid = (FmGridControl*)GetWindow(); in resetted() local
2737 if (!pGrid) in resetted()
2740 pGrid->resetCurrentRow(); in resetted()
2746 FmGridControl* pGrid = (FmGridControl*) GetWindow(); in resetted() local
2747 if (pGrid && pGrid->IsOpen()) in resetted()
2748 pGrid->positioned(rEvent); in resetted()