crsrsh.cxx (4d7c9de0) crsrsh.cxx (23d8f725)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 2415 unchanged lines hidden (view full) ---

2424 return bRet;
2425}
2426
2427sal_Bool SwCrsrShell::IsOverReadOnlyPos( const Point& rPt ) const
2428{
2429 Point aPt( rPt );
2430 SwPaM aPam( *pCurCrsr->GetPoint() );
2431 GetLayout()->GetCrsrOfst( aPam.GetPoint(), aPt );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 2415 unchanged lines hidden (view full) ---

2424 return bRet;
2425}
2426
2427sal_Bool SwCrsrShell::IsOverReadOnlyPos( const Point& rPt ) const
2428{
2429 Point aPt( rPt );
2430 SwPaM aPam( *pCurCrsr->GetPoint() );
2431 GetLayout()->GetCrsrOfst( aPam.GetPoint(), aPt );
2432 // --> FME 2004-06-29 #114856# Formular view
2433 return aPam.HasReadonlySel( GetViewOptions()->IsFormView() );
2432 return aPam.HasReadonlySel( GetViewOptions()->IsFormView() );
2434 // <--
2435}
2436
2437
2438 // returne die Anzahl der Cursor im Ring (Flag besagt ob man nur
2439 // aufgepspannte haben will - sprich etwas selektiert ist (Basic))
2440sal_uInt16 SwCrsrShell::GetCrsrCnt( sal_Bool bAll ) const
2441{
2442 Ring* pTmp = GetCrsr()->GetNext();

--- 610 unchanged lines hidden (view full) ---

3053 }
3054 bSetCrsrInReadOnly = bFlag;
3055 UpdateCrsr();
3056 }
3057}
3058
3059sal_Bool SwCrsrShell::HasReadonlySel() const
3060{
2433}
2434
2435
2436 // returne die Anzahl der Cursor im Ring (Flag besagt ob man nur
2437 // aufgepspannte haben will - sprich etwas selektiert ist (Basic))
2438sal_uInt16 SwCrsrShell::GetCrsrCnt( sal_Bool bAll ) const
2439{
2440 Ring* pTmp = GetCrsr()->GetNext();

--- 610 unchanged lines hidden (view full) ---

3051 }
3052 bSetCrsrInReadOnly = bFlag;
3053 UpdateCrsr();
3054 }
3055}
3056
3057sal_Bool SwCrsrShell::HasReadonlySel() const
3058{
3061 sal_Bool bRet = sal_False;
3062 if( IsReadOnlyAvailable() ||
3063 // --> FME 2004-06-29 #114856# Formular view
3064 GetViewOptions()->IsFormView() )
3065 // <--
3066 {
3067 if( pTblCrsr )
3068 bRet = pTblCrsr->HasReadOnlyBoxSel() ||
3069 pTblCrsr->HasReadonlySel(
3070 // --> FME 2004-06-29 #114856# Formular view
3071 GetViewOptions()->IsFormView() );
3072 // <--
3059 sal_Bool bRet = sal_False;
3060 if ( IsReadOnlyAvailable() || GetViewOptions()->IsFormView() )
3061 {
3062 if ( pTblCrsr != NULL )
3063 {
3064 bRet = pTblCrsr->HasReadOnlyBoxSel()
3065 || pTblCrsr->HasReadonlySel( GetViewOptions()->IsFormView() );
3066 }
3073 else
3067 else
3074 {
3075 const SwPaM* pCrsr = pCurCrsr;
3068 {
3069 const SwPaM* pCrsr = pCurCrsr;
3076
3070
3077 do {
3078 if( pCrsr->HasReadonlySel(
3079 // --> FME 2004-06-29 #114856# Formular view
3080 GetViewOptions()->IsFormView() ) )
3081 // <--
3082 bRet = sal_True;
3083 } while( !bRet && pCurCrsr != ( pCrsr = (SwPaM*)pCrsr->GetNext() ));
3084 }
3085 }
3086 return bRet;
3071 do
3072 {
3073 if ( pCrsr->HasReadonlySel( GetViewOptions()->IsFormView() ) )
3074 {
3075 bRet = sal_True;
3076 }
3077
3078 pCrsr = (SwPaM*)pCrsr->GetNext();
3079 } while ( !bRet && pCrsr != pCurCrsr );
3080 }
3081 }
3082 return bRet;
3087}
3088
3089sal_Bool SwCrsrShell::IsSelFullPara() const
3090{
3091 sal_Bool bRet = sal_False;
3092
3093 if( pCurCrsr->GetPoint()->nNode.GetIndex() ==
3094 pCurCrsr->GetMark()->nNode.GetIndex() && pCurCrsr == pCurCrsr->GetNext() )

--- 470 unchanged lines hidden ---
3083}
3084
3085sal_Bool SwCrsrShell::IsSelFullPara() const
3086{
3087 sal_Bool bRet = sal_False;
3088
3089 if( pCurCrsr->GetPoint()->nNode.GetIndex() ==
3090 pCurCrsr->GetMark()->nNode.GetIndex() && pCurCrsr == pCurCrsr->GetNext() )

--- 470 unchanged lines hidden ---