Lines Matching refs:_pView
155 sal_Bool InsertJoin( const OQueryDesignView* _pView,
158 SqlParseError InstallFields(OQueryDesignView* _pView,
162 SqlParseError GetGroupCriteria( OQueryDesignView* _pView,
166 SqlParseError GetHavingCriteria(OQueryDesignView* _pView,
171 SqlParseError GetOrderCriteria( OQueryDesignView* _pView,
175 SqlParseError AddFunctionCondition(OQueryDesignView* _pView,
195 …::rtl::OUString getTableRange(const OQueryDesignView* _pView,const ::connectivity::OSQLParseNode* … in getTableRange() argument
197 …Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getC… in getTableRange()
208 …void insertConnection(const OQueryDesignView* _pView,const EJoinType& _eJoinType,OTableFieldDescRe… in insertConnection() argument
210 OQueryTableView* pTableView = static_cast<OQueryTableView*>(_pView->getTableView()); in insertConnection()
292 SqlParseError FillOuterJoins(OQueryDesignView* _pView, in FillOuterJoins() argument
311 if ( !InsertJoin(_pView,pJoinNode) ) in FillOuterJoins()
326 SqlParseError FillDragInfo( const OQueryDesignView* _pView, in FillDragInfo() argument
336 …::connectivity::OSQLParseTreeIterator& rParseIter = static_cast<OQueryController&>(_pView->getCont… in FillDragInfo()
341 …OQueryTableWindow* pSTW = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( aTable… in FillDragInfo()
346 …bErg = static_cast<OQueryTableView*>(_pView->getTableView())->FindTableFromField(aColumnName, _rDr… in FillDragInfo()
348 bErg = _pView->HasFieldByAliasName(aColumnName, _rDragInfo); in FillDragInfo()
355 _pView->getController().appendError( sError ); in FillDragInfo()
359 Reference<XDatabaseMetaData> xMeta = _pView->getController().getConnection()->getMetaData(); in FillDragInfo()
361 … _pView->getController().appendError( String( ModuleRes( STR_QRY_CHECK_CASESENSITIVE ) ) ); in FillDragInfo()
604 SqlParseError InsertJoinConnection( const OQueryDesignView* _pView, in InsertJoinConnection() argument
615 eErrorCode = InsertJoinConnection(_pView,pNode->getChild(1), _eJoinType,pLeftTable,pRightTable); in InsertJoinConnection()
623 …else if ( eOk == (eErrorCode = InsertJoinConnection(_pView,pNode->getChild(0), _eJoinType,pLeftTab… in InsertJoinConnection()
624 … eErrorCode = InsertJoinConnection(_pView,pNode->getChild(2), _eJoinType,pLeftTable,pRightTable); in InsertJoinConnection()
635 _pView->getController().appendError( sError ); in InsertJoinConnection()
641 if ( eOk != ( eErrorCode = FillDragInfo(_pView,pNode->getChild(0),aDragLeft)) || in InsertJoinConnection()
642 eOk != ( eErrorCode = FillDragInfo(_pView,pNode->getChild(2),aDragRight))) in InsertJoinConnection()
647 …ow* pLeftWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(… in InsertJoinConnection()
650 insertConnection(_pView,_eJoinType,aDragLeft,aDragRight); in InsertJoinConnection()
652 insertConnection(_pView,_eJoinType,aDragRight,aDragLeft); in InsertJoinConnection()
655 insertConnection(_pView,_eJoinType,aDragLeft,aDragRight); in InsertJoinConnection()
662 sal_Bool GetInnerJoinCriteria( const OQueryDesignView* _pView, in GetInnerJoinCriteria() argument
665 return InsertJoinConnection(_pView,pCondition, INNER_JOIN,NULL,NULL) != eOk; in GetInnerJoinCriteria()
668 ::rtl::OUString GenerateSelectList( const OQueryDesignView* _pView, in GenerateSelectList() argument
672 …Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getC… in GenerateSelectList()
700 OJoinTableView::OTableWindowMap* pTabList = _pView->getTableView()->GetTabWinMap(); in GenerateSelectList()
779 sal_Bool GenerateCriterias( OQueryDesignView* _pView, in GenerateCriterias() argument
797 …Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getC… in GenerateCriterias()
804 …const IParseContext& rContext = static_cast<OQueryController&>(_pView->getController()).getParser(… in GenerateCriterias()
825 ErrorBox(_pView, ModuleRes( ERR_QRY_CRITERIA_ON_ASTERISK)).Execute(); in GenerateCriterias()
860 …::std::auto_ptr< ::connectivity::OSQLParseNode> pParseNode(_pView->getPredicateTreeFromEntry(pEntr… in GenerateCriterias()
891 …::std::auto_ptr< ::connectivity::OSQLParseNode> pParseNode( _pView->getPredicateTreeFromEntry(pEnt… in GenerateCriterias()
954 SqlParseError GenerateOrder( OQueryDesignView* _pView, in GenerateOrder() argument
959 … const OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in GenerateOrder()
991 ErrorBox(_pView, ModuleRes( ERR_QRY_ORDERBY_ON_ASTERISK)).Execute(); in GenerateOrder()
1218 …::rtl::OUString GenerateGroupBy(const OQueryDesignView* _pView,OTableFields& _rFieldList, sal_Bool… in GenerateGroupBy() argument
1220 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in GenerateGroupBy()
1253 …::std::auto_ptr< ::connectivity::OSQLParseNode> pParseNode(_pView->getPredicateTreeFromEntry(pEntr… in GenerateGroupBy()
1290 SqlParseError GetORCriteria(OQueryDesignView* _pView,
1297 SqlParseError GetSelectionCriteria( OQueryDesignView* _pView, in GetSelectionCriteria() argument
1330 GetInnerJoinCriteria(_pView,pNodeTmp); in GetSelectionCriteria()
1336 eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pNodeTmp, rLevel); in GetSelectionCriteria()
1341 SqlParseError GetANDCriteria( OQueryDesignView* _pView,
1348 SqlParseError ComparisonPredicate(OQueryDesignView* _pView,
1355 SqlParseError GetORCriteria(OQueryDesignView* _pView, in GetORCriteria() argument
1369 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pCondition->getChild(1),nLevel,bHaving,bAddOrOnOn… in GetORCriteria()
1379 eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pChild,nLevel,bHaving,bAddOrOnOneLine); in GetORCriteria()
1382 …eErrorCode = GetANDCriteria(_pView,_pSelectionBrw,pChild, nLevel,bHaving, i == 0 ? false : bAddOrO… in GetORCriteria()
1389 eErrorCode = GetANDCriteria( _pView,_pSelectionBrw,pCondition, nLevel, bHaving,bAddOrOnOneLine ); in GetORCriteria()
1416 SqlParseError GetANDCriteria( OQueryDesignView* _pView, in GetANDCriteria() argument
1423 const ::com::sun::star::lang::Locale aLocale = _pView->getLocale(); in GetANDCriteria()
1424 const ::rtl::OUString sDecimal = _pView->getDecimalSeparator(); in GetANDCriteria()
1427 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in GetANDCriteria()
1439 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition->getChild(0), nLevel,bHaving,bMu… in GetANDCriteria()
1441 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition->getChild(2), nLevel,bHaving,bMu… in GetANDCriteria()
1444 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition, nLevel,bHaving,bMustAddOrOnOneL… in GetANDCriteria()
1450 …eErrorCode = GetANDCriteria(_pView,_pSelectionBrw,pCondition->getChild(0), nLevel,bHaving,bAddOrOn… in GetANDCriteria()
1452 …eErrorCode = GetANDCriteria(_pView,_pSelectionBrw,pCondition->getChild(2), nLevel,bHaving,bAddOrOn… in GetANDCriteria()
1456 … eErrorCode = ComparisonPredicate(_pView,_pSelectionBrw,pCondition,nLevel,bHaving,bAddOrOnOneLine); in GetANDCriteria()
1490 if ( eOk == ( eErrorCode = FillDragInfo(_pView,pValueExp,aDragLeft) )) in GetANDCriteria()
1502 AddFunctionCondition( _pView, in GetANDCriteria()
1513 _pView->getController().appendError( sError ); in GetANDCriteria()
1521 AddFunctionCondition( _pView, in GetANDCriteria()
1533 if ( eOk == ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(0),aDragLeft)) ) in GetANDCriteria()
1581 SqlParseError AddFunctionCondition(OQueryDesignView* _pView, in AddFunctionCondition() argument
1589 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in AddFunctionCondition()
1608 _pView->getLocale(), in AddFunctionCondition()
1609 static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()), in AddFunctionCondition()
1637 OJoinTableView::OTableWindowMap* pTabList = _pView->getTableView()->GetTabWinMap(); in AddFunctionCondition()
1651 else if( eOk != ( eErrorCode = FillDragInfo(_pView,pParamNode,aDragLeft)) in AddFunctionCondition()
1682 SqlParseError ComparisonPredicate(OQueryDesignView* _pView, in ComparisonPredicate() argument
1690 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in ComparisonPredicate()
1702 if (eOk != ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(0),aDragLeft)) || in ComparisonPredicate()
1703 eOk != ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(2),aDragRight))) in ComparisonPredicate()
1707 … _pView->getTableView()->GetTabConn(static_cast<OQueryTableWindow*>(aDragLeft->GetTabWindow()), in ComparisonPredicate()
1739 ,_pView->getDecimalSeparator() in ComparisonPredicate()
1740 ,_pView->getLocale() in ComparisonPredicate()
1787 _pView->getLocale(), in ComparisonPredicate()
1788 static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()), in ComparisonPredicate()
1795 if( eOk == ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(nPos),aDragLeft))) in ComparisonPredicate()
1804 AddFunctionCondition( _pView, in ComparisonPredicate()
1830 _pView->getLocale(), in ComparisonPredicate()
1831 static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()), in ComparisonPredicate()
1862 void InsertColumnRef(const OQueryDesignView* _pView, in InsertColumnRef() argument
1872 …::connectivity::OSQLParseTreeIterator& rParseIter = static_cast<OQueryController&>(_pView->getCont… in InsertColumnRef()
1887 …OQueryTableWindow* pTabWin = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable(aTab… in InsertColumnRef()
1906 sal_Bool checkJoinConditions( const OQueryDesignView* _pView, in checkJoinConditions() argument
1921 if (pJoinNode && !InsertJoin(_pView,pJoinNode)) in checkJoinConditions()
1926 sal_Bool InsertJoin(const OQueryDesignView* _pView, in InsertJoin() argument
1933 return InsertJoin(_pView,pNode->getChild(1)); in InsertJoin()
1940 …if ( !checkJoinConditions(_pView,pNode->getChild(0)) || !checkJoinConditions(_pView,pRightTableRef… in InsertJoin()
1974 …if ( InsertJoinConnection(_pView,pNode->getChild(4)->getChild(1), eJoinType,pNode->getChild(0),pRi… in InsertJoin()
1989 …ow* pLeftWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(… in InsertJoin()
1990 …w* pRightWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(… in InsertJoin()
2005 insertConnection(_pView,eJoinType,aDragLeft,aDragRight,bNatural); in InsertJoin()
2012 void insertUnUsedFields(OQueryDesignView* _pView,OSelectionBrowseBox* _pSelectionBrw) in insertUnUsedFields() argument
2015 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in insertUnUsedFields()
2025 SqlParseError InitFromParseNodeImpl(OQueryDesignView* _pView,OSelectionBrowseBox* _pSelectionBrw) in InitFromParseNodeImpl() argument
2029 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in InitFromParseNodeImpl()
2044 insertUnUsedFields(_pView,_pSelectionBrw); in InitFromParseNodeImpl()
2092 OQueryTableView* pTableView = static_cast<OQueryTableView*>(_pView->getTableView()); in InitFromParseNodeImpl()
2148 if ( eOk == (eErrorCode = FillOuterJoins(_pView,pTableExp->getChild(0)->getChild(1))) ) in InitFromParseNodeImpl()
2156 if ( (eErrorCode = InstallFields(_pView,pParseTree, pTableView->GetTabWinMap())) == eOk ) in InitFromParseNodeImpl()
2161 if ( eOk == (eErrorCode = GetSelectionCriteria(_pView,_pSelectionBrw,pParseTree,nLevel)) ) in InitFromParseNodeImpl()
2163 if ( eOk == (eErrorCode = GetGroupCriteria(_pView,_pSelectionBrw,pParseTree)) ) in InitFromParseNodeImpl()
2165 if ( eOk == (eErrorCode = GetHavingCriteria(_pView,_pSelectionBrw,pParseTree,nLevel)) ) in InitFromParseNodeImpl()
2167 if ( eOk == (eErrorCode = GetOrderCriteria(_pView,_pSelectionBrw,pParseTree)) ) in InitFromParseNodeImpl()
2168 insertUnUsedFields(_pView,_pSelectionBrw); in InitFromParseNodeImpl()
2193 SqlParseError fillSelectSubList( OQueryDesignView* _pView, in fillSelectSubList() argument
2207 eErrorCode = _pView->InsertField(aInfo, sal_True, bFirstField); in fillSelectSubList()
2214 SqlParseError InstallFields(OQueryDesignView* _pView, in InstallFields() argument
2229 eErrorCode = fillSelectSubList(_pView,pTabList); in InstallFields()
2234 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in InstallFields()
2246 eErrorCode = fillSelectSubList(_pView,pTabList); in InstallFields()
2264 InsertColumnRef(_pView,pColumnRef,aColumnName,aColumnAlias,aTableRange,aInfo,pTabList); in InstallFields()
2265 eErrorCode = _pView->InsertField(aInfo, sal_True, bFirstField); in InstallFields()
2277 _pView->getLocale(), in InstallFields()
2278 static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()), in InstallFields()
2296 InsertColumnRef(_pView,pParamRef,aColumnName,aColumnAlias,aTableRange,aInfo,pTabList); in InstallFields()
2338 _pView->fillFunctionInfo(pColumnRef,aColumns,aInfo); in InstallFields()
2351 eErrorCode = _pView->InsertField(aInfo, sal_True, bFirstField); in InstallFields()
2380 eErrorCode = _pView->InsertField(aInfo, sal_True, bFirstField); in InstallFields()
2398 SqlParseError GetOrderCriteria( OQueryDesignView* _pView, in GetOrderCriteria() argument
2408 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in GetOrderCriteria()
2423 if( eOk == FillDragInfo(_pView,pArgument,aDragLeft)) in GetOrderCriteria()
2444 eOk == FillDragInfo(_pView,pParamRef,aDragLeft)) in GetOrderCriteria()
2456 _pView->getLocale(), in GetOrderCriteria()
2457 static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()), in GetOrderCriteria()
2459 _pView->fillFunctionInfo(pArgument,sCondition,aDragLeft); in GetOrderCriteria()
2475 SqlParseError GetHavingCriteria( OQueryDesignView* _pView, in GetHavingCriteria() argument
2482 …eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSelectRoot->getChild(3)->getChild(3)->getChild(1… in GetHavingCriteria()
2486 SqlParseError GetGroupCriteria( OQueryDesignView* _pView, in GetGroupCriteria() argument
2493 OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); in GetGroupCriteria()
2503 if ( eOk == (eErrorCode = FillDragInfo(_pView,pArgument,aDragInfo)) ) in GetGroupCriteria()
2511 eOk == FillDragInfo(_pView,pParamRef,aDragInfo)) in GetGroupCriteria()
2527 _pView->fillFunctionInfo(pArgument,sGroupByExpression,aDragInfo); in GetGroupCriteria()