summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJohnny_M <klasse@partyheld.de>2017-04-16 15:07:01 +0200
committerMichael Stahl <mstahl@redhat.com>2017-04-25 15:43:41 +0200
commit95fba86ecf28750ccbcd4fef3e41f1ea9b50f00e (patch)
treee26af563846493faf5a675537a6b2d8d75a05d27 /svx
parent33d667d0f862bffb6818910243bed6059a45b711 (diff)
Translate German comments in svx/source/fmcomp/
Change-Id: I7676188ecf8f344bc57297a1d834781047aae4b2 Reviewed-on: https://gerrit.libreoffice.org/36577 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx92
-rw-r--r--svx/source/fmcomp/fmgridif.cxx21
-rw-r--r--svx/source/fmcomp/gridcell.cxx99
-rw-r--r--svx/source/fmcomp/gridcols.cxx2
-rw-r--r--svx/source/fmcomp/gridctrl.cxx10
5 files changed, 111 insertions, 113 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 1579600a1f8f..a58ce67209a4 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -384,12 +384,12 @@ IMPL_LINK_NOARG( FmGridHeader, OnAsyncExecuteDrop, void*, void )
return;
}
- // Vom Feld werden nun zwei Informationen benoetigt:
- // a.) Name des Feldes fuer Label und ControlSource
- // b.) FormatKey, um festzustellen, welches Feld erzeugt werden soll
+ // The field now needs two pieces of information:
+ // a.) Name of the field for label and ControlSource
+ // b.) FormatKey, to determine which field is to be created
sal_Int32 nDataType = 0;
xField->getPropertyValue(FM_PROP_FIELDTYPE) >>= nDataType;
- // diese Datentypen koennen im Gridcontrol nicht verarbeitet werden
+ // these datatypes can not be processed in Gridcontrol
switch (nDataType)
{
case DataType::BLOB:
@@ -402,12 +402,12 @@ IMPL_LINK_NOARG( FmGridHeader, OnAsyncExecuteDrop, void*, void )
return;
}
- // Erstellen der Column
+ // Creating the column
Reference< XIndexContainer > xCols(static_cast<FmGridControl*>(GetParent())->GetPeer()->getColumns());
Reference< XGridColumnFactory > xFactory(xCols, UNO_QUERY);
sal_uInt16 nColId = GetItemId(m_pImpl->aDropPosPixel);
- // EinfuegePosition, immer vor der aktuellen Spalte
+ // insert position, always before the current column
sal_uInt16 nPos = GetModelColumnPos(nColId);
Reference< XPropertySet > xCol, xSecondCol;
@@ -546,7 +546,7 @@ IMPL_LINK_NOARG( FmGridHeader, OnAsyncExecuteDrop, void*, void )
else
xCol->setPropertyValue(FM_PROP_LABEL, makeAny(sFieldName));
- // jetzt einfuegen
+ // insert now
Any aElement;
aElement <<= xCol;
@@ -592,7 +592,7 @@ IMPL_LINK_NOARG( FmGridHeader, OnAsyncExecuteDrop, void*, void )
xCols->insertByIndex(nPos == (sal_uInt16)-1 ? nPos : ++nPos, aElement);
}
- // ist die component::Form an die Datenbankangebunden?
+ // is the component::Form tied to the database?
Reference< XFormComponent > xFormCp(xCols, UNO_QUERY);
Reference< XPropertySet > xForm(xFormCp->getParent(), UNO_QUERY);
if (xForm.is())
@@ -643,7 +643,7 @@ void FmGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rMe
bool bDesignMode = static_cast<FmGridControl*>(GetParent())->IsDesignMode();
Reference< css::container::XIndexContainer > xCols(static_cast<FmGridControl*>(GetParent())->GetPeer()->getColumns());
- // Aufbau des Insert Menus
+ // Building of the Insert Menu
// mark the column if nColId != HEADERBAR_ITEM_NOTFOUND
if(nColId > 0)
{
@@ -656,7 +656,7 @@ void FmGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rMe
xSelSupplier->select(makeAny(xColumn));
}
- // EinfuegePosition, immer vor der aktuellen Spalte
+ // insert position, always before the current column
sal_uInt16 nPos = GetModelColumnPos(nColId);
bool bMarked = nColId && static_cast<FmGridControl*>(GetParent())->isColumnMarked(nColId);
@@ -939,7 +939,7 @@ void FmGridHeader::PostExecuteColumnContextMenu(sal_uInt16 nColId, const PopupMe
if ( bReplace )
{
- // ein paar Properties hinueberretten
+ // rescue over a few properties
Reference< XPropertySet > xReplaced( xCols->getByIndex( nPos ), UNO_QUERY );
TransferFormComponentProperties(
@@ -1081,7 +1081,7 @@ void FmGridControl::propertyChange(const css::beans::PropertyChangeEvent& evt)
}
const DbGridRowRef& xRow = GetCurrentRow();
- // waehrend Positionierung wird kein abgleich der Properties vorgenommen
+ // no adjustment of the properties is carried out during positioning
Reference<XPropertySet> xSet(evt.Source,UNO_QUERY);
if (xRow.is() && (::cppu::any2bool(xSet->getPropertyValue(FM_PROP_ISNEW))|| CompareBookmark(getDataSource()->getBookmark(), xRow->GetBookmark())))
{
@@ -1107,7 +1107,7 @@ void FmGridControl::SetDesignMode(bool bMode)
{
if (!bMode)
{
- // selection aufheben
+ // cancel selection
markColumn(USHRT_MAX);
}
else
@@ -1198,7 +1198,7 @@ void FmGridControl::DeleteSelectedRows()
{
OSL_FAIL("Exception caught while deleting rows!");
}
- // An den DatenCursor anpassen
+ // adapt to the data cursor
AdjustDataSource(true);
EndCursorAction();
SetUpdateMode(true);
@@ -1253,8 +1253,8 @@ void FmGridControl::DeleteSelectedRows()
}
}
- // Sind alle Zeilen Selectiert
- // Zweite bedingung falls keine einguegeZeile existiert
+ // Are all rows selected?
+ // Second condition if no insertion line exists
bool bAllSelected = GetTotalCount() == nSelectedRows || GetRowCount() == nSelectedRows;
BeginCursorAction();
@@ -1280,7 +1280,7 @@ void FmGridControl::DeleteSelectedRows()
++nDeletedRows;
}
- // sind Zeilen geloescht worden?
+ // have rows been deleted?
if (nDeletedRows)
{
SetUpdateMode(false);
@@ -1347,18 +1347,18 @@ void FmGridControl::DeleteSelectedRows()
}
}
- // An den DatenCursor anpassen
+ // adapt to the data cursor
AdjustDataSource(true);
- // es konnten nicht alle Zeilen geloescht werden
- // da nie nicht geloeschten wieder selektieren
+ // not all rows could be deleted;
+ // never select again there the ones that could not be deleted
if (nDeletedRows < nSelectedRows)
{
- // waren alle selektiert
+ // were all selected
if (bAllSelected)
{
SelectAll();
- if (IsInsertionRow(GetRowCount() - 1)) // einfuegeZeile nicht
+ if (IsInsertionRow(GetRowCount() - 1)) // not the insertion row
SelectRow(GetRowCount() - 1, false);
}
else
@@ -1387,7 +1387,7 @@ void FmGridControl::DeleteSelectedRows()
EndCursorAction();
SetUpdateMode(true);
}
- else // Zeile konnte nicht geloescht werden
+ else // row could not be deleted
{
EndCursorAction();
try
@@ -1417,8 +1417,8 @@ void FmGridControl::positioned(const css::lang::EventObject& /*rEvent*/)
bool FmGridControl::commit()
{
- // Commit nur ausfuehren, wenn nicht bereits ein Update vom css::form::component::GridControl ausgefuehrt
- // wird
+ // execute commit only if an update is not already executed by the
+ // css::form::component::GridControl
if (!IsUpdating())
{
if (Controller().is() && Controller()->IsModified())
@@ -1436,7 +1436,7 @@ void FmGridControl::inserted(const css::lang::EventObject& /*rEvent*/)
if (!xRow.is())
return;
- // Zeile ist eingefuegt worden, dann den status und mode zuruecksetzen
+ // line has been inserted, then reset the status and mode
xRow->SetState(m_pDataCursor, false);
xRow->SetNew(false);
@@ -1506,7 +1506,7 @@ void FmGridControl::ColumnResized(sal_uInt16 nId)
{
DbGridControl::ColumnResized(nId);
- // Wert ans model uebergeben
+ // transfer value to the model
DbGridColumn* pCol = DbGridControl::GetColumns().at( GetModelColumnPos(nId) );
Reference< css::beans::XPropertySet > xColModel(pCol->getModel());
if (xColModel.is())
@@ -1514,7 +1514,7 @@ void FmGridControl::ColumnResized(sal_uInt16 nId)
Any aWidth;
sal_Int32 nColumnWidth = GetColumnWidth(nId);
nColumnWidth = CalcReverseZoom(nColumnWidth);
- // Umrechnen in 10THMM
+ // convert to 10THMM
aWidth <<= (sal_Int32)PixelToLogic(Point(nColumnWidth,0),MapUnit::Map10thMM).X();
xColModel->setPropertyValue(FM_PROP_WIDTH, aWidth);
}
@@ -1547,12 +1547,12 @@ void FmGridControl::ColumnMoved(sal_uInt16 nId)
if (xColumns.is())
{
- // suchen der Spalte und verschieben im Model
- // ColumnPos holen
+ // locate the column and move in the model;
+ // get ColumnPos
DbGridColumn* pCol = DbGridControl::GetColumns().at( GetModelColumnPos(nId) );
Reference< css::beans::XPropertySet > xCol;
- // Einfuegen muss sich an den Column Positionen orientieren
+ // inserting must be based on the column positions
sal_Int32 i;
Reference< XInterface > xCurrent;
for (i = 0; !xCol.is() && i < xColumns->getCount(); i++)
@@ -1581,8 +1581,8 @@ void FmGridControl::ColumnMoved(sal_uInt16 nId)
void FmGridControl::InitColumnsByModels(const Reference< css::container::XIndexContainer >& xColumns)
{
- // Spalten wieder neu setzen
- // wenn es nur eine HandleColumn gibt, dann nicht
+ // reset columns;
+ // if there is only one HandleColumn, then don't
if (GetModelColCount())
{
RemoveColumns();
@@ -1594,7 +1594,7 @@ void FmGridControl::InitColumnsByModels(const Reference< css::container::XIndexC
SetUpdateMode(false);
- // Einfuegen muss sich an den Column Positionen orientieren
+ // inserting must be based on the column positions
sal_Int32 i;
Any aWidth;
for (i = 0; i < xColumns->getCount(); ++i)
@@ -1615,10 +1615,10 @@ void FmGridControl::InitColumnsByModels(const Reference< css::container::XIndexC
pCol->setModel(xCol);
}
- // und jetzt noch die hidden columns rausnehmen
- // (wir haben das nicht gleich in der oberen Schleife gemacht, da wir dann Probleme mit den
- // IDs der Spalten bekommen haetten : AppendColumn vergibt die automatisch, die Spalte _nach_
- // einer versteckten braucht aber eine um eine erhoehte ID ....
+ // and now remove the hidden columns as well
+ // (we did not already make it in the upper loop, since we would then have gotten
+ // problems with the IDs of the columns: AppendColumn allocates them automatically,
+ // but the column _after_ a hidden one needs an ID increased by one ...)
Any aHidden;
for (i = 0; i < xColumns->getCount(); ++i)
{
@@ -1708,11 +1708,11 @@ void FmGridControl::InitColumnsByFields(const Reference< css::container::XIndexA
if ( !_rxFields.is() )
return;
- // Spalten initialisieren
+ // initialize columns
Reference< XIndexContainer > xColumns( GetPeer()->getColumns() );
Reference< XNameAccess > xFieldsAsNames( _rxFields, UNO_QUERY );
- // Einfuegen muss sich an den Column Positionen orientieren
+ // inserting must be based on the column positions
for (sal_Int32 i = 0; i < xColumns->getCount(); i++)
{
DbGridColumn* pCol = GetColumns().at( i );
@@ -1852,13 +1852,13 @@ Sequence< Any> FmGridControl::getSelectionBookmarks()
nIdx = ::comphelper::getINT32(pBookmarks[i]);
if (IsInsertionRow(nIdx))
{
- // leerzeile nicht loeschen
+ // do not delete empty row
aBookmarks.realloc(--nSelectedRows);
- SelectRow(nIdx, false); // selection aufheben fuer leerzeile
+ SelectRow(nIdx, false); // cancel selection for empty row
break;
}
- // Zunaechst den DatenCursor auf den selektierten Satz pos.
+ // first, position the data cursor on the selected block
if (SeekCursor(nIdx))
{
GetSeekRow()->SetState(m_pSeekCursor, true);
@@ -1976,7 +1976,7 @@ OUString FmGridControl::GetAccessibleObjectDescription( ::svt::AccessibleBrowseB
void FmGridControl::Select()
{
DbGridControl::Select();
- // ... betrifft das unsere Spalten ?
+ // ... does it affect our columns?
const MultiSelection* pColumnSelection = GetColumnSelection();
sal_uInt16 nSelectedColumn =
@@ -1984,7 +1984,7 @@ void FmGridControl::Select()
? sal::static_int_cast< sal_uInt16 >(
const_cast<MultiSelection*>(pColumnSelection)->FirstSelected())
: SAL_MAX_UINT16;
- // die HandleColumn wird nicht selektiert
+ // the HandleColumn is not selected
switch (nSelectedColumn)
{
case SAL_MAX_UINT16: break; // no selection
@@ -1998,7 +1998,7 @@ void FmGridControl::Select()
if (nSelectedColumn != m_nCurrentSelectedColumn)
{
- // VOR dem Aufruf des select am SelectionSupplier !
+ // BEFORE calling the select at the SelectionSupplier!
m_nCurrentSelectedColumn = nSelectedColumn;
if (!m_bSelecting)
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index fb116737b3ee..1b2e19c29059 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -97,7 +97,7 @@ css::awt::FontDescriptor ImplCreateFontDescriptor( const vcl::Font& rFont )
aFD.Orientation = rFont.GetOrientation();
aFD.Kerning = rFont.IsKerning();
aFD.WordLineMode = rFont.IsWordLineMode();
- aFD.Type = 0; // ??? => Nur an Metric...
+ aFD.Type = 0; // ??? => only to metric...
return aFD;
}
@@ -1182,7 +1182,7 @@ void FmXGridPeer::removeModifyListener(const Reference< css::util::XModifyListen
#define LAST_KNOWN_TYPE FormComponentType::PATTERNFIELD
Sequence< sal_Bool > SAL_CALL FmXGridPeer::queryFieldDataType( const Type& xType )
{
- // eine 'Konvertierungstabelle'
+ // a 'conversion table'
static const bool bCanConvert[LAST_KNOWN_TYPE][4] =
{
{ false, false, false, false }, // FormComponentType::CONTROL
@@ -1283,7 +1283,7 @@ Sequence< Any > SAL_CALL FmXGridPeer::queryFieldData( sal_Int32 nRow, const Type
if (!pGrid || !pGrid->IsOpen())
return Sequence< Any>();
- // das Control zur angegebenen Row fahren
+ // move the control to the specified row
if (!pGrid->SeekRow(nRow))
{
throw IllegalArgumentException();
@@ -1297,7 +1297,7 @@ Sequence< Any > SAL_CALL FmXGridPeer::queryFieldData( sal_Int32 nRow, const Type
// I need the columns of the control for GetFieldText
DbGridColumns aColumns = pGrid->GetColumns();
- // und durch alle Spalten durch
+ // and through all the columns
sal_Int32 nColumnCount = pGrid->GetViewColCount();
Sequence< Any> aReturnSequence(nColumnCount);
@@ -1720,7 +1720,7 @@ void FmXGridPeer::elementInserted(const ContainerEvent& evt)
SolarMutexGuard aGuard;
VclPtr< FmGridControl > pGrid = GetAs< FmGridControl >();
- // Handle Column beruecksichtigen
+ // take handle column into account
if (!pGrid || !m_xColumns.is() || pGrid->IsInColumnMove() || m_xColumns->getCount() == ((sal_Int32)pGrid->GetModelColCount()))
return;
@@ -1735,7 +1735,7 @@ void FmXGridPeer::elementInserted(const ContainerEvent& evt)
pGrid->AppendColumn(aName, (sal_uInt16)nWidth, (sal_Int16)::comphelper::getINT32(evt.Accessor));
- // jetzt die Spalte setzen
+ // now set the column
DbGridColumn* pCol = pGrid->GetColumns().at( ::comphelper::getINT32(evt.Accessor) );
pCol->setModel(xNewColumn);
@@ -1753,7 +1753,7 @@ void FmXGridPeer::elementReplaced(const ContainerEvent& evt)
VclPtr< FmGridControl > pGrid = GetAs< FmGridControl >();
- // Handle Column beruecksichtigen
+ // take handle column into account
if (!pGrid || !m_xColumns.is() || pGrid->IsInColumnMove())
return;
@@ -1808,7 +1808,7 @@ void FmXGridPeer::elementRemoved(const ContainerEvent& evt)
VclPtr< FmGridControl > pGrid = GetAs< FmGridControl >();
- // Handle Column beruecksichtigen
+ // take handle column into account
if (!pGrid || !m_xColumns.is() || pGrid->IsInColumnMove() || m_xColumns->getCount() == ((sal_Int32)pGrid->GetModelColCount()))
return;
@@ -1910,7 +1910,7 @@ void FmXGridPeer::setProperty( const OUString& PropertyName, const Any& Value)
if (Value >>= aFont)
{
vcl::Font aNewVclFont;
- if (aFont != ::comphelper::getDefaultFont()) // ist das der Default
+ if (aFont != ::comphelper::getDefaultFont()) // is this the default
aNewVclFont = ImplCreateFont( aFont );
// need to add relief and emphasis (they're stored in a VCL-Font, but not in a FontDescriptor
@@ -2278,8 +2278,7 @@ void FmXGridPeer::selectionChanged(const EventObject& evt)
// The columns have to be 1-based for the VCL control.
// If necessary, pass on the selection to the VCL control
if ( i != pGrid->GetSelectedColumn() )
- { // (wenn das nicht greift, wurde das selectionChanged implizit von dem Control selber ausgeloest
- // if this does not ?hold?catch?, the selectionChanged is cleared by the Control itself
+ { // (if this does not take effect, the selectionChanged was implicitly triggered by the control itself)
if ( i < nColCount )
{
pGrid->SelectColumnPos(pGrid->GetViewColumnPos(pGrid->GetColumnIdFromModelPos( (sal_uInt16)i )) + 1);
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 76cd0c17fd9e..3f56ca90b3b9 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -145,7 +145,7 @@ void DbGridColumn::CreateControl(sal_Int32 _nFieldPos, const Reference< css::bea
m_nTypeId = (sal_Int16)nTypeId;
if (xField != m_xField)
{
- // Grundeinstellung
+ // initial setting
m_xField = xField;
xField->getPropertyValue(FM_PROP_FORMATKEY) >>= m_nFormatKey;
m_nFieldPos = (sal_Int16)_nFieldPos;
@@ -1249,7 +1249,7 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
m_pWindow = VclPtr<FormattedField>::Create( &rParent, WB_LEFT );
m_pPainter = VclPtr<FormattedField>::Create( &rParent, WB_LEFT );
- // Alles nur damit die Selektion bei Focuserhalt von rechts nach links geht
+ // Everything just so that the selection goes from right to left when getting focus
AllSettings aSettings = m_pWindow->GetSettings();
StyleSettings aStyleSettings = aSettings.GetStyleSettings();
aStyleSettings.SetSelectionOptions(
@@ -1262,17 +1262,16 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
static_cast< FormattedField* >( m_pWindow.get() )->SetStrictFormat( false );
static_cast< FormattedField* >( m_pPainter.get() )->SetStrictFormat( false );
- // wenn man _irgendeine_ Formatierung zulaesst, kann man da sowieso keine Eingabe-Ueberpruefung
- // machen (das FormattedField unterstuetzt das sowieso nicht, nur abgeleitete Klassen)
-
- // von dem Uno-Model den Formatter besorgen
- // (Ich koennte theoretisch auch ueber den css::util::NumberFormatter gehen, den mir der Cursor bestimmt
- // liefern wuerde. Das Problem dabei ist, dass ich mich eigentlich nicht darauf verlassen
- // kann, dass die beiden Formatter die selben sind, sauber ist das Ganze, wenn ich ueber das
- // UNO-Model gehe.)
+ // if one allows any formatting, one cannot make an entry check anyway
+ // (the FormattedField does not support that anyway, only derived classes)
+
+ // get the formatter from the uno model
+ // (I could theoretically also go via the css::util::NumberFormatter, which the cursor would
+ // surely give me. The problem is that I can not really rely on the fact that the two
+ // formatters are the same. Clean is the whole thing if I go via the UNO model.)
sal_Int32 nFormatKey = -1;
- // mal sehen, ob das Model einen hat ...
+ // let's see if the model has one ...
DBG_ASSERT(::comphelper::hasProperty(FM_PROP_FORMATSSUPPLIER, xUnoModel), "DbFormattedField::Init : invalid UNO model !");
Any aSupplier( xUnoModel->getPropertyValue(FM_PROP_FORMATSSUPPLIER));
if (aSupplier.hasValue())
@@ -1280,7 +1279,7 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
m_xSupplier.set(aSupplier, css::uno::UNO_QUERY);
if (m_xSupplier.is())
{
- // wenn wir den Supplier vom Model nehmen, dann auch den Key
+ // if we take the supplier from the model, then also the key
Any aFmtKey( xUnoModel->getPropertyValue(FM_PROP_FORMATKEY));
if (aFmtKey.hasValue())
{
@@ -1301,12 +1300,12 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
}
}
- // nein ? vielleicht die css::form::component::Form hinter dem Cursor ?
+ // No? Maybe the css::form::component::Form behind the cursor?
if (!m_xSupplier.is())
{
Reference< XRowSet > xCursorForm(xCursor, UNO_QUERY);
if (xCursorForm.is())
- { // wenn wir vom Cursor den Formatter nehmen, dann auch den Key vom Feld, an das wir gebunden sind
+ { // If we take the formatter from the cursor, then also the key from the field to which we are bound
m_xSupplier = getNumberFormats(getConnection(xCursorForm));
if (m_rColumn.GetField().is())
@@ -1321,18 +1320,18 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
if (pImplmentation)
pFormatterUsed = pImplmentation->GetNumberFormatter();
else
- // alles hingfaellig : der Supplier ist vom falschen Typ, dann koennen wir uns auch nicht darauf verlassen, dass
- // ein Standard-Formatter den (eventuell nicht-Standard-)Key kennt.
+ // Everything is invalid: the supplier is of the wrong type, then we can not
+ // rely on a standard formatter to know the (possibly non-standard) key.
nFormatKey = -1;
}
- // einen Standard-Formatter ...
+ // a standard formatter ...
if (pFormatterUsed == nullptr)
{
pFormatterUsed = static_cast<FormattedField*>(m_pWindow.get())->StandardFormatter();
DBG_ASSERT(pFormatterUsed != nullptr, "DbFormattedField::Init : no standard formatter given by the numeric field !");
}
- // ... und einen Standard-Key
+ // ... and a standard key
if (nFormatKey == -1)
nFormatKey = 0;
@@ -1347,7 +1346,7 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
static_cast<FormattedField*>(m_pWindow.get())->TreatAsNumber(m_rColumn.IsNumeric());
static_cast<FormattedField*>(m_pPainter.get())->TreatAsNumber(m_rColumn.IsNumeric());
- // Min- und Max-Werte
+ // min and max values
if (m_rColumn.IsNumeric())
{
bool bClearMin = true;
@@ -1388,10 +1387,10 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x
}
}
- // den Default-Wert
+ // the default value
Any aDefault( xUnoModel->getPropertyValue(FM_PROP_EFFECTIVE_DEFAULT));
if (aDefault.hasValue())
- { // das Ding kann ein double oder ein String sein
+ { // the thing can be a double or a string
switch (aDefault.getValueType().getTypeClass())
{
case TypeClass_DOUBLE:
@@ -1466,11 +1465,11 @@ void DbFormattedField::_propertyChanged( const PropertyChangeEvent& _rEvent )
OUString DbFormattedField::GetFormatText(const Reference< css::sdb::XColumn >& _rxField, const Reference< XNumberFormatter >& /*xFormatter*/, Color** ppColor)
{
- // defaultmaessig keine Farb-Angabe
+ // no color specification by default
if (ppColor != nullptr)
*ppColor = nullptr;
- // NULL-Wert -> leerer Text
+ // NULL value -> empty text
if (!_rxField.is())
return OUString();
@@ -1479,11 +1478,11 @@ OUString DbFormattedField::GetFormatText(const Reference< css::sdb::XColumn >& _
{
if (m_rColumn.IsNumeric())
{
- // das IsNumeric an der Column sagt nichts aus ueber die Klasse des benutzen Formates, sondern
- // ueber die des an die Column gebundenen Feldes. Wenn man also eine FormattedField-Spalte an
- // ein double-Feld bindet und als Text formatiert, liefert m_rColumn.IsNumeric() sal_True. Das heisst
- // also einfach, dass ich den Inhalt der Variant mittels getDouble abfragen kann, und dann kann
- // ich den Rest (die Formatierung) dem FormattedField ueberlassen.
+ // The IsNumeric at the column says nothing about the class of the used format, but
+ // about the class of the field bound to the column. So when you bind a FormattedField
+ // column to a double field and format it as text, m_rColumn.IsNumeric() returns
+ // sal_True. So that simply means that I can query the contents of the variant using
+ // getDouble, and then I can leave the rest (the formatting) to the FormattedField.
double dValue = getValue( _rxField, m_rColumn.GetParent().getNullDate() );
if (_rxField->wasNull())
return aText;
@@ -1491,8 +1490,8 @@ OUString DbFormattedField::GetFormatText(const Reference< css::sdb::XColumn >& _
}
else
{
- // Hier kann ich nicht mit einem double arbeiten, da das Feld mir keines liefern kann.
- // Also einfach den Text vom css::util::NumberFormatter in die richtige css::form::component::Form brinden lassen.
+ // Here I can not work with a double, since the field can not provide it to me.
+ // So simply bind the text from the css::util::NumberFormatter to the correct css::form::component::Form.
aText = _rxField->getString();
if (_rxField->wasNull())
return aText;
@@ -1518,16 +1517,16 @@ void DbFormattedField::UpdateFromField(const Reference< css::sdb::XColumn >& _rx
{
FormattedField* pFormattedWindow = static_cast<FormattedField*>(m_pWindow.get());
if (!_rxField.is())
- { // NULL-Wert -> leerer Text
+ { // NULL value -> empty text
m_pWindow->SetText(OUString());
}
else if (m_rColumn.IsNumeric())
{
- // das IsNumeric an der Column sagt nichts aus ueber die Klasse des benutzen Formates, sondern
- // ueber die des an die Column gebundenen Feldes. Wenn man also eine FormattedField-Spalte an
- // ein double-Feld bindet und als Text formatiert, liefert m_rColumn.IsNumeric() sal_True. Das heisst
- // also einfach, dass ich den Inhalt der Variant mittels getDouble abfragen kann, und dann kann
- // ich den Rest (die Formatierung) dem FormattedField ueberlassen.
+ // The IsNumeric at the column says nothing about the class of the used format, but
+ // about the class of the field bound to the column. So when you bind a FormattedField
+ // column to a double field and format it as text, m_rColumn.IsNumeric() returns
+ // sal_True. So that simply means that I can query the contents of the variant using
+ // getDouble, and then I can leave the rest (the formatting) to the FormattedField.
double dValue = getValue( _rxField, m_rColumn.GetParent().getNullDate() );
if (_rxField->wasNull())
m_pWindow->SetText(OUString());
@@ -1536,8 +1535,8 @@ void DbFormattedField::UpdateFromField(const Reference< css::sdb::XColumn >& _rx
}
else
{
- // Hier kann ich nicht mit einem double arbeiten, da das Feld mir keines liefern kann.
- // Also einfach den Text vom css::util::NumberFormatter in die richtige css::form::component::Form brinden lassen.
+ // Here I can not work with a double, since the field can not provide it to me.
+ // So simply bind the text from the css::util::NumberFormatter to the correct css::form::component::Form.
OUString sText( _rxField->getString());
pFormattedWindow->SetTextFormatted( sText );
@@ -1582,7 +1581,7 @@ bool DbFormattedField::commitControl()
{
if (!rField.GetText().isEmpty())
aNewVal <<= rField.GetValue();
- // ein LeerString wird erst mal standardmaessig als void weitergereicht
+ // an empty string is passed on as void by default, to start with
}
else
aNewVal <<= rField.GetTextValue();
@@ -1893,8 +1892,8 @@ void DbNumericField::implAdjustGenericFieldSetting( const Reference< XPropertySe
static_cast< DoubleNumericField* >( m_pPainter.get() )->SetStrictFormat(bStrict);
- // dem Field und dem Painter einen Formatter spendieren
- // zuerst testen, ob ich von dem Service hinter einer Connection bekommen kann
+ // give a formatter to the field and the painter;
+ // test first if I can get from the service behind a connection
Reference< css::util::XNumberFormatsSupplier > xSupplier;
Reference< XRowSet > xForm;
if ( m_rColumn.GetParent().getDataSource() )
@@ -1908,14 +1907,14 @@ void DbNumericField::implAdjustGenericFieldSetting( const Reference< XPropertySe
pFormatterUsed = pImplmentation ? pImplmentation->GetNumberFormatter() : nullptr;
}
if ( nullptr == pFormatterUsed )
- { // der Cursor fuehrte nicht zum Erfolg -> Standard
+ { // the cursor didn't lead to success -> standard
pFormatterUsed = static_cast< DoubleNumericField* >( m_pWindow.get() )->StandardFormatter();
DBG_ASSERT( pFormatterUsed != nullptr, "DbNumericField::implAdjustGenericFieldSetting: no standard formatter given by the numeric field !" );
}
static_cast< DoubleNumericField* >( m_pWindow.get() )->SetFormatter( pFormatterUsed );
static_cast< DoubleNumericField* >( m_pPainter.get() )->SetFormatter( pFormatterUsed );
- // und dann ein Format generieren, dass die gewuenschten Nachkommastellen usw. hat
+ // and then generate a format which has the desired length after the decimal point, etc.
LanguageType aAppLanguage = Application::GetSettings().GetUILanguageTag().getLanguageType();
OUString sFormatString = pFormatterUsed->GenerateFormat(0, aAppLanguage, bThousand, false, nScale);
@@ -2445,7 +2444,7 @@ void DbComboBox::Init( vcl::Window& rParent, const Reference< XRowSet >& xCursor
m_pWindow = VclPtr<ComboBoxControl>::Create( &rParent );
- // selection von rechts nach links
+ // selection from right to left
AllSettings aSettings = m_pWindow->GetSettings();
StyleSettings aStyleSettings = aSettings.GetStyleSettings();
aStyleSettings.SetSelectionOptions(
@@ -3016,7 +3015,7 @@ void DbFilterField::Update()
if (!xTablesNames->hasByName(aTableName))
return;
- // ein Statement aufbauen und abschicken als query
+ // build a statement and send as query;
// Access to the connection
Reference< XStatement > xStatement;
Reference< XResultSet > xListCursor;
@@ -3653,8 +3652,8 @@ void SAL_CALL FmXEditCell::setText( const OUString& aText )
{
m_pEditImplementation->SetText( aText );
- // In JAVA wird auch ein textChanged ausgeloest, in VCL nicht.
- // css::awt::Toolkit soll JAVA-komform sein...
+ // In Java, a textChanged is fired as well; not in VCL.
+ // css::awt::Toolkit must be Java-compliant...
onTextChanged();
}
}
@@ -4095,7 +4094,7 @@ void SAL_CALL FmXListBoxCell::addItems(const css::uno::Sequence<OUString>& aItem
for ( sal_Int32 n = 0; n < aItems.getLength(); n++ )
{
m_pBox->InsertEntry( aItems.getConstArray()[n], nP );
- if ( nPos != -1 ) // Nicht wenn 0xFFFF, weil LIST_APPEND
+ if ( nPos != -1 ) // Not if 0xFFFF, because LIST_APPEND
nP++;
}
}
@@ -4302,7 +4301,7 @@ void FmXListBoxCell::onWindowEvent( const VclEventId _nEventId, const vcl::Windo
aEvent.Source = *this;
aEvent.Highlighted = 0;
- // Bei Mehrfachselektion 0xFFFF, sonst die ID
+ // with multiple selection 0xFFFF, otherwise the ID
aEvent.Selected = (m_pBox->GetSelectEntryCount() == 1 )
? m_pBox->GetSelectEntryPos() : 0xFFFF;
@@ -4502,7 +4501,7 @@ void FmXComboBoxCell::onWindowEvent( const VclEventId _nEventId, const vcl::Wind
aEvent.Source = *this;
aEvent.Highlighted = 0;
- // Bei Mehrfachselektion 0xFFFF, sonst die ID
+ // with multiple selection 0xFFFF, otherwise the ID
aEvent.Selected = ( m_pComboBox->GetSelectEntryCount() == 1 )
? m_pComboBox->GetSelectEntryPos()
: 0xFFFF;
diff --git a/svx/source/fmcomp/gridcols.cxx b/svx/source/fmcomp/gridcols.cxx
index d002874235f3..5f8bab6af218 100644
--- a/svx/source/fmcomp/gridcols.cxx
+++ b/svx/source/fmcomp/gridcols.cxx
@@ -46,7 +46,7 @@ const css::uno::Sequence<OUString>& getColumnTypes()
}
-// Vergleichen von PropertyInfo
+// comparison of PropertyInfo
extern "C" int SAL_CALL NameCompare(const void* pFirst, const void* pSecond)
{
return static_cast<OUString const *>(pFirst)->compareTo(*static_cast<OUString const *>(pSecond));
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 363df1260eda..8b72c13e6f86 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -352,7 +352,7 @@ DbGridControl::NavigationBar::NavigationBar(vcl::Window* pParent)
m_aAbsolute->SetHelpId(HID_GRID_TRAVEL_ABSOLUTE);
m_aRecordCount->SetHelpId(HID_GRID_NUMBEROFRECORDS);
- // Handler fuer Buttons einrichten
+ // set handlers for buttons
m_aFirstBtn->SetClickHdl(LINK(this,NavigationBar,OnClick));
m_aPrevBtn->SetClickHdl(LINK(this,NavigationBar,OnClick));
m_aNextBtn->SetClickHdl(LINK(this,NavigationBar,OnClick));
@@ -1855,7 +1855,7 @@ void DbGridControl::VisibleRowsChanged( long nNewTopRow, sal_uInt16 nLinesOnScre
void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, bool bUpdateCursor)
{
- // Wenn kein Cursor -> keine Rows im Browser.
+ // If no cursor -> no rows in the browser.
if (!m_pSeekCursor)
{
DBG_ASSERT(GetRowCount() == 0,"DbGridControl: ohne Cursor darf es keine Rows geben");
@@ -3424,11 +3424,11 @@ sal_uInt16 DbGridControl::GetColumnIdFromModelPos( sal_uInt16 nPos ) const
DbGridColumn* pCol = m_aColumns[ nPos ];
#if (OSL_DEBUG_LEVEL > 0) || defined DBG_UTIL
- // in der Debug-Version rechnen wir die ModelPos in eine ViewPos um und vergleichen das mit dem Wert,
- // den wir zurueckliefern werden (nId an der entsprechenden Col in m_aColumns)
+ // in the debug version, we convert the ModelPos into a ViewPos and compare this with the
+ // value we will return (nId at the corresponding Col in m_aColumns)
if (!pCol->IsHidden())
- { // macht nur Sinn, wenn die Spalte sichtbar ist
+ { // makes sense only if the column is visible
sal_uInt16 nViewPos = nPos;
for ( size_t i = 0; i < m_aColumns.size() && i < nPos; ++i)
if ( m_aColumns[ i ]->IsHidden())