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
2343fc82
Kaydet (Commit)
2343fc82
authored
Mar 06, 2012
tarafından
Philipp Weissenbacher
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Translate German comments
üst
358e5b13
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
24 deletions
+21
-24
File.cxx
forms/source/component/File.cxx
+2
-2
ImageControl.cxx
forms/source/component/ImageControl.cxx
+6
-7
RadioButton.cxx
forms/source/component/RadioButton.cxx
+13
-15
No files found.
forms/source/component/File.cxx
Dosyayı görüntüle @
2343fc82
...
@@ -250,7 +250,7 @@ void OFileControlModel::read(const Reference<stario::XObjectInputStream>& _rxInS
...
@@ -250,7 +250,7 @@ void OFileControlModel::read(const Reference<stario::XObjectInputStream>& _rxInS
m_sDefaultValue
=
::
rtl
::
OUString
();
m_sDefaultValue
=
::
rtl
::
OUString
();
}
}
//
Nach dem Lesen die Defaultwerte anzeigen
//
Display default values after read
// _reset();
// _reset();
}
}
...
@@ -266,7 +266,7 @@ void SAL_CALL OFileControlModel::reset() throw ( ::com::sun::star::uno::RuntimeE
...
@@ -266,7 +266,7 @@ void SAL_CALL OFileControlModel::reset() throw ( ::com::sun::star::uno::RuntimeE
if
(
bContinue
)
if
(
bContinue
)
{
{
{
{
//
Wenn Models
threadSave
//
If Models are
threadSave
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
_reset
();
_reset
();
}
}
...
...
forms/source/component/ImageControl.cxx
Dosyayı görüntüle @
2343fc82
...
@@ -223,7 +223,7 @@ StringSequence OImageControlModel::getSupportedServiceNames() throw()
...
@@ -223,7 +223,7 @@ StringSequence OImageControlModel::getSupportedServiceNames() throw()
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
Any
SAL_CALL
OImageControlModel
::
queryAggregation
(
const
Type
&
_rType
)
throw
(
RuntimeException
)
Any
SAL_CALL
OImageControlModel
::
queryAggregation
(
const
Type
&
_rType
)
throw
(
RuntimeException
)
{
{
//
o
der matters: we want to "override" the XImageProducer interface of the aggreate with out
//
Or
der matters: we want to "override" the XImageProducer interface of the aggreate with out
// own XImageProducer interface, thus we need to query OImageControlModel_Base first
// own XImageProducer interface, thus we need to query OImageControlModel_Base first
Any
aReturn
=
OImageControlModel_Base
::
queryInterface
(
_rType
);
Any
aReturn
=
OImageControlModel_Base
::
queryInterface
(
_rType
);
...
@@ -373,7 +373,7 @@ void OImageControlModel::describeAggregateProperties( Sequence< Property >& /* [
...
@@ -373,7 +373,7 @@ void OImageControlModel::describeAggregateProperties( Sequence< Property >& /* [
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void
OImageControlModel
::
write
(
const
Reference
<
XObjectOutputStream
>&
_rxOutStream
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
void
OImageControlModel
::
write
(
const
Reference
<
XObjectOutputStream
>&
_rxOutStream
)
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
{
// Bas
isklasse
// Bas
e class
OBoundControlModel
::
write
(
_rxOutStream
);
OBoundControlModel
::
write
(
_rxOutStream
);
// Version
// Version
_rxOutStream
->
writeShort
(
0x0003
);
_rxOutStream
->
writeShort
(
0x0003
);
...
@@ -411,7 +411,7 @@ void OImageControlModel::read(const Reference<XObjectInputStream>& _rxInStream)
...
@@ -411,7 +411,7 @@ void OImageControlModel::read(const Reference<XObjectInputStream>& _rxInStream)
defaultCommonProperties
();
defaultCommonProperties
();
break
;
break
;
}
}
//
Nach dem Lesen die Defaultwerte anzeigen
//
Display default values after read
if
(
!
getControlSource
().
isEmpty
()
)
if
(
!
getControlSource
().
isEmpty
()
)
{
// (not if we don't have a control source - the "State" property acts like it is persistent, then
{
// (not if we don't have a control source - the "State" property acts like it is persistent, then
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
// resetNoBroadcast expects this mutex guarding
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
// resetNoBroadcast expects this mutex guarding
...
@@ -728,7 +728,7 @@ OImageControlControl::OImageControlControl(const Reference<XMultiServiceFactory>
...
@@ -728,7 +728,7 @@ OImageControlControl::OImageControlControl(const Reference<XMultiServiceFactory>
{
{
increment
(
m_refCount
);
increment
(
m_refCount
);
{
{
//
als Focus- und MouseListener anmelden
//
Add as Focus- and MouseListener
Reference
<
XWindow
>
xComp
;
Reference
<
XWindow
>
xComp
;
query_aggregation
(
m_xAggregate
,
xComp
);
query_aggregation
(
m_xAggregate
,
xComp
);
if
(
xComp
.
is
()
)
if
(
xComp
.
is
()
)
...
@@ -959,7 +959,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
...
@@ -959,7 +959,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
else
else
{
{
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// Do
ppel
click
// Do
uble
click
if
(
e
.
ClickCount
==
2
)
if
(
e
.
ClickCount
==
2
)
{
{
...
@@ -967,8 +967,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
...
@@ -967,8 +967,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
if
(
!
xSet
.
is
())
if
(
!
xSet
.
is
())
return
;
return
;
// wenn Control nicht gebunden ist, kein Dialog (da die zu schickende URL hinterher sowieso
// If the Control is not bound, do not display a dialog (because the to-be-sent URL would be invalid anyway)
// versanden wuerde)
Reference
<
XPropertySet
>
xBoundField
;
Reference
<
XPropertySet
>
xBoundField
;
if
(
hasProperty
(
PROPERTY_BOUNDFIELD
,
xSet
))
if
(
hasProperty
(
PROPERTY_BOUNDFIELD
,
xSet
))
::
cppu
::
extractInterface
(
xBoundField
,
xSet
->
getPropertyValue
(
PROPERTY_BOUNDFIELD
));
::
cppu
::
extractInterface
(
xBoundField
,
xSet
->
getPropertyValue
(
PROPERTY_BOUNDFIELD
));
...
...
forms/source/component/RadioButton.cxx
Dosyayı görüntüle @
2343fc82
...
@@ -171,7 +171,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
...
@@ -171,7 +171,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
if
(
sMyGroup
.
isEmpty
())
if
(
sMyGroup
.
isEmpty
())
sMyGroup
=
m_aName
;
sMyGroup
=
m_aName
;
//
meine Siblings durchiterieren
//
Iterate over my siblings
Reference
<
XIndexAccess
>
xIndexAccess
(
getParent
(),
UNO_QUERY
);
Reference
<
XIndexAccess
>
xIndexAccess
(
getParent
(),
UNO_QUERY
);
if
(
xIndexAccess
.
is
())
if
(
xIndexAccess
.
is
())
{
{
...
@@ -185,9 +185,9 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
...
@@ -185,9 +185,9 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
if
(
!
xSiblingProperties
.
is
())
if
(
!
xSiblingProperties
.
is
())
continue
;
continue
;
if
(
xMyProps
==
xSiblingProperties
)
if
(
xMyProps
==
xSiblingProperties
)
continue
;
//
mich selber nicht umsetzen
continue
;
//
do not set myself
//
nur wenn es ein Radio-Button ist
//
Only if it's a RadioButton
if
(
!
hasProperty
(
PROPERTY_CLASSID
,
xSiblingProperties
))
if
(
!
hasProperty
(
PROPERTY_CLASSID
,
xSiblingProperties
))
continue
;
continue
;
sal_Int16
nType
=
0
;
sal_Int16
nType
=
0
;
...
@@ -195,7 +195,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
...
@@ -195,7 +195,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
if
(
nType
!=
FormComponentType
::
RADIOBUTTON
)
if
(
nType
!=
FormComponentType
::
RADIOBUTTON
)
continue
;
continue
;
//
das 'zur selben Gruppe gehoeren' wird am Namen festgemacht
//
The group association is attached to the name
sCurrentGroup
=
OGroupManager
::
GetGroupName
(
xSiblingProperties
);
sCurrentGroup
=
OGroupManager
::
GetGroupName
(
xSiblingProperties
);
if
(
sCurrentGroup
==
sMyGroup
)
if
(
sCurrentGroup
==
sMyGroup
)
xSiblingProperties
->
setPropertyValue
(
rPropName
,
rValue
);
xSiblingProperties
->
setPropertyValue
(
rPropName
,
rValue
);
...
@@ -214,14 +214,13 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
...
@@ -214,14 +214,13 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
SetSiblingPropsTo
(
PROPERTY_CONTROLLABEL
,
rValue
);
SetSiblingPropsTo
(
PROPERTY_CONTROLLABEL
,
rValue
);
}
}
//
wenn sich die ControlSource-Eigenschaft geaendert hat
...
//
If the ControlSource property has changed
...
if
(
nHandle
==
PROPERTY_ID_CONTROLSOURCE
)
if
(
nHandle
==
PROPERTY_ID_CONTROLSOURCE
)
{
// ... muss ich allen meinen Siblings, die in der selben RadioButton-Gruppe sind wie ich, auch die
{
// ... I have to pass the new ControlSource to my siblings, which are in the same RadioButton group as I am
// neue ControlSource mitgeben
SetSiblingPropsTo
(
PROPERTY_CONTROLSOURCE
,
rValue
);
SetSiblingPropsTo
(
PROPERTY_CONTROLSOURCE
,
rValue
);
}
}
//
die andere Richtung : wenn sich mein Name aendert
...
//
The other way: if my name changes
...
if
(
nHandle
==
PROPERTY_ID_NAME
)
if
(
nHandle
==
PROPERTY_ID_NAME
)
{
{
setControlSource
();
setControlSource
();
...
@@ -232,8 +231,8 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
...
@@ -232,8 +231,8 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
sal_Int16
nValue
;
sal_Int16
nValue
;
rValue
>>=
nValue
;
rValue
>>=
nValue
;
if
(
1
==
nValue
)
if
(
1
==
nValue
)
{
//
bei allen Radios der selben Gruppe das 'default checked' ruecksetzen, denn wie schon der highlander wusste :
{
//
Reset the 'default checked' for all Radios of the same group.
//
es kann nur einen geben.
//
Because (as the Highlander already knew): "There can be only one"
Any
aZero
;
Any
aZero
;
nValue
=
0
;
nValue
=
0
;
aZero
<<=
nValue
;
aZero
<<=
nValue
;
...
@@ -262,13 +261,13 @@ void ORadioButtonModel::setControlSource()
...
@@ -262,13 +261,13 @@ void ORadioButtonModel::setControlSource()
continue
;
continue
;
if
(
xMyProps
==
xSiblingProperties
)
if
(
xMyProps
==
xSiblingProperties
)
//
nur wenn ich nicht mich selber gefunden habe
//
Only if I didn't find myself
continue
;
continue
;
sal_Int16
nType
=
0
;
sal_Int16
nType
=
0
;
xSiblingProperties
->
getPropertyValue
(
PROPERTY_CLASSID
)
>>=
nType
;
xSiblingProperties
->
getPropertyValue
(
PROPERTY_CLASSID
)
>>=
nType
;
if
(
nType
!=
FormComponentType
::
RADIOBUTTON
)
if
(
nType
!=
FormComponentType
::
RADIOBUTTON
)
//
nur Radio-
Buttons
//
Only Radio
Buttons
continue
;
continue
;
::
rtl
::
OUString
sSiblingName
,
sSiblingGroupName
;
::
rtl
::
OUString
sSiblingName
,
sSiblingGroupName
;
...
@@ -357,7 +356,7 @@ void SAL_CALL ORadioButtonModel::read(const Reference<XObjectInputStream>& _rxIn
...
@@ -357,7 +356,7 @@ void SAL_CALL ORadioButtonModel::read(const Reference<XObjectInputStream>& _rxIn
setReferenceValue
(
sReferenceValue
);
setReferenceValue
(
sReferenceValue
);
setDefaultChecked
(
(
ToggleState
)
nDefaultChecked
);
setDefaultChecked
(
(
ToggleState
)
nDefaultChecked
);
//
Nach dem Lesen die Defaultwerte anzeigen
//
Display default values after read
if
(
!
getControlSource
().
isEmpty
()
)
if
(
!
getControlSource
().
isEmpty
()
)
// (not if we don't have a control source - the "State" property acts like it is persistent, then
// (not if we don't have a control source - the "State" property acts like it is persistent, then
resetNoBroadcast
();
resetNoBroadcast
();
...
@@ -370,8 +369,7 @@ void ORadioButtonModel::_propertyChanged(const PropertyChangeEvent& _rEvent) thr
...
@@ -370,8 +369,7 @@ void ORadioButtonModel::_propertyChanged(const PropertyChangeEvent& _rEvent) thr
{
{
if
(
_rEvent
.
NewValue
==
(
sal_Int16
)
1
)
if
(
_rEvent
.
NewValue
==
(
sal_Int16
)
1
)
{
{
// wenn sich mein Status auf 'checked' geaendert hat, muss ich alle meine Siblings, die in der selben Gruppe
// If my status has changed to 'checked', I have to reset all my siblings, which are in the same group as I am
// sind wie ich, entsprechend zuruecksetzen
Any
aZero
;
Any
aZero
;
aZero
<<=
(
sal_Int16
)
0
;
aZero
<<=
(
sal_Int16
)
0
;
SetSiblingPropsTo
(
PROPERTY_STATE
,
aZero
);
SetSiblingPropsTo
(
PROPERTY_STATE
,
aZero
);
...
...
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