You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pe...@apache.org on 2017/09/23 08:01:29 UTC
svn commit: r1809373 - in /openoffice/trunk/main: sc/inc/dociter.hxx
sc/source/core/data/dociter.cxx sfx2/source/doc/objxtor.cxx
Author: petko
Date: Sat Sep 23 08:01:29 2017
New Revision: 1809373
URL: http://svn.apache.org/viewvc?rev=1809373&view=rev
Log: (empty)
Modified:
openoffice/trunk/main/sc/inc/dociter.hxx
openoffice/trunk/main/sc/source/core/data/dociter.cxx
openoffice/trunk/main/sfx2/source/doc/objxtor.cxx
Modified: openoffice/trunk/main/sc/inc/dociter.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/inc/dociter.hxx?rev=1809373&r1=1809372&r2=1809373&view=diff
==============================================================================
--- openoffice/trunk/main/sc/inc/dociter.hxx (original)
+++ openoffice/trunk/main/sc/inc/dociter.hxx Sat Sep 23 08:01:29 2017
@@ -41,7 +41,7 @@ class ScAttrArray;
class ScAttrIterator;
class ScRange;
-class ScDocumentIterator // alle nichtleeren Zellen durchgehen
+class ScDocumentIterator // run through all non empty cells
{
private:
ScDocument* pDoc;
@@ -75,13 +75,13 @@ public:
void GetPos( SCCOL& rCol, SCROW& rRow, SCTAB& rTab );
};
-class ScValueIterator // alle Zahlenwerte in einem Bereich durchgehen
+class ScValueIterator // run through all numbers in one area
{
private:
double fNextValue;
ScDocument* pDoc;
const ScAttrArray* pAttrArray;
- sal_uLong nNumFormat; // fuer CalcAsShown
+ sal_uLong nNumFormat; // for CalcAsShown
sal_uLong nNumFmtIndex;
SCCOL nStartCol;
SCROW nStartRow;
@@ -214,9 +214,9 @@ public:
// ============================================================================
-class ScCellIterator // alle Zellen in einem Bereich durchgehen
-{ // bei SubTotal aber keine ausgeblendeten und
-private: // SubTotalZeilen
+class ScCellIterator // run through all cell in one Area
+{ // at SubTotal, skip hidden and
+private: // SubTotal line
ScDocument* pDoc;
SCCOL nStartCol;
SCROW nStartRow;
@@ -246,8 +246,8 @@ public:
ScAddress GetPos() const { return ScAddress( nCol, nRow, nTab ); }
};
-class ScQueryCellIterator // alle nichtleeren Zellen in einem Bereich
-{ // durchgehen
+class ScQueryCellIterator // run through all not empty cells in an area
+{
enum StopOnMismatchBits
{
nStopOnMismatchDisabled = 0x00,
@@ -295,15 +295,15 @@ private:
public:
ScQueryCellIterator(ScDocument* pDocument, SCTAB nTable,
const ScQueryParam& aParam, sal_Bool bMod = sal_True);
- // fuer bMod = sal_False muss der QueryParam
- // weiter aufgefuellt sein (bIsString)
+ // for bMod = sal_False has to be QueryParam be filled
+ // (bIsString)
ScBaseCell* GetFirst();
ScBaseCell* GetNext();
SCCOL GetCol() { return nCol; }
SCROW GetRow() { return nRow; }
- // setzt alle Entry.nField einen weiter, wenn Spalte
- // wechselt, fuer ScInterpreter ScHLookup()
+ // move Entry.nField by one, if row
+ // changes, for ScInterpreter ScHLookup()
void SetAdvanceQueryParamEntryField( sal_Bool bVal )
{ bAdvanceQuery = bVal; }
void AdvanceQueryParamEntryField();
@@ -372,7 +372,7 @@ public:
sal_Bool bIgnoreMismatchOnLeadingStrings = sal_True );
};
-class ScDocAttrIterator // alle Attribut-Bereiche
+class ScDocAttrIterator // all Attribut-Areas
{
private:
ScDocument* pDoc;
@@ -391,7 +391,7 @@ public:
const ScPatternAttr* GetNext( SCCOL& rCol, SCROW& rRow1, SCROW& rRow2 );
};
-class ScAttrRectIterator // alle Attribut-Bereiche, auch Bereiche ueber mehrere Spalten
+class ScAttrRectIterator // all Attribute-Areas, including Areas containing multiple rows
{
private:
ScDocument* pDoc;
@@ -412,8 +412,8 @@ public:
const ScPatternAttr* GetNext( SCCOL& rCol1, SCCOL& rCol2, SCROW& rRow1, SCROW& rRow2 );
};
-class ScHorizontalCellIterator // alle nichtleeren Zellen in einem Bereich
-{ // zeilenweise durchgehen
+class ScHorizontalCellIterator // run through all not empty cells, line by line
+{
private:
ScDocument* pDoc;
SCTAB nTab;
@@ -476,7 +476,7 @@ public:
//
-// gibt alle Bereiche mit nicht-Default-Formatierung zurueck (horizontal)
+// returns all areas that do not have a Default-Formating (horizontal)
//
class ScHorizontalAttrIterator
@@ -505,7 +505,7 @@ public:
};
//
-// gibt nichtleere Zellen und Bereiche mit Formatierung zurueck (horizontal)
+// returns all non empty cells and areas with formating (horizontal)
//
class SC_DLLPUBLIC ScUsedAreaIterator
@@ -525,7 +525,7 @@ private:
SCROW nAttrRow;
const ScPatternAttr* pPattern;
- SCCOL nFoundStartCol; // Ergebnisse nach GetNext
+ SCCOL nFoundStartCol; // results after GetNext
SCCOL nFoundEndCol;
SCROW nFoundRow;
const ScPatternAttr* pFoundPattern;
Modified: openoffice/trunk/main/sc/source/core/data/dociter.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/core/data/dociter.cxx?rev=1809373&r1=1809372&r2=1809373&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/core/data/dociter.cxx (original)
+++ openoffice/trunk/main/sc/source/core/data/dociter.cxx Sat Sep 23 08:01:29 2017
@@ -302,9 +302,9 @@ ScValueIterator::ScValueIterator( ScDocu
nRow = nStartRow;
nTab = nStartTab;
- nColRow = 0; // wird bei GetFirst initialisiert
+ nColRow = 0; // initialized with GetFirst
- nNumFormat = 0; // werden bei GetNumberFormat initialisiert
+ nNumFormat = 0; // initialized with GetNumberFormat
pAttrArray = 0;
nAttrEndRow = 0;
}
@@ -328,7 +328,7 @@ sal_Bool ScValueIterator::GetThis(double
{
// rValue = 0.0; //! do not change caller's value!
rErr = 0;
- return sal_False; // Ende und Aus
+ return sal_False; // Fine
}
}
pCol = &(pDoc->pTab[nTab])->aCol[nCol];
@@ -361,8 +361,8 @@ sal_Bool ScValueIterator::GetThis(double
rValue = pDoc->RoundValueAsShown( rValue, nNumFormat );
}
//
- // wenn in der selben Spalte gleich noch eine Value-Cell folgt, die
- // auch noch im Block liegt, den Wert jetzt schon holen
+ // if the same row another value cell follows and belongs to the same block
+ // read the value too.
//
if ( nColRow < pCol->nCount &&
pCol->pItems[nColRow].nRow <= nEndRow &&
@@ -380,7 +380,7 @@ sal_Bool ScValueIterator::GetThis(double
}
}
- return sal_True; // gefunden
+ return sal_True; // found
}
// break;
case CELLTYPE_FORMULA:
@@ -393,7 +393,7 @@ sal_Bool ScValueIterator::GetThis(double
rValue = ((ScFormulaCell*)pCell)->GetValue();
nRow--;
bNumValid = sal_False;
- return sal_True; // gefunden
+ return sal_True; // found
}
else if ( bTextAsZero )
{
@@ -428,7 +428,7 @@ sal_Bool ScValueIterator::GetThis(double
}
}
else
- nRow = nEndRow + 1; // naechste Spalte
+ nRow = nEndRow + 1; // next row
}
}
@@ -475,14 +475,14 @@ sal_Bool ScValueIterator::GetFirst(doubl
ScColumn* pCol = &(pDoc->pTab[nTab])->aCol[nCol];
pCol->Search( nRow, nColRow );
- nNumFormat = 0; // werden bei GetNumberFormat initialisiert
+ nNumFormat = 0; // initialized with GetNumberFormat
pAttrArray = 0;
nAttrEndRow = 0;
return GetThis(rValue, rErr);
}
-/* ist inline:
+/* is inline:
sal_Bool ScValueIterator::GetNext(double& rValue, sal_uInt16& rErr)
{
++nRow;
@@ -544,7 +544,7 @@ ScDBQueryDataIterator::DataAccessInterna
nRow = mpParam->nRow1;
nTab = mpParam->nTab;
- nColRow = 0; // wird bei GetFirst initialisiert
+ nColRow = 0; // initialized with GetFirst
SCSIZE i;
SCSIZE nCount = mpParam->GetEntryCount();
for (i=0; (i<nCount) && (mpParam->GetEntry(i).bDoQuery); i++)
@@ -554,7 +554,7 @@ ScDBQueryDataIterator::DataAccessInterna
rEntry.bQueryByString =
!(mpDoc->GetFormatTable()->IsNumberFormat(*rEntry.pStr, nIndex, rEntry.nVal));
}
- nNumFormat = 0; // werden bei GetNumberFormat initialisiert
+ nNumFormat = 0; // Initialized with GetNumberFormat
pAttrArray = 0;
nAttrEndRow = 0;
}
@@ -610,7 +610,7 @@ bool ScDBQueryDataIterator::DataAccessIn
nNumFmtType = NUMBERFORMAT_NUMBER;
nNumFmtIndex = 0;
rValue.mnError = 0;
- return sal_True; // gefunden
+ return sal_True; // found
}
// break;
case CELLTYPE_FORMULA:
@@ -623,7 +623,7 @@ bool ScDBQueryDataIterator::DataAccessIn
nNumFmtIndex, ScAddress( nCol, nRow, nTab ),
pCell );
rValue.mnError = ((ScFormulaCell*)pCell)->GetErrCode();
- return sal_True; // gefunden
+ return sal_True; // found
}
else
{
@@ -661,7 +661,7 @@ bool ScDBQueryDataIterator::DataAccessIn
nRow++;
}
else
- nRow = mpParam->nRow2 + 1; // Naechste Spalte
+ nRow = mpParam->nRow2 + 1; // next Row
}
// statement unreachable
// return false;
@@ -985,21 +985,21 @@ ScCellIterator::ScCellIterator( ScDocume
if (!ValidTab(nEndTab)) nEndTab = MAXTAB;
while (nEndTab>0 && !pDoc->pTab[nEndTab])
- --nEndTab; // nur benutzte Tabellen
+ --nEndTab; // only used tables
if (nStartTab>nEndTab)
nStartTab = nEndTab;
nCol = nStartCol;
nRow = nStartRow;
nTab = nStartTab;
- nColRow = 0; // wird bei GetFirst initialisiert
+ nColRow = 0; // initialized with GetFirst
if (!pDoc->pTab[nTab])
{
DBG_ERROR("Tabelle nicht gefunden");
nStartCol = nCol = MAXCOL+1;
nStartRow = nRow = MAXROW+1;
- nStartTab = nTab = MAXTAB+1; // -> Abbruch bei GetFirst
+ nStartTab = nTab = MAXTAB+1; // -> cancel with GetFirst
}
}
@@ -1027,21 +1027,21 @@ ScCellIterator::ScCellIterator
if (!ValidTab(nEndTab)) nEndTab = MAXTAB;
while (nEndTab>0 && !pDoc->pTab[nEndTab])
- --nEndTab; // nur benutzte Tabellen
+ --nEndTab; // only used tables
if (nStartTab>nEndTab)
nStartTab = nEndTab;
nCol = nStartCol;
nRow = nStartRow;
nTab = nStartTab;
- nColRow = 0; // wird bei GetFirst initialisiert
+ nColRow = 0; // initialized with GetFirst
if (!pDoc->pTab[nTab])
{
DBG_ERROR("Tabelle nicht gefunden");
nStartCol = nCol = MAXCOL+1;
nStartRow = nRow = MAXROW+1;
- nStartTab = nTab = MAXTAB+1; // -> Abbruch bei GetFirst
+ nStartTab = nTab = MAXTAB+1; // -> cancel at GetFirst
}
}
@@ -1061,7 +1061,7 @@ ScBaseCell* ScCellIterator::GetThis()
nCol = nStartCol;
nTab++;
if ( nTab > nEndTab )
- return NULL; // Ende und Aus
+ return NULL; // Fine
}
pCol = &(pDoc->pTab[nTab])->aCol[nCol];
} while ( pCol->nCount == 0 );
@@ -1080,15 +1080,15 @@ ScBaseCell* ScCellIterator::GetThis()
if ( bSubTotal && pCell->GetCellType() == CELLTYPE_FORMULA
&& ((ScFormulaCell*)pCell)->IsSubTotal() )
- nRow++; // Sub-Total-Zeilen nicht
+ nRow++; // Sub-Total-rows not found
else
- return pCell; // gefunden
+ return pCell; // Sub-Total-rows found
}
else
nRow++;
}
else
- nRow = nEndRow + 1; // Naechste Spalte
+ nRow = nEndRow + 1; // next row
}
}
@@ -1125,9 +1125,9 @@ ScQueryCellIterator::ScQueryCellIterator
{
nCol = aParam.nCol1;
nRow = aParam.nRow1;
- nColRow = 0; // wird bei GetFirst initialisiert
+ nColRow = 0; // initialized with GetFirst
SCSIZE i;
- if (bMod) // sonst schon eingetragen
+ if (bMod) // recorded otherwise
{
for (i=0; (i<MAXQUERY) && (aParam.GetEntry(i).bDoQuery); i++)
{
@@ -1138,7 +1138,7 @@ ScQueryCellIterator::ScQueryCellIterator
nIndex, rEntry.nVal));
}
}
- nNumFormat = 0; // werden bei GetNumberFormat initialisiert
+ nNumFormat = 0; // initialized with GetNumberFormat
pAttrArray = 0;
nAttrEndRow = 0;
}
@@ -1164,7 +1164,7 @@ ScBaseCell* ScQueryCellIterator::GetThis
do
{
if ( ++nCol > aParam.nCol2 )
- return NULL; // Ende und Aus
+ return NULL; // fine
if ( bAdvanceQuery )
{
AdvanceQueryParamEntryField();
@@ -1235,7 +1235,7 @@ ScBaseCell* ScQueryCellIterator::GetThis
}
}
else
- nRow = aParam.nRow2 + 1; // Naechste Spalte
+ nRow = aParam.nRow2 + 1; // next row
bFirstStringIgnore = false;
}
}
@@ -1719,7 +1719,7 @@ void ScHorizontalCellIterator::SetTab( S
}
else
{
- pNextRows[i-nStartCol] = MAXROWCOUNT; // nichts gefunden
+ pNextRows[i-nStartCol] = MAXROWCOUNT; // nothing found
pNextIndices[i-nStartCol] = MAXROWCOUNT;
}
}
@@ -1746,7 +1746,7 @@ ScBaseCell* ScHorizontalCellIterator::Ge
}
else
{
- pNextRows[nCol-nStartCol] = MAXROWCOUNT; // nichts gefunden
+ pNextRows[nCol-nStartCol] = MAXROWCOUNT; // nothing found
pNextIndices[nCol-nStartCol] = MAXROWCOUNT;
}
@@ -1958,7 +1958,7 @@ ScHorizontalAttrIterator::ScHorizontalAt
nEndCol( nCol2 ),
nEndRow( nRow2 )
{
- DBG_ASSERT( pDoc->pTab[nTab], "Tabelle nicht da" );
+ DBG_ASSERT( pDoc->pTab[nTab], "Table missing" );
SCCOL i;
@@ -1987,10 +1987,10 @@ ScHorizontalAttrIterator::ScHorizontalAt
{
pPattern = NULL;
if ( nThisEnd < nSkipTo )
- nSkipTo = nThisEnd; // nSkipTo kann gleich hier gesetzt werden
+ nSkipTo = nThisEnd; // nSkipTo can setted equal in this location
}
else
- bEmpty = sal_False; // Attribute gefunden
+ bEmpty = sal_False; // Attribute found
pIndices[nPos] = nIndex;
pNextEnd[nPos] = nThisEnd;
@@ -1998,7 +1998,7 @@ ScHorizontalAttrIterator::ScHorizontalAt
}
if (bEmpty)
- nRow = nSkipTo; // bis zum naechsten Bereichsende ueberspringen
+ nRow = nSkipTo; // jump to next area end
bRowEmpty = bEmpty;
}
@@ -2015,7 +2015,7 @@ const ScPatternAttr* ScHorizontalAttrIte
{
if (!bRowEmpty)
{
- // in dieser Zeile suchen
+ // search in this line
while ( nCol <= nEndCol && !ppPatterns[nCol-nStartCol] )
++nCol;
@@ -2028,16 +2028,16 @@ const ScPatternAttr* ScHorizontalAttrIte
while ( nCol < nEndCol && ppPatterns[nCol+1-nStartCol] == pPat )
++nCol;
rCol2 = nCol;
- ++nCol; // hochzaehlen fuer naechsten Aufruf
- return pPat; // gefunden
+ ++nCol; // count up for next call
+ return pPat; // found
}
}
- // naechste Zeile
+ // next row
++nRow;
- if ( nRow > nEndRow ) // schon am Ende?
- return NULL; // nichts gefunden
+ if ( nRow > nEndRow ) // already done?
+ return NULL; // nothing found
sal_Bool bEmpty = sal_True;
SCCOL i;
@@ -2057,35 +2057,35 @@ const ScPatternAttr* ScHorizontalAttrIte
if ( IsDefaultItem( pPattern ) )
pPattern = NULL;
else
- bEmpty = sal_False; // Attribute gefunden
+ bEmpty = sal_False; // found Attribute
pNextEnd[nPos] = nThisEnd;
ppPatterns[nPos] = pPattern;
- DBG_ASSERT( pNextEnd[nPos] >= nRow, "Reihenfolge durcheinander" );
+ DBG_ASSERT( pNextEnd[nPos] >= nRow, "not sorted" );
}
else
{
- DBG_ERROR("AttrArray reicht nicht bis MAXROW");
+ DBG_ERROR("AttrArray does not reacht to MAXROW");
pNextEnd[nPos] = MAXROW;
ppPatterns[nPos] = NULL;
}
}
else if ( ppPatterns[nPos] )
- bEmpty = sal_False; // Bereich noch nicht zuende
+ bEmpty = sal_False; // Area not finished
}
if (bEmpty)
{
SCCOL nCount = nEndCol-nStartCol+1;
- SCROW nSkipTo = pNextEnd[0]; // naechstes Bereichsende suchen
+ SCROW nSkipTo = pNextEnd[0]; // search next sector
for (i=1; i<nCount; i++)
if ( pNextEnd[i] < nSkipTo )
nSkipTo = pNextEnd[i];
- nRow = nSkipTo; // leere Zeilen ueberspringen
+ nRow = nSkipTo; // skip empty lines
}
bRowEmpty = bEmpty;
- nCol = nStartCol; // wieder links anfangen
+ nCol = nStartCol; // start again left
}
// return NULL;
@@ -2115,7 +2115,7 @@ ScUsedAreaIterator::~ScUsedAreaIterator(
sal_Bool ScUsedAreaIterator::GetNext()
{
- // Iteratoren weiterzaehlen
+ // count Iterators
if ( pCell && IsGreater( nNextCol, nNextRow, nCellCol, nCellRow ) )
pCell = aCellIter.GetNext( nCellCol, nCellRow );
@@ -2129,7 +2129,7 @@ sal_Bool ScUsedAreaIterator::GetNext()
if ( pPattern && nAttrRow == nNextRow && nAttrCol1 < nNextCol )
nAttrCol1 = nNextCol;
- // naechsten Abschnitt heraussuchen
+ // get next sector
sal_Bool bFound = sal_True;
sal_Bool bUseCell = sal_False;
@@ -2142,26 +2142,26 @@ sal_Bool ScUsedAreaIterator::GetNext()
pFoundPattern = pPattern;
nFoundRow = nAttrRow;
nFoundStartCol = nAttrCol1;
- if ( nCellRow == nAttrRow && nCellCol <= nAttrCol2 ) // auch Zelle im Bereich ?
- nFoundEndCol = nCellCol - 1; // nur bis vor der Zelle
+ if ( nCellRow == nAttrRow && nCellCol <= nAttrCol2 ) // is cell in area ?
+ nFoundEndCol = nCellCol - 1; // only until cell
else
- nFoundEndCol = nAttrCol2; // alles
+ nFoundEndCol = nAttrCol2; // all
}
else
{
bUseCell = sal_True;
- if ( nAttrRow == nCellRow && nAttrCol1 == nCellCol ) // Attribute auf der Zelle ?
+ if ( nAttrRow == nCellRow && nAttrCol1 == nCellCol ) // Attribute set on cell ?
pFoundPattern = pPattern;
else
pFoundPattern = NULL;
}
}
- else if ( pCell ) // nur Zelle -> direkt uebernehmen
+ else if ( pCell ) // only cell -> direct select
{
pFoundPattern = NULL;
- bUseCell = sal_True; // Position von Zelle
+ bUseCell = sal_True; // Position of cell
}
- else if ( pPattern ) // nur Attribute -> direkt uebernehmen
+ else if ( pPattern ) // only Attribute -> direct select
{
pFoundCell = NULL;
pFoundPattern = pPattern;
@@ -2169,10 +2169,10 @@ sal_Bool ScUsedAreaIterator::GetNext()
nFoundStartCol = nAttrCol1;
nFoundEndCol = nAttrCol2;
}
- else // gar nichts
+ else // nothing
bFound = sal_False;
- if ( bUseCell ) // Position von Zelle
+ if ( bUseCell ) // Position of cell
{
pFoundCell = pCell;
nFoundRow = nCellRow;
@@ -2229,7 +2229,7 @@ const ScPatternAttr* ScDocAttrIterator::
else
pColIter = NULL;
}
- return NULL; // is nix mehr
+ return NULL; // is nothing anymore
}
//-------------------------------------------------------------------------------
@@ -2299,7 +2299,7 @@ const ScPatternAttr* ScAttrRectIterator:
else
pColIter = NULL;
}
- return NULL; // is nix mehr
+ return NULL; // is nothing anymore
}
// ============================================================================
Modified: openoffice/trunk/main/sfx2/source/doc/objxtor.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/doc/objxtor.cxx?rev=1809373&r1=1809372&r2=1809373&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/doc/objxtor.cxx (original)
+++ openoffice/trunk/main/sfx2/source/doc/objxtor.cxx Sat Sep 23 08:01:29 2017
@@ -205,6 +205,7 @@ void SAL_CALL SfxModelListener_Impl::dis
if ( !mpDoc->Get_Impl()->bClosing )
// GCC stuerzt ab, wenn schon im dtor, also vorher Flag abfragen
+ // check flag before entering dtor in order to avoid crash of GCC
mpDoc->DoClose();
}
@@ -315,30 +316,27 @@ SfxObjectShell::SfxObjectShell( const sa
SfxObjectShell::SfxObjectShell
(
- SfxObjectCreateMode eMode /* Zweck, zu dem die SfxObjectShell
- erzeugt wird:
+ SfxObjectCreateMode eMode /* purpose to generate SfxObjectShel:
SFX_CREATE_MODE_EMBEDDED (default)
- als SO-Server aus einem anderen
- Dokument heraus
+ as SO-Server from a different document
SFX_CREATE_MODE_STANDARD,
- als normales, selbst"aendig ge"offnetes
- Dokument
+ as normal, self opening document
SFX_CREATE_MODE_PREVIEW
- um ein Preview durchzuf"uhren,
- ggf. werden weniger Daten ben"otigt
+ in order to create a preview, possible
+ less data is needed
SFX_CREATE_MODE_ORGANIZER
- um im Organizer dargestellt zu
- werden, hier werden keine Inhalte
- ben"otigt */
+ as a representation in an Organiser
+ no data needed
+ */
)
/* [Description]
- Konstruktor der Klasse SfxObjectShell.
+ class constructor SfxObjectShell.
*/
: pImp( new SfxObjectShell_Impl( *this ) ),
@@ -361,9 +359,8 @@ SfxObjectShell::~SfxObjectShell()
if ( IsEnableSetModified() )
EnableSetModified( sal_False );
- // Niemals GetInPlaceObject() aufrufen, der Zugriff auf den
- // Ableitungszweig SfxInternObject ist wegen eines Compiler Bugs nicht
- // erlaubt
+ // do not call GetInPlaceObject(). Access to the inheritage path of SfxInternObject
+ // is not allowed because of a bug in the compiler
SfxObjectShell::Close();
pImp->pBaseModel.set( NULL );
@@ -435,7 +432,7 @@ void SfxObjectShell::ViewAssigned()
/* [Description]
- Diese Methode wird gerufen, wenn eine View zugewiesen wird.
+ This module is called, when a view is assigned
*/
{
@@ -450,7 +447,7 @@ sal_Bool SfxObjectShell::Close()
SfxObjectShellRef aRef(this);
if ( !pImp->bClosing )
{
- // falls noch ein Progress l"auft, nicht schlie\sen
+ // if a process is still running -> dont close
if ( !pImp->bDisposing && GetProgress() )
return sal_False;
@@ -471,7 +468,7 @@ sal_Bool SfxObjectShell::Close()
if ( pImp->bClosing )
{
- // aus Document-Liste austragen
+ // remove from Document-List
SfxApplication *pSfxApp = SFX_APP();
SfxObjectShellArr_Impl &rDocs = pSfxApp->GetObjectShells_Impl();
const SfxObjectShell *pThis = this;
@@ -610,20 +607,20 @@ sal_uInt16 SfxObjectShell::PrepareClose
return sal_True;
}
- // ggf. nachfragen, ob gespeichert werden soll
- // nur fuer in sichtbaren Fenstern dargestellte Dokumente fragen
+ // if applicable ask if save should be executed
+ // ask only for visible documents
SfxViewFrame *pFrame = SfxObjectShell::Current() == this
? SfxViewFrame::Current() : SfxViewFrame::GetFirst( this );
sal_Bool bClose = sal_False;
if ( bUI && IsModified() && pFrame )
{
- // minimierte restoren
+ //restore minimized
SfxFrame& rTop = pFrame->GetTopFrame();
SfxViewFrame::SetViewFrame( rTop.GetCurrentViewFrame() );
pFrame->GetFrame().Appear();
- // fragen, ob gespeichert werden soll
+ // ask for save
short nRet = RET_YES;
//TODO/CLEANUP
//do we still need UI=2 ?
@@ -644,7 +641,7 @@ sal_uInt16 SfxObjectShell::PrepareClose
if ( RET_YES == nRet )
{
- // per Dispatcher speichern
+ // save by Dispatcher
const SfxPoolItem *pPoolItem;
if ( IsSaveVersionOnClose() )
{
@@ -674,7 +671,7 @@ sal_uInt16 SfxObjectShell::PrepareClose
}
else
{
- // Bei Nein nicht noch Informationlost
+ // At No selection don't loose information
bClose = sal_True;
}
}
@@ -825,13 +822,13 @@ void SfxObjectShell::InitBasicManager_Im
[Note]
- Diese Methode mu"s aus den "Uberladungen von <SvPersist::Load()> (mit
- dem pStor aus dem Parameter von Load()) sowie aus der "Uberladung
- von <SvPersist::InitNew()> (mit pStor = 0) gerufen werden.
+ This method must be called with overloaded
+ <SvPersist::Load()> (with pStor from Parameter from Load())
+ and <SvPersist::InitNew()> (with pStor = 0)
*/
{
- /* #163556# (DR) - Handling of recursive calls while creating the Bacic
+ /* #163556# (DR) - Handling of recursive calls while creating the Bacic (shouldn't that be Basic?)
manager.
It is possible that (while creating the Basic manager) the code that