#i9835# preserve excel window protected state

This commit is contained in:
John Marmion 2002-12-10 13:07:24 +00:00
parent 667506d32f
commit 4e1a6668ea
6 changed files with 29 additions and 13 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: scextopt.hxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: dr $ $Date: 2001-06-08 14:51:06 $
* last change: $Author: jmarmion $ $Date: 2002-12-10 14:04:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -148,6 +148,7 @@ private:
CodenameList* pCodenames;
BOOL bChanged; // for import: copy data only first time to doc
bool bWinProtection; // Excel Workbook Windows protection flag
public:
UINT32 nLinkCnt; // Zaehlt die Rekursionstufe beim Laden
@ -188,6 +189,8 @@ public:
void SetCodename( const String& ); // -> Workbook globals
void AddCodename( const String& ); // -> tables
inline void SetWinProtection(bool bImportWinProtection) {bWinProtection = bImportWinProtection; }
inline bool IsWinProtected() { return bWinProtection; }
};

View file

@ -2,9 +2,9 @@
*
* $RCSfile: colrowst.cxx,v $
*
* $Revision: 1.14 $
* $Revision: 1.15 $
*
* last change: $Author: dr $ $Date: 2002-11-21 12:15:58 $
* last change: $Author: jmarmion $ $Date: 2002-12-10 14:07:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -501,6 +501,7 @@ ScExtDocOptions::ScExtDocOptions( void )
bChanged = TRUE;
fColScale = 0.0;
SetWinProtection(false);
}

View file

@ -2,9 +2,9 @@
*
* $RCSfile: excdoc.cxx,v $
*
* $Revision: 1.40 $
* $Revision: 1.41 $
*
* last change: $Author: dr $ $Date: 2002-12-06 16:39:22 $
* last change: $Author: jmarmion $ $Date: 2002-12-10 14:07:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -373,7 +373,10 @@ void ExcTable::FillAsHeader( ExcRecordListRefs& rBSRecList )
}
else
{
Add( new XclExpWindowProtection(false) );
if(rDoc.GetExtDocOptions())
Add( new XclExpWindowProtection(rDoc.GetExtDocOptions()->IsWinProtected()) );
else
Add( new XclExpWindowProtection(false));
Add( new XclExpDocProtection(rDoc.IsDocProtected() == TRUE) );
Add( new ExcDummy8_040 );
Add( new ExcWindow18( rR ) );

View file

@ -2,9 +2,9 @@
*
* $RCSfile: excimp8.cxx,v $
*
* $Revision: 1.78 $
* $Revision: 1.79 $
*
* last change: $Author: dr $ $Date: 2002-12-06 16:39:22 $
* last change: $Author: jmarmion $ $Date: 2002-12-10 14:07:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -549,6 +549,13 @@ void ImportExcel8::Iteration( void )
pD->SetDocOptions( aOpt );
}
void ImportExcel8:: WinProtection( void )
{
if( aIn.ReaduInt16() )
{
pExcRoot->pExtDocOpt->SetWinProtection( true );
}
}
void ImportExcel8::Verticalpagebreaks( void )
{

View file

@ -2,9 +2,9 @@
*
* $RCSfile: read.cxx,v $
*
* $Revision: 1.35 $
* $Revision: 1.36 $
*
* last change: $Author: jmarmion $ $Date: 2002-12-06 16:06:43 $
* last change: $Author: jmarmion $ $Date: 2002-12-10 14:07:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -1106,6 +1106,7 @@ FltError ImportExcel8::Read( void )
aIn.SeekGlobalPosition(); // und zurueck an alte Position
break;
case 0x12: DocProtect(); break; // PROTECT [ 5678]
case 0x19: WinProtection(); break;
case 0x2F: // FILEPASS [ 2345 ]
if( Filepass() )
{

View file

@ -2,9 +2,9 @@
*
* $RCSfile: excimp8.hxx,v $
*
* $Revision: 1.44 $
* $Revision: 1.45 $
*
* last change: $Author: jmarmion $ $Date: 2002-12-06 16:01:28 $
* last change: $Author: jmarmion $ $Date: 2002-12-10 14:05:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -177,6 +177,7 @@ class ImportExcel8 : public ImportExcel
void Horizontalpagebreaks( void ); // 0x1B
void Note( void ); // 0x1C
void Format( void ); // 0x1E
void WinProtection( void ); // 0x19
void Cont( void ); // 0x3C
void Dconref( void ); // 0x51
void Obj( void ); // 0x5D