summaryrefslogtreecommitdiff
path: root/sot/source/base
diff options
context:
space:
mode:
authorJohnny_M <klasse@partyheld.de>2017-07-12 22:41:14 +0200
committerMichael Stahl <mstahl@redhat.com>2017-07-13 14:36:36 +0200
commit0018fd1b81b3c4ec5ee1de092760479aeae7cd96 (patch)
treef79a9568d405a3bb42357bd5a762e5c5fe350630 /sot/source/base
parenta307ad7ae029a0a62404996a63954e7026001ce3 (diff)
Translate German comments/debug strings (leftovers in the sot dir)
Translates leftovers found using a custom regex and manually checking the rest of the affected file. Change-Id: I0e44957d58e089b82738c65a8774d1a45ea7068d Reviewed-on: https://gerrit.libreoffice.org/39879 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sot/source/base')
-rw-r--r--sot/source/base/exchange.cxx33
-rw-r--r--sot/source/base/filelist.cxx4
-rw-r--r--sot/source/base/formats.cxx64
-rw-r--r--sot/source/base/object.cxx11
4 files changed, 53 insertions, 59 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index 286f4c7e49e2..f4a51bff5121 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -37,12 +37,11 @@ using namespace::com::sun::star::uno;
using namespace::com::sun::star::datatransfer;
/*
- In diesen Tabellen stehen alle im Office verwendeten MimeTypes,
- Format-Bezeichner und Types.
- Die Tabelle ist nach den Formatstring-Ids sortiert und jede Id
- ist um genau 1 groesser als ihre Vorgaenger-Id, damit die Id als
- Tabellenindex benutzt werden kann.
-*/
+ * These tables contain all MimeTypes, format identifiers, and types used in
+ * the Office. The table is sorted by the format string ID, and each ID is
+ * exactly 1 greater than its predecessor ID, so that the ID can be used as a
+ * table index.
+ */
struct DataFlavorRepresentation
{
const char* pMimeType;
@@ -251,12 +250,12 @@ static tDataFlavorList& InitFormats_Impl()
|*
|* SotExchange::RegisterFormatName()
|*
-|* Beschreibung CLIP.SDW
+|* Description CLIP.SDW
*************************************************************************/
SotClipboardFormatId SotExchange::RegisterFormatName( const OUString& rName )
{
const DataFlavorRepresentation *pFormatArray_Impl = FormatArray_Impl::get();
- // teste zuerst die Standard - Name
+ // test the default first - name
for( SotClipboardFormatId i = SotClipboardFormatId::STRING; i <= SotClipboardFormatId::FILE_LIST; ++i )
if( rName.equalsAscii( pFormatArray_Impl[ static_cast<int>(i) ].pName ) )
return i;
@@ -270,7 +269,7 @@ SotClipboardFormatId SotExchange::RegisterFormatName( const OUString& rName )
? SotClipboardFormatId::STARCHART_50
: i );
- // dann in der dynamischen Liste
+ // then in the dynamic list
tDataFlavorList& rL = InitFormats_Impl();
for( tDataFlavorList::size_type i = 0; i < rL.size(); i++ )
{
@@ -292,7 +291,7 @@ SotClipboardFormatId SotExchange::RegisterFormatName( const OUString& rName )
SotClipboardFormatId SotExchange::RegisterFormatMimeType( const OUString& rMimeType )
{
const DataFlavorRepresentation *pFormatArray_Impl = FormatArray_Impl::get();
- // teste zuerst die Standard - Name
+ // test the default first - name
for( SotClipboardFormatId i = SotClipboardFormatId::STRING; i <= SotClipboardFormatId::FILE_LIST; ++i )
if( rMimeType.equalsAscii( pFormatArray_Impl[ static_cast<int>(i) ].pMimeType ) )
return i;
@@ -301,7 +300,7 @@ SotClipboardFormatId SotExchange::RegisterFormatMimeType( const OUString& rMimeT
if( rMimeType.equalsAscii( pFormatArray_Impl[ static_cast<int>(i) ].pMimeType ) )
return i;
- // dann in der dynamischen Liste
+ // then in the dynamic list
tDataFlavorList& rL = InitFormats_Impl();
for( tDataFlavorList::size_type i = 0; i < rL.size(); i++ )
{
@@ -324,7 +323,7 @@ SotClipboardFormatId SotExchange::RegisterFormatMimeType( const OUString& rMimeT
|*
|* SotExchange::RegisterFormatName()
|*
-|* Beschreibung CLIP.SDW
+|* Description CLIP.SDW
*************************************************************************/
SotClipboardFormatId SotExchange::RegisterFormat( const DataFlavor& rFlavor )
{
@@ -430,7 +429,7 @@ SotClipboardFormatId SotExchange::GetFormatIdFromMimeType( const OUString& rMime
? SotClipboardFormatId::STARCHART_50
: i );
- // dann in der dynamischen Liste
+ // then in the dynamic list
tDataFlavorList& rL = InitFormats_Impl();
for( tDataFlavorList::size_type i = 0; i < rL.size(); i++ )
@@ -447,11 +446,11 @@ SotClipboardFormatId SotExchange::GetFormatIdFromMimeType( const OUString& rMime
|*
|* SotExchange::GetFormatName()
|*
-|* Beschreibung CLIP.SDW
+|* Description CLIP.SDW
*************************************************************************/
SotClipboardFormatId SotExchange::GetFormat( const DataFlavor& rFlavor )
{
- // teste zuerst die Standard - Name
+ // test the default first - name
const OUString& rMimeType = rFlavor.MimeType;
const DataFlavorRepresentation *pFormatArray_Impl = FormatArray_Impl::get();
@@ -468,7 +467,7 @@ SotClipboardFormatId SotExchange::GetFormat( const DataFlavor& rFlavor )
? SotClipboardFormatId::STARCHART_50
: i );
- // dann in der dynamischen Liste
+ // then in the dynamic list
tDataFlavorList& rL = InitFormats_Impl();
for( tDataFlavorList::size_type i = 0; i < rL.size(); i++ )
{
@@ -484,7 +483,7 @@ SotClipboardFormatId SotExchange::GetFormat( const DataFlavor& rFlavor )
|*
|* SotExchange::GetFormatName()
|*
-|* Beschreibung CLIP.SDW
+|* Description CLIP.SDW
*************************************************************************/
OUString SotExchange::GetFormatName( SotClipboardFormatId nFormat )
{
diff --git a/sot/source/base/filelist.cxx b/sot/source/base/filelist.cxx
index f6dd5d589ed3..07558b17f0ae 100644
--- a/sot/source/base/filelist.cxx
+++ b/sot/source/base/filelist.cxx
@@ -25,7 +25,7 @@
/******************************************************************************
|*
-|* Stream-Operatoren
+|* Stream operators
|*
\******************************************************************************/
@@ -65,7 +65,7 @@ SvStream& ReadFileList( SvStream& rIStm, FileList& rFileList )
/******************************************************************************
|*
-|* Liste fuellen/abfragen
+|* Fill in / check the list
|*
\******************************************************************************/
diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx
index b2fde5323c06..522063972782 100644
--- a/sot/source/base/formats.cxx
+++ b/sot/source/base/formats.cxx
@@ -51,15 +51,15 @@ struct SotAction_Impl
#define FILEGRPDSC_ONLY_URL 1
/*
- Fuer jedes Ziel existiert in der Tabelle genau ein SotDestinationEntry_Impl.
- Dieser Eintrag enthaelt u.a. fuer jedes vom Ziel auswertbare Format eine
- Default-Action. Die Default-Aktionen verweisen fuer jedes Format auf
- die auszuwertende Tabelle, d.h. sie enthalten nur EXCHG_IN_ACTION_MOVE,
- EXCHG_IN_ACTION_COPY oder EXCHG_IN_ACTION_LINK. Entsprechend dieser Aktion
- ist dann aMoveActions, aCopyActions oder aLinkActions auszuwerten.
- Die Aktionen sind nach Prioritaet sortiert, d.h. je "wichtiger" das
- Format ist, desto eher erscheint es in der Liste.
-*/
+ * For each target there is exactly one SotDestinationEntry_Impl in the table.
+ * This entry contains, among other things, a default action for each format
+ * that can be evaluated by the target. The default actions refer to the table
+ * to be evaluated for each format, i.e., they contain only EXCHG_IN_ACTION_MOVE,
+ * EXCHG_IN_ACTION_COPY, or EXCHG_IN_ACTION_LINK. Corresponding to this action,
+ * aMoveActions, aCopyActions, or aLinkActions is then evaluated. The actions
+ * are sorted by priority, i.e., the "more important" is the format, the sooner
+ * it appears in the list.
+ */
struct SotDestinationEntry_Impl
{
@@ -73,19 +73,16 @@ struct SotDestinationEntry_Impl
namespace
{
/*
- Ueber diese Tabelle erfolgt die Zuordnung von Destination, vorhandenen
- Datenformaten sowie gewuenschter Aktion zu einer Aktion und dem in
- ihr zu benutzenden Datenformat. Die Tabelle ist nach den Exchange-Zielen
- (EXCHG_DEST_*) sortiert. Innerhalb des Zieleintrages befinden sich genau
- vier Tabellen fuer Default-, Move-, Copy- und Linkaktionen. Ueber
- die Default-Tabelle erfolgt das Mapping zwischen Default-Aktion
- (DropEvent::IsDefaultAction()) und daraus resultierender wirklicher
- Aktion. Diese Tabelle enthaelt deshalb nur die Aktionen
- EXCHG_IN_ACTION_COPY, EXCHG_IN_ACTION_MOVE und EXCHG_IN_ACTION_LINK,
- die auf die spezielle Tabelle verweisen. Die uebrigen Tabellen
- koennen beliebige Aktionen enthalten. Jede Tabelle ist nach der
- Format-Prioritaet sortiert. Eintrag Null hat die hoechste Prioritaet.
-*/
+ * Via this table, the destination, existing data formats and the desired action
+ * are assigned to an action and the data format to be used in it. The table is
+ * sorted by the Exchange destinations (EXCHG_DEST_*). Within the goal entry are
+ * exactly four tables for default, move, copy and link actions. The mapping
+ * between default action (DropEvent::IsDefaultAction()) and the resulting real
+ * action is done via the default table. This table therefore contains only the
+ * EXCHG_IN_ACTION_COPY, EXCHG_IN_ACTION_MOVE, and EXCHG_IN_ACTION_LINK actions
+ * that point to the specific table. The other tables can contain any actions.
+ * Each table is sorted by format priority. Entry zero has the highest priority.
+ */
SotAction_Impl const aEmptyArr[] =
{
@@ -1489,7 +1486,7 @@ sal_uInt8 SotExchange::GetExchangeAction( const DataFlavorExVector& rDataFlavorE
{
rFormat = SotClipboardFormatId::STRING;
- //Todo: Binaere Suche einbauen
+ //Todo: incorporate a binary search
const SotDestinationEntry_Impl* pEntry = aDestinationArray;
while( static_cast<SotExchangeDest>(0xffff) != pEntry->nDestination )
{
@@ -1505,24 +1502,23 @@ sal_uInt8 SotExchange::GetExchangeAction( const DataFlavorExVector& rDataFlavorE
rFormat = SotClipboardFormatId::NONE;
- /* Behandlung der Default-Action nach folgender Vorgehensweise:
-
- - Das Ziel wird nach der Default-Action gefragt
- - Unterstuetzt die Quelle diese Aktion so wird sie uebernommen
- - Anderenfalls wird aus den von der Quelle zur Verfuegung gestellten
- Aktionen eine ausgewaehlt, die zu einer moeglichst nicht leeren
- Ergebnisaktion fuehrt. Hierbei wird in dieser Reihenfolge
- vorgegangen: Copy -> Link -> Move
- */
+ /* Handling the default action using the following procedure:
+ *
+ * - The target is asked for the default action
+ * - If the source supports this action, it is taken over
+ * - Otherwise, from the actions made available by the source, one leading
+ * to a most likely non-empty result action is selected. This is done in
+ * the following order: Copy -> Link -> Move
+ */
if( nUserAction == EXCHG_IN_ACTION_DEFAULT )
{
nUserAction = GetTransferableAction_Impl(
rDataFlavorExVector, pEntry->aDefaultActions,
rFormat, nOnlyTestFormat, pxTransferable, pActionFlags );
- // Unterstuetzt die Quelle die Aktion?
+ // Does the source support the action?
if( !(nUserAction & nSourceOptions ))
{
- // Nein -> Alle Aktionen der Quelle checken
+ // No -> Check all actions of the source
rDefaultAction = (EXCHG_IN_ACTION_COPY & nSourceOptions);
if( rDefaultAction )
{
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index 5db6665aef00..a33e16f7c281 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -33,13 +33,12 @@ void SotObject::OwnerLock
(
bool bLock /* true, lock. false, unlock. */
)
-/* [Beschreibung]
+/* [Description]
- Wenn der OwnerLock auf Null dekrementiert, dann wird die Methode
- DoClose gerufen. Dies geschieht unabh"angig vom Lock. bzw. RefCount.
- Ist der OwnerLock-Z"ahler != Null, dann wird kein DoClose durch
- <SotObject::FuzzyLock> gerufen.
-*/
+ * When the OwnerLock is decremented to zero, the DoClose method is called.
+ * This happens independently of the lock or RefCount. If the OwnerLock
+ * counter != zero, no DoClose is called by <SotObject::FuzzyLock>.
+ */
{
if( bLock )
{