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
e76e2c4c
Kaydet (Commit)
e76e2c4c
authored
Mar 19, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add SwField::IsClickable and use it from SwWrtShell and SwPageFrm
Change-Id: I3d856dc11297b2ad73859ff9c2d529e8cd4727b2
üst
5bb4a2ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
fldbas.hxx
sw/inc/fldbas.hxx
+2
-0
fldbas.cxx
sw/source/core/fields/fldbas.cxx
+15
-0
trvlfrm.cxx
sw/source/core/layout/trvlfrm.cxx
+2
-2
wrtsh2.cxx
sw/source/ui/wrtsh/wrtsh2.cxx
+2
-0
No files found.
sw/inc/fldbas.hxx
Dosyayı görüntüle @
e76e2c4c
...
...
@@ -343,6 +343,8 @@ public:
void
SetAutomaticLanguage
(
sal_Bool
bSet
){
bIsAutomaticLanguage
=
bSet
;}
virtual
String
GetDescription
()
const
;
/// Is this field clickable?
bool
IsClickable
()
const
;
};
inline
SwFieldType
*
SwField
::
GetTyp
()
const
...
...
sw/source/core/fields/fldbas.cxx
Dosyayı görüntüle @
e76e2c4c
...
...
@@ -756,6 +756,21 @@ String SwField::GetDescription() const
return
SW_RES
(
STR_FIELD
);
}
bool
SwField
::
IsClickable
()
const
{
switch
(
Which
())
{
case
RES_JUMPEDITFLD
:
case
RES_MACROFLD
:
case
RES_GETREFFLD
:
case
RES_INPUTFLD
:
case
RES_SETEXPFLD
:
case
RES_DROPDOWN
:
return
true
;
}
return
false
;
}
sal_uInt16
SwFldTypes
::
GetPos
(
const
SwFieldType
*
pFieldType
)
const
{
const_iterator
it
=
std
::
find
(
begin
(),
end
(),
pFieldType
);
...
...
sw/source/core/layout/trvlfrm.cxx
Dosyayı görüntüle @
e76e2c4c
...
...
@@ -294,7 +294,7 @@ sal_Bool SwPageFrm::GetCrsrOfst( SwPosition *pPos, Point &rPoint,
}
bool
bConsiderBackground
=
true
;
// If the text position i
f a macro
field, then that should have priority.
// If the text position i
s a clickable
field, then that should have priority.
if
(
pTextNd
->
IsTxtNode
())
{
SwTxtNode
*
pTxtNd
=
pTextNd
->
GetTxtNode
();
...
...
@@ -302,7 +302,7 @@ sal_Bool SwPageFrm::GetCrsrOfst( SwPosition *pPos, Point &rPoint,
if
(
pTxtAttr
)
{
const
SwField
*
pField
=
pTxtAttr
->
GetFld
().
GetFld
();
if
(
pField
->
Which
()
==
RES_MACROFLD
)
if
(
pField
->
IsClickable
()
)
bConsiderBackground
=
false
;
}
}
...
...
sw/source/ui/wrtsh/wrtsh2.cxx
Dosyayı görüntüle @
e76e2c4c
...
...
@@ -315,6 +315,8 @@ void SwWrtShell::ClickToField( const SwField& rFld )
case
RES_DROPDOWN
:
StartDropDownFldDlg
(
(
SwField
*
)
&
rFld
,
sal_False
);
break
;
default
:
SAL_WARN_IF
(
rFld
.
IsClickable
(),
"sw"
,
"unhandled clickable field!"
);
}
bIsInClickToEdit
=
false
;
...
...
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