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
e8d3dfd9
Kaydet (Commit)
e8d3dfd9
authored
Ock 27, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "merge these two selection changing hunks of code"
This reverts commit
bef9cc01
.
üst
78a5c5dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
27 deletions
+25
-27
fldedt.cxx
sw/source/ui/fldui/fldedt.cxx
+24
-25
fldedt.hxx
sw/source/uibase/inc/fldedt.hxx
+1
-2
No files found.
sw/source/ui/fldui/fldedt.cxx
Dosyayı görüntüle @
e8d3dfd9
...
...
@@ -49,28 +49,6 @@
#include <boost/scoped_ptr.hpp>
#include <swuiexp.hxx>
void
SwFldEditDlg
::
EnsureSelection
(
SwField
*
pCurFld
)
{
if
(
pSh
->
CrsrInsideInputFld
())
{
// move cursor to start of Input Field
SwInputField
*
pInputFld
=
dynamic_cast
<
SwInputField
*>
(
pCurFld
);
if
(
pInputFld
&&
pInputFld
->
GetFmtFld
())
{
pSh
->
GotoField
(
*
(
pInputFld
->
GetFmtFld
())
);
}
}
/* Only create selection if there is none already.
Normalize PaM instead of swapping. */
if
(
!
pSh
->
HasSelection
())
{
//Note that after this, it is possible that rMgr.GetCurFld() != pCurFld
pSh
->
Right
(
CRSR_SKIP_CHARS
,
true
,
1
,
false
);
}
pSh
->
NormalizePam
();
}
SwFldEditDlg
::
SwFldEditDlg
(
SwView
&
rVw
)
:
SfxSingleTabDialog
(
&
rVw
.
GetViewFrame
()
->
GetWindow
(),
0
,
...
...
@@ -84,12 +62,28 @@ SwFldEditDlg::SwFldEditDlg(SwView& rVw)
SwFldMgr
aMgr
(
pSh
);
SwField
*
pCurFld
=
aMgr
.
GetCurFld
();
if
(
!
pCurFld
)
if
(
!
pCurFld
)
return
;
SwViewShell
::
SetCareWin
(
this
);
EnsureSelection
(
pCurFld
);
if
(
pSh
->
CrsrInsideInputFld
()
)
{
// move cursor to start of Input Field
SwInputField
*
pInputFld
=
dynamic_cast
<
SwInputField
*>
(
pCurFld
);
if
(
pInputFld
!=
NULL
&&
pInputFld
->
GetFmtFld
()
!=
NULL
)
{
pSh
->
GotoField
(
*
(
pInputFld
->
GetFmtFld
())
);
}
}
if
(
!
pSh
->
HasSelection
()
)
{
pSh
->
Right
(
CRSR_SKIP_CHARS
,
true
,
1
,
false
);
}
pSh
->
NormalizePam
();
sal_uInt16
nGroup
=
aMgr
.
GetGroup
(
false
,
pCurFld
->
GetTypeId
(),
pCurFld
->
GetSubType
());
...
...
@@ -260,7 +254,12 @@ IMPL_LINK( SwFldEditDlg, NextPrevHdl, Button *, pButton )
rMgr
.
GoNextPrev
(
bNext
,
pOldTyp
);
pCurFld
=
rMgr
.
GetCurFld
();
EnsureSelection
(
pCurFld
);
/* #108536# Only create selection if there is none
already. Normalize PaM instead of swapping. */
if
(
!
pSh
->
HasSelection
()
)
pSh
->
Right
(
CRSR_SKIP_CHARS
,
true
,
1
,
false
);
pSh
->
NormalizePam
();
sal_uInt16
nGroup
=
rMgr
.
GetGroup
(
false
,
pCurFld
->
GetTypeId
(),
pCurFld
->
GetSubType
());
...
...
sw/source/uibase/inc/fldedt.hxx
Dosyayı görüntüle @
e8d3dfd9
...
...
@@ -37,10 +37,9 @@ class SwFldEditDlg : public SfxSingleTabDialog
void
Init
();
SfxTabPage
*
CreatePage
(
sal_uInt16
nGroup
);
void
EnsureSelection
(
SwField
*
pCurFld
);
public
:
SwFldEditDlg
(
SwView
&
rVw
);
SwFldEditDlg
(
SwView
&
rVw
);
virtual
~
SwFldEditDlg
();
DECL_LINK
(
OKHdl
,
void
*
);
...
...
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