diff options
author | Michael Brauer <mib@openoffice.org> | 2001-02-06 14:45:20 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-02-06 14:45:20 +0000 |
commit | a05c341452eb85f07013105170198963428f3784 (patch) | |
tree | 45d732342ae568c2a56402a84e9487d4d92ed334 /sw/source/ui/app | |
parent | 4eae2fc8fcf8bf8057f9984962546c5e80d36540 (diff) |
real 6.0 file format
Diffstat (limited to 'sw/source/ui/app')
-rw-r--r-- | sw/source/ui/app/app.src | 11 | ||||
-rw-r--r-- | sw/source/ui/app/docsh.cxx | 13 | ||||
-rw-r--r-- | sw/source/ui/app/docsh2.cxx | 21 | ||||
-rw-r--r-- | sw/source/ui/app/docshini.cxx | 9 |
4 files changed, 33 insertions, 21 deletions
diff --git a/sw/source/ui/app/app.src b/sw/source/ui/app/app.src index a5ec95828181..8a67a14a088f 100644 --- a/sw/source/ui/app/app.src +++ b/sw/source/ui/app/app.src @@ -2,9 +2,9 @@ * * $RCSfile: app.src,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: kz $ $Date: 2001-02-02 16:40:49 $ + * last change: $Author: mib $ $Date: 2001-02-06 15:41:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1610,7 +1610,7 @@ String STR_WRITER_DOCUMENT_FULLTYPE_40 Text[ turkish ] = "%PRODUCTNAME 4.0 metni"; }; -String STR_WRITER_DOCUMENT_FULLTYPE +String STR_WRITER_DOCUMENT_FULLTYPE_50 { Text = "%PRODUCTNAME 5.0 Text" ; Text [ English ] = "StarOffice 5.0 Text" ; @@ -1636,6 +1636,11 @@ String STR_WRITER_DOCUMENT_FULLTYPE Text[ turkish ] = "%PRODUCTNAME 5.0 metni"; Text[ language_user1 ] = " "; }; +String STR_WRITER_DOCUMENT_FULLTYPE +{ + Text = "%PRODUCTNAME 6.0 Text" ; + Text [ English ] = "StarOffice 6.0 Text" ; +}; String STR_CANTOPEN diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx index eae4ebf031de..3a183565e82d 100644 --- a/sw/source/ui/app/docsh.cxx +++ b/sw/source/ui/app/docsh.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docsh.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: mib $ $Date: 2001-02-01 14:30:12 $ + * last change: $Author: mib $ $Date: 2001-02-06 15:41:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -282,7 +282,7 @@ class SwTmpPersist : public SvPersist String * pAppName, String * pLongUserName, String * pUserName, - long nFileFormat=SOFFICE_FILEFORMAT_NOW ) const; + long nFileFormat=SOFFICE_FILEFORMAT_CURRENT ) const; virtual BOOL Save(); virtual BOOL SaveCompleted( SvStorage * ); public: @@ -516,7 +516,7 @@ BOOL SwDocShell::ConvertFrom( SfxMedium& rMedium ) BOOL SwDocShell::Save() { - sal_Bool bXML = pIo->GetStorage()->GetVersion() >= SOFFICE_FILEFORMAT_XML; + sal_Bool bXML = pIo->GetStorage()->GetVersion() >= SOFFICE_FILEFORMAT_60; SwWait aWait( *this, TRUE ); ULONG nErr = ERR_SWG_WRITE_ERROR, nVBWarning = ERRCODE_NONE; @@ -596,7 +596,7 @@ BOOL SwDocShell::Save() BOOL SwDocShell::SaveAs( SvStorage * pStor ) { - sal_Bool bXML = pStor->GetVersion() >= SOFFICE_FILEFORMAT_XML; + sal_Bool bXML = pStor->GetVersion() >= SOFFICE_FILEFORMAT_60; SwWait aWait( *this, TRUE ); @@ -1479,6 +1479,9 @@ BOOL SwTmpPersist::SaveCompleted( SvStorage * pStor ) /*------------------------------------------------------------------------ $Log: not supported by cvs2svn $ + Revision 1.7 2001/02/01 14:30:12 mib + XML files now can be loaded/saved as own format + Revision 1.6 2001/01/19 09:40:12 jp Method SvLinkManager::PrepareReload removed diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx index a13bf08b05b3..b9236646a70c 100644 --- a/sw/source/ui/app/docsh2.cxx +++ b/sw/source/ui/app/docsh2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docsh2.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: jp $ $Date: 2001-02-05 18:44:42 $ + * last change: $Author: mib $ $Date: 2001-02-06 15:41:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1358,17 +1358,15 @@ void SwDocShell::FillClass( SvGlobalName * pClassName, pAppName->AssignAscii( "StarWriter 4.0" ); *pLongUserName = SW_RESSTR(STR_WRITER_DOCUMENT_FULLTYPE_40); } - else if (nVersion == SOFFICE_FILEFORMAT_XML) + else if (nVersion == SOFFICE_FILEFORMAT_50) { - *pClassName = SvGlobalName( SO3_SW_CLASSID_60 ); - - *pClipFormat = SOT_FORMATSTR_ID_STARWRITER_60; - *pLongUserName = SW_RESSTR(STR_WRITER_DOCUMENT_FULLTYPE); + *pClassName = SvGlobalName( SO3_SW_CLASSID_50 ); + *pClipFormat = SOT_FORMATSTR_ID_STARWRITER_50; + *pLongUserName = SW_RESSTR(STR_WRITER_DOCUMENT_FULLTYPE_50); } - else if (nVersion == SOFFICE_FILEFORMAT_NOW || - nVersion == SOFFICE_FILEFORMAT_50) + else if (nVersion == SOFFICE_FILEFORMAT_60) { - *pLongUserName = SW_RESSTR(STR_WRITER_DOCUMENT_FULLTYPE); + *pClassName = SvGlobalName( SO3_SW_CLASSID_60 ); } *pUserName = SW_RESSTR(STR_HUMAN_SWDOC_NAME); } @@ -1700,6 +1698,9 @@ ULONG SwDocShell::LoadStylesFromFile( const String& rURL, /*------------------------------------------------------------------------ $Log: not supported by cvs2svn $ + Revision 1.12 2001/02/05 18:44:42 jp + Bug #83467#: LoadStylesFrom - initialise the reader variable + Revision 1.11 2001/02/01 14:30:13 mib XML files now can be loaded/saved as own format diff --git a/sw/source/ui/app/docshini.cxx b/sw/source/ui/app/docshini.cxx index 5cc1fa5e06c8..719517f7e339 100644 --- a/sw/source/ui/app/docshini.cxx +++ b/sw/source/ui/app/docshini.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docshini.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: mib $ $Date: 2001-02-01 14:30:13 $ + * last change: $Author: mib $ $Date: 2001-02-06 15:41:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -512,7 +512,7 @@ void SwDocShell::RemoveLink() sal_Bool SwDocShell::Load(SvStorage* pStor) { sal_Bool bRet = sal_False; - sal_Bool bXML = pStor->GetVersion() >= SOFFICE_FILEFORMAT_XML; + sal_Bool bXML = pStor->GetVersion() >= SOFFICE_FILEFORMAT_60; if( SfxInPlaceObject::Load( pStor )) { if( pDoc ) // fuer Letzte Version !! @@ -800,6 +800,9 @@ void SwDocShell::SubInitNew() /*------------------------------------------------------------------------ $Log: not supported by cvs2svn $ + Revision 1.9 2001/02/01 14:30:13 mib + XML files now can be loaded/saved as own format + Revision 1.8 2000/11/20 09:12:09 jp should change: use LocaleDataWrapper |