Lines Matching refs:rData

496 static void ImplWindowStateFromStr( WindowStateData& rData, const ByteString& rStr )  in ImplWindowStateFromStr()  argument
505 rData.SetX( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
506 if( rData.GetX() > -16384 && rData.GetX() < 16384 ) in ImplWindowStateFromStr()
509 rData.SetX( 0 ); in ImplWindowStateFromStr()
512 rData.SetX( 0 ); in ImplWindowStateFromStr()
516 rData.SetY( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
517 if( rData.GetY() > -16384 && rData.GetY() < 16384 ) in ImplWindowStateFromStr()
520 rData.SetY( 0 ); in ImplWindowStateFromStr()
523 rData.SetY( 0 ); in ImplWindowStateFromStr()
527 rData.SetWidth( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
528 if( rData.GetWidth() > 0 && rData.GetWidth() < 16384 ) in ImplWindowStateFromStr()
531 rData.SetWidth( 0 ); in ImplWindowStateFromStr()
534 rData.SetWidth( 0 ); in ImplWindowStateFromStr()
538 rData.SetHeight( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
539 if( rData.GetHeight() > 0 && rData.GetHeight() < 16384 ) in ImplWindowStateFromStr()
542 rData.SetHeight( 0 ); in ImplWindowStateFromStr()
545 rData.SetHeight( 0 ); in ImplWindowStateFromStr()
553 rData.SetState( nState ); in ImplWindowStateFromStr()
557 rData.SetState( 0 ); in ImplWindowStateFromStr()
563 rData.SetMaximizedX( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
564 if( rData.GetMaximizedX() > -16384 && rData.GetMaximizedX() < 16384 ) in ImplWindowStateFromStr()
567 rData.SetMaximizedX( 0 ); in ImplWindowStateFromStr()
570 rData.SetMaximizedX( 0 ); in ImplWindowStateFromStr()
574 rData.SetMaximizedY( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
575 if( rData.GetMaximizedY() > -16384 && rData.GetMaximizedY() < 16384 ) in ImplWindowStateFromStr()
578 rData.SetMaximizedY( 0 ); in ImplWindowStateFromStr()
581 rData.SetMaximizedY( 0 ); in ImplWindowStateFromStr()
585 rData.SetMaximizedWidth( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
586 if( rData.GetMaximizedWidth() > 0 && rData.GetMaximizedWidth() < 16384 ) in ImplWindowStateFromStr()
589 rData.SetMaximizedWidth( 0 ); in ImplWindowStateFromStr()
592 rData.SetMaximizedWidth( 0 ); in ImplWindowStateFromStr()
596 rData.SetMaximizedHeight( aTokenStr.ToInt32() ); in ImplWindowStateFromStr()
597 if( rData.GetMaximizedHeight() > 0 && rData.GetMaximizedHeight() < 16384 ) in ImplWindowStateFromStr()
600 rData.SetMaximizedHeight( 0 ); in ImplWindowStateFromStr()
603 rData.SetMaximizedHeight( 0 ); in ImplWindowStateFromStr()
606 rData.SetMask( nValidMask ); in ImplWindowStateFromStr()
611 static void ImplWindowStateToStr( const WindowStateData& rData, ByteString& rStr ) in ImplWindowStateToStr() argument
613 sal_uLong nValidMask = rData.GetMask(); in ImplWindowStateToStr()
618 rStr.Append( ByteString::CreateFromInt32( rData.GetX() ) ); in ImplWindowStateToStr()
621 rStr.Append( ByteString::CreateFromInt32( rData.GetY() ) ); in ImplWindowStateToStr()
624 rStr.Append( ByteString::CreateFromInt32( rData.GetWidth() ) ); in ImplWindowStateToStr()
627 rStr.Append( ByteString::CreateFromInt32( rData.GetHeight() ) ); in ImplWindowStateToStr()
633 sal_uLong nState = rData.GetState(); in ImplWindowStateToStr()
639 rStr.Append( ByteString::CreateFromInt32( rData.GetMaximizedX() ) ); in ImplWindowStateToStr()
642 rStr.Append( ByteString::CreateFromInt32( rData.GetMaximizedY() ) ); in ImplWindowStateToStr()
645 rStr.Append( ByteString::CreateFromInt32( rData.GetMaximizedWidth() ) ); in ImplWindowStateToStr()
648 rStr.Append( ByteString::CreateFromInt32( rData.GetMaximizedHeight() ) ); in ImplWindowStateToStr()
711 void SystemWindow::SetWindowStateData( const WindowStateData& rData ) in SetWindowStateData() argument
713 sal_uLong nValidMask = rData.GetMask(); in SetWindowStateData()
726 sal_uLong nState = rData.GetState(); in SetWindowStateData()
728 aState.mnMask = rData.GetMask(); in SetWindowStateData()
729 aState.mnX = rData.GetX(); in SetWindowStateData()
730 aState.mnY = rData.GetY(); in SetWindowStateData()
731 aState.mnWidth = rData.GetWidth(); in SetWindowStateData()
732 aState.mnHeight = rData.GetHeight(); in SetWindowStateData()
734 if( rData.GetMask() & (WINDOWSTATE_MASK_WIDTH|WINDOWSTATE_MASK_HEIGHT) ) in SetWindowStateData()
744 aState.mnMaximizedX = rData.GetMaximizedX(); in SetWindowStateData()
745 aState.mnMaximizedY = rData.GetMaximizedY(); in SetWindowStateData()
746 aState.mnMaximizedWidth = rData.GetMaximizedWidth(); in SetWindowStateData()
747 aState.mnMaximizedHeight = rData.GetMaximizedHeight(); in SetWindowStateData()
759 … if( !((rData.GetMask() & WINDOWSTATE_MASK_STATE) && (nState & WINDOWSTATE_STATE_MAXIMIZED)) ) in SetWindowStateData()
760 … if( rData.GetMask() & (WINDOWSTATE_MASK_POS|WINDOWSTATE_MASK_WIDTH|WINDOWSTATE_MASK_HEIGHT) ) in SetWindowStateData()
806 if( (rData.GetMask() & WINDOWSTATE_MASK_STATE) && (nState & WINDOWSTATE_STATE_MAXIMIZED) ) in SetWindowStateData()
814 if( aGeometry.nWidth != rData.GetWidth() || aGeometry.nHeight != rData.GetHeight() ) in SetWindowStateData()
818 if( rData.GetMask() & (WINDOWSTATE_MASK_WIDTH|WINDOWSTATE_MASK_HEIGHT) ) in SetWindowStateData()
836 long nX = rData.GetX(); in SetWindowStateData()
837 long nY = rData.GetY(); in SetWindowStateData()
838 long nWidth = rData.GetWidth(); in SetWindowStateData()
839 long nHeight = rData.GetHeight(); in SetWindowStateData()
855 sal_uLong nState = rData.GetState(); in SetWindowStateData()
866 void SystemWindow::GetWindowStateData( WindowStateData& rData ) const in GetWindowStateData()
868 sal_uLong nValidMask = rData.GetMask(); in GetWindowStateData()
886 rData.SetX( aState.mnX ); in GetWindowStateData()
888 rData.SetY( aState.mnY ); in GetWindowStateData()
890 rData.SetWidth( aState.mnWidth ); in GetWindowStateData()
892 rData.SetHeight( aState.mnHeight ); in GetWindowStateData()
895 rData.SetMaximizedX( aState.mnMaximizedX ); in GetWindowStateData()
900 rData.SetMaximizedY( aState.mnMaximizedY ); in GetWindowStateData()
905 rData.SetMaximizedWidth( aState.mnMaximizedWidth ); in GetWindowStateData()
910 rData.SetMaximizedHeight( aState.mnMaximizedHeight ); in GetWindowStateData()
919 rData.SetState( aState.mnState ); in GetWindowStateData()
921 rData.SetMask( nValidMask ); in GetWindowStateData()
924 rData.SetMask( 0 ); in GetWindowStateData()
939 rData.SetX( aPos.X() ); in GetWindowStateData()
941 rData.SetY( aPos.Y() ); in GetWindowStateData()
943 rData.SetWidth( aSize.Width() ); in GetWindowStateData()
945 rData.SetHeight( aSize.Height() ); in GetWindowStateData()
947 rData.SetState( nState ); in GetWindowStateData()