Lines Matching refs:pWin
72 static awt::Rectangle lcl_GetBounds( Window *pWin ) in lcl_GetBounds() argument
80 if (pWin) in lcl_GetBounds()
82 Rectangle aRect = pWin->GetWindowExtentsRelative( NULL ); in lcl_GetBounds()
87 Window* pParent = pWin->GetAccessibleParentWindow(); in lcl_GetBounds()
99 static awt::Point lcl_GetLocationOnScreen( Window *pWin ) in lcl_GetLocationOnScreen() argument
104 if (pWin) in lcl_GetLocationOnScreen()
106 Rectangle aRect = pWin->GetWindowExtentsRelative( NULL ); in lcl_GetLocationOnScreen()
118 pWin (pGraphicWin) in SmGraphicAccessible()
120 DBG_ASSERT( pWin, "SmGraphicAccessible: window missing" ); in SmGraphicAccessible()
131 pWin = rSmAcc.pWin; in SmGraphicAccessible()
132 DBG_ASSERT( pWin, "SmGraphicAccessible: window missing" ); in SmGraphicAccessible()
150 SmViewShell *pView = pWin ? pWin->GetView() : 0; in GetDoc_Impl()
165 pWin = 0; // implicitly results in AccessibleStateType::DEFUNC set in ClearWin()
204 if (!pWin) in containsPoint()
207 Size aSz( pWin->GetSizePixel() ); in containsPoint()
227 if (!pWin) in getBounds()
229 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getBounds()
231 return lcl_GetBounds( pWin ); in getBounds()
238 if (!pWin) in getLocation()
240 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getLocation()
242 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); in getLocation()
250 if (!pWin) in getLocationOnScreen()
252 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getLocationOnScreen()
254 return lcl_GetLocationOnScreen( pWin ); in getLocationOnScreen()
261 if (!pWin) in getSize()
263 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getSize()
266 Size aSz( pWin->GetSizePixel() ); in getSize()
268 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); in getSize()
279 if (!pWin) in grabFocus()
282 pWin->GrabFocus(); in grabFocus()
290 if (!pWin) in getForeground()
292 return (sal_Int32) pWin->GetTextColor().GetColor(); in getForeground()
300 if (!pWin) in getBackground()
302 Wallpaper aWall( pWin->GetDisplayBackground() ); in getBackground()
305 nCol = pWin->GetSettings().GetStyleSettings().GetWindowColor().GetColor(); in getBackground()
331 if (!pWin) in getAccessibleParent()
334 Window *pAccParent = pWin->GetAccessibleParentWindow(); in getAccessibleParent()
344 Window *pAccParent = pWin ? pWin->GetAccessibleParentWindow() : 0; in getAccessibleIndexInParent()
349 if (pAccParent->GetAccessibleChildWindow( i ) == pWin) in getAccessibleIndexInParent()
394 if (!pWin) in getAccessibleStateSet()
403 if (pWin->HasFocus()) in getAccessibleStateSet()
405 if (pWin->IsActive()) in getAccessibleStateSet()
407 if (pWin->IsVisible()) in getAccessibleStateSet()
409 if (pWin->IsReallyVisible()) in getAccessibleStateSet()
411 if (COL_TRANSPARENT != pWin->GetBackground().GetColor().GetColor()) in getAccessibleStateSet()
435 if (pWin) in addEventListener()
512 if (!pWin) in getCharacterBounds()
517 SmViewShell *pView = pWin->GetView(); in getCharacterBounds()
547 Point aTLPos (pWin->GetFormulaDrawPos() + aOffset); in getCharacterBounds()
554 pWin->SetFont( pNode->GetFont() ); in getCharacterBounds()
555 pWin->GetTextArray( aNodeText, pXAry, 0, aNodeText.Len() ); in getCharacterBounds()
561 Point aLP00( pWin->LogicToPixel( Point(0,0)) ); in getCharacterBounds()
562 Point aPL00( pWin->PixelToLogic( Point(0,0)) ); in getCharacterBounds()
564 aTLPos = pWin->LogicToPixel( aTLPos ); in getCharacterBounds()
565 aSize = pWin->LogicToPixel( aSize ); in getCharacterBounds()
594 if (pWin) in getIndexAtPoint()
596 const SmNode *pTree = pWin->GetView()->GetDoc()->GetFormulaTree(); in getIndexAtPoint()
604 aPos = pWin->PixelToLogic( aPos ); in getIndexAtPoint()
605 aPos -= pWin->GetFormulaDrawPos(); in getIndexAtPoint()
622 Point aLP00( pWin->LogicToPixel( Point(0,0)) ); in getIndexAtPoint()
623 Point aPL00( pWin->PixelToLogic( Point(0,0)) ); in getIndexAtPoint()
637 pWin->SetFont( pNode->GetFont() ); in getIndexAtPoint()
638 pWin->GetTextArray( aTxt, pXAry, 0, aTxt.Len() ); in getIndexAtPoint()
790 if (!pWin) in copyText()
794 Reference< datatransfer::clipboard::XClipboard > xClipboard = pWin->GetClipboard(); in copyText()
1705 pWin (pEditWin) in SmEditAccessible()
1707 DBG_ASSERT( pWin, "SmEditAccessible: window missing" ); in SmEditAccessible()
1717 pWin = rSmAcc.pWin; in SmEditAccessible()
1718 DBG_ASSERT( pWin, "SmEditAccessible: window missing" ); in SmEditAccessible()
1735 DBG_ASSERT( pWin, "SmEditAccessible: window missing" ); in Init()
1736 if (pWin) in Init()
1738 EditEngine *pEditEngine = pWin->GetEditEngine(); in Init()
1739 EditView *pEditView = pWin->GetEditView(); in Init()
1743 new SmEditSource( pWin, *this ) ); in Init()
1753 SmViewShell *pView = pWin ? pWin->GetView() : 0; in GetDoc_Impl()
1766 pWin = 0; // implicitly results in AccessibleStateType::DEFUNC set in ClearWin()
1792 if (!pWin) in containsPoint()
1795 Size aSz( pWin->GetSizePixel() ); in containsPoint()
1813 if (!pWin) in getBounds()
1815 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getBounds()
1817 return lcl_GetBounds( pWin ); in getBounds()
1824 if (!pWin) in getLocation()
1826 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getLocation()
1828 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); in getLocation()
1836 if (!pWin) in getLocationOnScreen()
1838 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getLocationOnScreen()
1840 return lcl_GetLocationOnScreen( pWin ); in getLocationOnScreen()
1847 if (!pWin) in getSize()
1849 DBG_ASSERT(pWin->GetParent()->GetAccessible() == getAccessibleParent(), in getSize()
1852 Size aSz( pWin->GetSizePixel() ); in getSize()
1854 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); in getSize()
1865 if (!pWin) in grabFocus()
1868 pWin->GrabFocus(); in grabFocus()
1876 if (!pWin) in getForeground()
1878 return (sal_Int32) pWin->GetTextColor().GetColor(); in getForeground()
1886 if (!pWin) in getBackground()
1888 Wallpaper aWall( pWin->GetDisplayBackground() ); in getBackground()
1891 nCol = pWin->GetSettings().GetStyleSettings().GetWindowColor().GetColor(); in getBackground()
1920 if (!pWin) in getAccessibleParent()
1923 Window *pAccParent = pWin->GetAccessibleParentWindow(); in getAccessibleParent()
1933 Window *pAccParent = pWin ? pWin->GetAccessibleParentWindow() : 0; in getAccessibleIndexInParent()
1938 if (pAccParent->GetAccessibleChildWindow( i ) == pWin) in getAccessibleIndexInParent()
1983 if (!pWin || !pTextHelper) in getAccessibleStateSet()
1993 if (pWin->HasFocus()) in getAccessibleStateSet()
1995 if (pWin->IsActive()) in getAccessibleStateSet()
1997 if (pWin->IsVisible()) in getAccessibleStateSet()
1999 if (pWin->IsReallyVisible()) in getAccessibleStateSet()
2001 if (COL_TRANSPARENT != pWin->GetBackground().GetColor().GetColor()) in getAccessibleStateSet()