Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
574a1fb3
Kaydet (Commit)
574a1fb3
authored
Ock 29, 2001
tarafından
Andreas Martens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix: Selektion and rotated parts of line
üst
bb1d7ba8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
15 deletions
+44
-15
trvlfrm.cxx
sw/source/core/layout/trvlfrm.cxx
+28
-10
itrcrsr.cxx
sw/source/core/text/itrcrsr.cxx
+16
-5
No files found.
sw/source/core/layout/trvlfrm.cxx
Dosyayı görüntüle @
574a1fb3
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: trvlfrm.cxx,v $
* $RCSfile: trvlfrm.cxx,v $
*
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
*
* last change: $Author: ama $ $Date: 200
0-12-12 10:49:12
$
* last change: $Author: ama $ $Date: 200
1-01-29 12:33:53
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -1912,11 +1912,13 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
...
@@ -1912,11 +1912,13 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
{
{
SwRect
aTmp
(
aStRect
.
Pos
(),
SwRect
aTmp
(
aStRect
.
Pos
(),
Point
(
pSt2Pos
->
aPortion
.
Right
(),
aStRect
.
Bottom
()
)
);
Point
(
pSt2Pos
->
aPortion
.
Right
(),
aStRect
.
Bottom
()
)
);
if
(
pSt2Pos
->
aPortion
.
Top
()
==
aStRect
.
Top
()
)
if
(
!
pSt2Pos
->
nMultiType
||
pSt2Pos
->
aPortion
.
Top
()
==
aTmp
.
Top
()
)
aTmp
.
Top
(
pSt2Pos
->
aLine
.
Top
()
);
aTmp
.
Top
(
pSt2Pos
->
aLine
.
Top
()
);
aTmp
.
Intersection
(
aStFrm
);
aTmp
.
Intersection
(
aStFrm
);
Sub
(
aRegion
,
aTmp
);
Sub
(
aRegion
,
aTmp
);
if
(
aStRect
.
Bottom
()
<
pSt2Pos
->
aLine
.
Bottom
()
)
if
(
pSt2Pos
->
nMultiType
&&
aStRect
.
Bottom
()
<
pSt2Pos
->
aLine
.
Bottom
()
)
{
{
aTmp
.
Top
(
aTmp
.
Bottom
()
);
aTmp
.
Top
(
aTmp
.
Bottom
()
);
aTmp
.
Bottom
(
pSt2Pos
->
aLine
.
Bottom
()
);
aTmp
.
Bottom
(
pSt2Pos
->
aLine
.
Bottom
()
);
...
@@ -1933,11 +1935,13 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
...
@@ -1933,11 +1935,13 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
SwRect
aTmp
(
Point
(
pEnd2Pos
->
aPortion
.
Left
(),
aEndRect
.
Top
()
),
SwRect
aTmp
(
Point
(
pEnd2Pos
->
aPortion
.
Left
(),
aEndRect
.
Top
()
),
Point
(
aEndRect
.
Left
()
+
aEndRect
.
Width
(),
Point
(
aEndRect
.
Left
()
+
aEndRect
.
Width
(),
aEndRect
.
Top
()
+
aEndRect
.
Height
()
)
);
aEndRect
.
Top
()
+
aEndRect
.
Height
()
)
);
if
(
pEnd2Pos
->
aPortion
.
Bottom
()
==
aEndRect
.
Bottom
()
)
if
(
!
pEnd2Pos
->
nMultiType
||
pEnd2Pos
->
aPortion
.
Bottom
()
==
aEndRect
.
Bottom
()
)
aTmp
.
Bottom
(
pEnd2Pos
->
aLine
.
Bottom
()
);
aTmp
.
Bottom
(
pEnd2Pos
->
aLine
.
Bottom
()
);
aTmp
.
Intersection
(
aEndFrm
);
aTmp
.
Intersection
(
aEndFrm
);
Sub
(
aRegion
,
aTmp
);
Sub
(
aRegion
,
aTmp
);
if
(
aEndRect
.
Top
()
>
pEnd2Pos
->
aLine
.
Top
()
)
if
(
pEnd2Pos
->
nMultiType
&&
aEndRect
.
Top
()
>
pEnd2Pos
->
aLine
.
Top
()
)
{
{
aTmp
.
Bottom
(
aTmp
.
Top
()
);
aTmp
.
Bottom
(
aTmp
.
Top
()
);
aTmp
.
Top
(
pEnd2Pos
->
aLine
.
Top
()
);
aTmp
.
Top
(
pEnd2Pos
->
aLine
.
Top
()
);
...
@@ -1972,11 +1976,24 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
...
@@ -1972,11 +1976,24 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
else
if
(
nTmp
>
aEndFrm
.
Right
()
)
else
if
(
nTmp
>
aEndFrm
.
Right
()
)
aEndRect
.
Right
(
aEndFrm
.
Right
()
);
aEndRect
.
Right
(
aEndFrm
.
Right
()
);
if
(
pStartFrm
==
pEndFrm
)
{
sal_Bool
bSameRotatedLine
=
pSt2Pos
&&
pEnd2Pos
&&
2
!=
pSt2Pos
->
nMultiType
&&
pSt2Pos
->
aPortion
==
pEnd2Pos
->
aPortion
;
//Fall 1: (Gleicher Frame und gleiche Zeile)
//Fall 1: (Gleicher Frame und gleiche Zeile)
if
(
pStartFrm
==
pEndFrm
&&
aStRect
.
Top
()
==
aEndRect
.
Top
()
)
if
(
aStRect
.
Top
()
==
aEndRect
.
Top
()
||
bSameRotatedLine
)
{
{
SwRect
aTmp
(
aStRect
.
Pos
(),
Point
aTmpSt
(
aStRect
.
Pos
()
);
Point
(
aEndRect
.
Left
(),
aEndRect
.
Bottom
()
));
Point
aTmpEnd
(
aEndRect
.
Right
(),
aEndRect
.
Bottom
()
);
if
(
bSameRotatedLine
&&
aTmpSt
.
Y
()
>
aTmpEnd
.
Y
()
)
{
long
nTmpY
=
aTmpEnd
.
Y
();
aTmpEnd
.
Y
()
=
aTmpSt
.
Y
();
aTmpSt
.
Y
()
=
nTmpY
;
}
SwRect
aTmp
=
SwRect
(
aTmpSt
,
aTmpEnd
);
// Bug 34888: falls Inhalt selektiert ist, der keinen Platz
// Bug 34888: falls Inhalt selektiert ist, der keinen Platz
// einnimmt (z.B. PostIts,RefMarks, TOXMarks),
// einnimmt (z.B. PostIts,RefMarks, TOXMarks),
// dann mindestens die Breite des Crsr setzen.
// dann mindestens die Breite des Crsr setzen.
...
@@ -1992,7 +2009,7 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
...
@@ -1992,7 +2009,7 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
Sub
(
aRegion
,
aTmp
);
Sub
(
aRegion
,
aTmp
);
}
}
//Fall 2: (Gleicher Frame ueber mehr als eine Zeile)
//Fall 2: (Gleicher Frame ueber mehr als eine Zeile)
else
if
(
pStartFrm
==
pEndFrm
)
else
{
{
SwTwips
lLeft
,
lRight
;
SwTwips
lLeft
,
lRight
;
if
(
pSt2Pos
&&
pEnd2Pos
&&
pSt2Pos
->
aPortion
==
pEnd2Pos
->
aPortion
)
if
(
pSt2Pos
&&
pEnd2Pos
&&
pSt2Pos
->
aPortion
==
pEnd2Pos
->
aPortion
)
...
@@ -2023,6 +2040,7 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
...
@@ -2023,6 +2040,7 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, BOOL bIsTblMode )
Sub
(
aRegion
,
SwRect
(
Point
(
lLeft
,
aEndRect
.
Top
()
),
Sub
(
aRegion
,
SwRect
(
Point
(
lLeft
,
aEndRect
.
Top
()
),
Point
(
aEndRect
.
Left
(),
aEndRect
.
Bottom
()
)));
Point
(
aEndRect
.
Left
(),
aEndRect
.
Bottom
()
)));
}
}
}
//Fall 3: (Unterschiedliche Frm's, moeglicherweise auch welche
//Fall 3: (Unterschiedliche Frm's, moeglicherweise auch welche
// dazwischen)
// dazwischen)
else
else
...
...
sw/source/core/text/itrcrsr.cxx
Dosyayı görüntüle @
574a1fb3
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: itrcrsr.cxx,v $
* $RCSfile: itrcrsr.cxx,v $
*
*
* $Revision: 1.1
5
$
* $Revision: 1.1
6
$
*
*
* last change: $Author: ama $ $Date: 2001-01-
19 15:23:12
$
* last change: $Author: ama $ $Date: 2001-01-
29 12:34:40
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -441,7 +441,8 @@ sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const xub_StrLen nOfst,
...
@@ -441,7 +441,8 @@ sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const xub_StrLen nOfst,
nPorHeight
=
pPor
->
Height
();
nPorHeight
=
pPor
->
Height
();
nPorAscent
=
pPor
->
GetAscent
();
nPorAscent
=
pPor
->
GetAscent
();
}
}
while
(
pPor
&&
aInf
.
GetIdx
()
<
nOfst
&&
!
pPor
->
IsBreakPortion
()
)
while
(
pPor
&&
!
pPor
->
IsBreakPortion
()
&&
(
aInf
.
GetIdx
()
<
nOfst
||
(
bWidth
&&
pPor
->
IsMultiPortion
()
)
)
)
{
{
if
(
!
pPor
->
IsMarginPortion
()
&&
!
pPor
->
IsPostItsPortion
()
&&
if
(
!
pPor
->
IsMarginPortion
()
&&
!
pPor
->
IsPostItsPortion
()
&&
(
!
pPor
->
InFldGrp
()
||
pPor
->
GetAscent
()
)
)
(
!
pPor
->
InFldGrp
()
||
pPor
->
GetAscent
()
)
)
...
@@ -487,11 +488,21 @@ sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const xub_StrLen nOfst,
...
@@ -487,11 +488,21 @@ sal_Bool SwTxtCursor::GetCharRect( SwRect* pOrig, const xub_StrLen nOfst,
if
(
pPor
->
IsMultiPortion
()
)
if
(
pPor
->
IsMultiPortion
()
)
{
{
nY
+=
nTmpAscent
-
nPorAscent
;
nY
+=
nTmpAscent
-
nPorAscent
;
if
(
((
SwMultiPortion
*
)
pPor
)
->
IsDouble
()
&&
if
(
(
((
SwMultiPortion
*
)
pPor
)
->
IsDouble
()
||
pCMS
&&
pCMS
->
b2Lines
)
((
SwMultiPortion
*
)
pPor
)
->
HasRotation
()
)
&&
pCMS
&&
pCMS
->
b2Lines
)
{
{
pCMS
->
p2Lines
=
new
Sw2LinesPos
();
pCMS
->
p2Lines
=
new
Sw2LinesPos
();
pCMS
->
p2Lines
->
aLine
=
SwRect
(
aCharPos
,
aCharSize
);
pCMS
->
p2Lines
->
aLine
=
SwRect
(
aCharPos
,
aCharSize
);
if
(
((
SwMultiPortion
*
)
pPor
)
->
HasRotation
()
)
{
if
(
((
SwMultiPortion
*
)
pPor
)
->
IsRevers
()
)
pCMS
->
p2Lines
->
nMultiType
=
1
;
else
pCMS
->
p2Lines
->
nMultiType
=
0
;
}
else
pCMS
->
p2Lines
->
nMultiType
=
2
;
SwTwips
nTmpWidth
=
pPor
->
Width
();
SwTwips
nTmpWidth
=
pPor
->
Width
();
if
(
nSpaceAdd
)
if
(
nSpaceAdd
)
nTmpWidth
+=
pPor
->
CalcSpacing
(
nSpaceAdd
,
aInf
);
nTmpWidth
+=
pPor
->
CalcSpacing
(
nSpaceAdd
,
aInf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment