summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorPhilipp Weissenbacher <p.weissenbacher@gmail.com>2012-03-06 21:48:09 +0100
committerPhilipp Weissenbacher <p.weissenbacher@gmail.com>2012-03-07 17:49:24 +0100
commit2343fc82a9a87fd6704194077822768db9e717aa (patch)
tree96d3365149163ec28c03c735bc0724c2efd6bafc /forms
parent358e5b13c868c5cd3868abe268d950cb93aa1740 (diff)
Translate German comments
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/File.cxx4
-rw-r--r--forms/source/component/ImageControl.cxx13
-rw-r--r--forms/source/component/RadioButton.cxx28
3 files changed, 21 insertions, 24 deletions
diff --git a/forms/source/component/File.cxx b/forms/source/component/File.cxx
index 7bbf225d3561..6cca4fc6caaf 100644
--- a/forms/source/component/File.cxx
+++ b/forms/source/component/File.cxx
@@ -250,7 +250,7 @@ void OFileControlModel::read(const Reference<stario::XObjectInputStream>& _rxInS
m_sDefaultValue = ::rtl::OUString();
}
- // Nach dem Lesen die Defaultwerte anzeigen
+ // Display default values after read
// _reset();
}
@@ -266,7 +266,7 @@ void SAL_CALL OFileControlModel::reset() throw ( ::com::sun::star::uno::RuntimeE
if (bContinue)
{
{
- // Wenn Models threadSave
+ // If Models are threadSave
::osl::MutexGuard aGuard(m_aMutex);
_reset();
}
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index fc2503ab307d..8c61449ebd27 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -223,7 +223,7 @@ StringSequence OImageControlModel::getSupportedServiceNames() throw()
//------------------------------------------------------------------------------
Any SAL_CALL OImageControlModel::queryAggregation(const Type& _rType) throw (RuntimeException)
{
- // oder matters: we want to "override" the XImageProducer interface of the aggreate with out
+ // Order matters: we want to "override" the XImageProducer interface of the aggreate with out
// own XImageProducer interface, thus we need to query OImageControlModel_Base first
Any aReturn = OImageControlModel_Base::queryInterface( _rType );
@@ -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)
{
- // Basisklasse
+ // Base class
OBoundControlModel::write(_rxOutStream);
// Version
_rxOutStream->writeShort(0x0003);
@@ -411,7 +411,7 @@ void OImageControlModel::read(const Reference<XObjectInputStream>& _rxInStream)
defaultCommonProperties();
break;
}
- // Nach dem Lesen die Defaultwerte anzeigen
+ // Display default values after read
if ( !getControlSource().isEmpty() )
{ // (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
@@ -728,7 +728,7 @@ OImageControlControl::OImageControlControl(const Reference<XMultiServiceFactory>
{
increment(m_refCount);
{
- // als Focus- und MouseListener anmelden
+ // Add as Focus- and MouseListener
Reference< XWindow > xComp;
query_aggregation( m_xAggregate, xComp );
if ( xComp.is() )
@@ -959,7 +959,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
else
{
//////////////////////////////////////////////////////////////////////
- // Doppelclick
+ // Double click
if (e.ClickCount == 2)
{
@@ -967,8 +967,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
if (!xSet.is())
return;
- // wenn Control nicht gebunden ist, kein Dialog (da die zu schickende URL hinterher sowieso
- // versanden wuerde)
+ // If the Control is not bound, do not display a dialog (because the to-be-sent URL would be invalid anyway)
Reference<XPropertySet> xBoundField;
if (hasProperty(PROPERTY_BOUNDFIELD, xSet))
::cppu::extractInterface(xBoundField, xSet->getPropertyValue(PROPERTY_BOUNDFIELD));
diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx
index 4160d8ba6c4d..a311aad3d435 100644
--- a/forms/source/component/RadioButton.cxx
+++ b/forms/source/component/RadioButton.cxx
@@ -171,7 +171,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
if (sMyGroup.isEmpty())
sMyGroup = m_aName;
- // meine Siblings durchiterieren
+ // Iterate over my siblings
Reference<XIndexAccess> xIndexAccess(getParent(), UNO_QUERY);
if (xIndexAccess.is())
{
@@ -185,9 +185,9 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
if (!xSiblingProperties.is())
continue;
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))
continue;
sal_Int16 nType = 0;
@@ -195,7 +195,7 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
if (nType != FormComponentType::RADIOBUTTON)
continue;
- // das 'zur selben Gruppe gehoeren' wird am Namen festgemacht
+ // The group association is attached to the name
sCurrentGroup = OGroupManager::GetGroupName( xSiblingProperties );
if (sCurrentGroup == sMyGroup)
xSiblingProperties->setPropertyValue(rPropName, rValue);
@@ -214,14 +214,13 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
SetSiblingPropsTo(PROPERTY_CONTROLLABEL, rValue);
}
- // wenn sich die ControlSource-Eigenschaft geaendert hat ...
+ // If the ControlSource property has changed ...
if (nHandle == PROPERTY_ID_CONTROLSOURCE)
- { // ... muss ich allen meinen Siblings, die in der selben RadioButton-Gruppe sind wie ich, auch die
- // neue ControlSource mitgeben
+ { // ... I have to pass the new ControlSource to my siblings, which are in the same RadioButton group as I am
SetSiblingPropsTo(PROPERTY_CONTROLSOURCE, rValue);
}
- // die andere Richtung : wenn sich mein Name aendert ...
+ // The other way: if my name changes ...
if (nHandle == PROPERTY_ID_NAME)
{
setControlSource();
@@ -232,8 +231,8 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
sal_Int16 nValue;
rValue >>= nValue;
if (1 == nValue)
- { // bei allen Radios der selben Gruppe das 'default checked' ruecksetzen, denn wie schon der highlander wusste :
- // es kann nur einen geben.
+ { // Reset the 'default checked' for all Radios of the same group.
+ // Because (as the Highlander already knew): "There can be only one"
Any aZero;
nValue = 0;
aZero <<= nValue;
@@ -262,13 +261,13 @@ void ORadioButtonModel::setControlSource()
continue;
if (xMyProps == xSiblingProperties)
- // nur wenn ich nicht mich selber gefunden habe
+ // Only if I didn't find myself
continue;
sal_Int16 nType = 0;
xSiblingProperties->getPropertyValue(PROPERTY_CLASSID) >>= nType;
if (nType != FormComponentType::RADIOBUTTON)
- // nur Radio-Buttons
+ // Only RadioButtons
continue;
::rtl::OUString sSiblingName, sSiblingGroupName;
@@ -357,7 +356,7 @@ void SAL_CALL ORadioButtonModel::read(const Reference<XObjectInputStream>& _rxIn
setReferenceValue( sReferenceValue );
setDefaultChecked( (ToggleState)nDefaultChecked );
- // Nach dem Lesen die Defaultwerte anzeigen
+ // Display default values after read
if ( !getControlSource().isEmpty() )
// (not if we don't have a control source - the "State" property acts like it is persistent, then
resetNoBroadcast();
@@ -370,8 +369,7 @@ void ORadioButtonModel::_propertyChanged(const PropertyChangeEvent& _rEvent) thr
{
if ( _rEvent.NewValue == (sal_Int16)1 )
{
- // wenn sich mein Status auf 'checked' geaendert hat, muss ich alle meine Siblings, die in der selben Gruppe
- // sind wie ich, entsprechend zuruecksetzen
+ // If my status has changed to 'checked', I have to reset all my siblings, which are in the same group as I am
Any aZero;
aZero <<= (sal_Int16)0;
SetSiblingPropsTo( PROPERTY_STATE, aZero );