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
fc0c91c2
Kaydet (Commit)
fc0c91c2
authored
Mar 21, 2014
tarafından
Oliver-Rainer Wittmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
124474: on change of User Field via UNO-API trigger update to get dependent Input Fields updated.
üst
df00256f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
unofield.cxx
sw/source/core/unocore/unofield.cxx
+16
-5
No files found.
sw/source/core/unocore/unofield.cxx
Dosyayı görüntüle @
fc0c91c2
...
@@ -540,18 +540,29 @@ void SwXFieldMaster::setPropertyValue( const OUString& rPropertyName,
...
@@ -540,18 +540,29 @@ void SwXFieldMaster::setPropertyValue( const OUString& rPropertyName,
}
}
}
}
}
}
if
(
bSetValue
)
if
(
bSetValue
)
{
{
// nothing special to be done here for the properties
// nothing special to be done here for the properties
// UNO_NAME_DATA_BASE_NAME and UNO_NAME_DATA_BASE_URL.
// UNO_NAME_DATA_BASE_NAME and UNO_NAME_DATA_BASE_URL.
// We just call PutValue (empty string is allowed).
// We just call PutValue (empty string is allowed).
// Thus the last property set will be used as Data Source.
// Thus the last property set will be used as Data Source.
sal_uInt16
nMId
=
GetFieldTypeMId
(
rPropertyName
,
*
pType
);
const
sal_uInt16
nMemberValueId
=
GetFieldTypeMId
(
rPropertyName
,
*
pType
);
if
(
USHRT_MAX
!=
nMId
)
if
(
USHRT_MAX
!=
nMemberValueId
)
pType
->
PutValue
(
rValue
,
nMId
);
{
pType
->
PutValue
(
rValue
,
nMemberValueId
);
if
(
pType
->
Which
()
==
RES_USERFLD
)
{
// trigger update of User field in order to get depending Input Fields updated.
pType
->
UpdateFlds
();
}
}
else
else
throw
beans
::
UnknownPropertyException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Unknown property: "
)
)
+
rPropertyName
,
static_cast
<
cppu
::
OWeakObject
*
>
(
this
)
);
{
throw
beans
::
UnknownPropertyException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Unknown property: "
)
)
+
rPropertyName
,
static_cast
<
cppu
::
OWeakObject
*
>
(
this
)
);
}
}
}
}
}
else
if
(
!
pType
&&
m_pDoc
&&
else
if
(
!
pType
&&
m_pDoc
&&
...
...
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