[Libreoffice-commits] .: 4 commits - connectivity/source sfx2/source sysui/desktop

Caolán McNamara caolan at kemper.freedesktop.org
Tue Jun 14 01:58:37 PDT 2011


 connectivity/source/drivers/adabas/BDriver.cxx  |    1 
 connectivity/source/drivers/dbase/DIndex.cxx    |    1 
 connectivity/source/drivers/dbase/DTable.cxx    |    4 --
 sfx2/source/doc/Metadatable.cxx                 |    8 ++---
 sfx2/source/doc/docfac.cxx                      |    9 ++++--
 sfx2/source/doc/docmacromode.cxx                |    2 -
 sfx2/source/doc/graphhelp.cxx                   |    2 -
 sfx2/source/doc/guisaveas.cxx                   |   34 ++++++++++++------------
 sfx2/source/doc/plugin.cxx                      |    2 -
 sysui/desktop/debian/postinst                   |    1 
 sysui/desktop/menus/writer.desktop              |    2 -
 sysui/desktop/mimetypes/openoffice.applications |    2 -
 sysui/desktop/redhat/redhat-menus.spec          |    1 
 sysui/desktop/solaris/mailcap                   |    1 
 sysui/desktop/suse/suse-menus.spec              |    1 
 15 files changed, 36 insertions(+), 35 deletions(-)

New commits:
commit b533717e5161af03ffb771fde92472acc287f2d8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 14 09:53:06 2011 +0100

    unused buffer

diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 6946e42..e844efa 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -1412,9 +1412,6 @@ sal_Bool ODbaseTable::CreateMemoFile(const INetURLObject& aFile)
     if (!m_pMemoStream)
         return sal_False;
 
-    char aBuffer[512];              // write buffer
-    memset(aBuffer,0,sizeof(aBuffer));
-
     m_pMemoStream->SetStreamSize(512);
 
     m_pMemoStream->Seek(0L);
commit cbc9443e2e3d2bdcf71ec245fac2c2831a11180e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 14 09:52:03 2011 +0100

    remove unused filler and width

diff --git a/connectivity/source/drivers/adabas/BDriver.cxx b/connectivity/source/drivers/adabas/BDriver.cxx
index 594cd0f..f215b17 100644
--- a/connectivity/source/drivers/adabas/BDriver.cxx
+++ b/connectivity/source/drivers/adabas/BDriver.cxx
@@ -1089,7 +1089,6 @@ OSL_TRACE("CreateFile %d",_nSize);
                  ) );
             ::dbtools::throwGenericSQLException(sError,*this);
         }
-        (*pFileStream).SetFiller('\0');
         sal_Int32 nNewSize = 0;
         sal_Int32 nCount = _nSize /2;
         for(sal_Int32 i=0; bOK && i < nCount; ++i)
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx
index 600a712..b367c50 100644
--- a/connectivity/source/drivers/dbase/DIndex.cxx
+++ b/connectivity/source/drivers/dbase/DIndex.cxx
@@ -509,7 +509,6 @@ sal_Bool ODbaseIndex::CreateImpl()
 
     m_pFileStream->SetNumberFormatInt(NUMBERFORMAT_INT_LITTLEENDIAN);
     m_pFileStream->SetBufferSize(PAGE_SIZE);
-    m_pFileStream->SetFiller('\0');
 
     // firstly the result must be sorted
     utl::SharedUNOComponent<XStatement> xStmt;
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index ce9cd1b..6946e42 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -1415,7 +1415,6 @@ sal_Bool ODbaseTable::CreateMemoFile(const INetURLObject& aFile)
     char aBuffer[512];              // write buffer
     memset(aBuffer,0,sizeof(aBuffer));
 
-    m_pMemoStream->SetFiller('\0');
     m_pMemoStream->SetStreamSize(512);
 
     m_pMemoStream->Seek(0L);
commit 2b570e8d1aa9bc30194363d9daef8ec4bace990e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 13 23:35:41 2011 +0100

    catch by const reference

diff --git a/sfx2/source/doc/Metadatable.cxx b/sfx2/source/doc/Metadatable.cxx
index a2a85ec..a4c4a92 100644
--- a/sfx2/source/doc/Metadatable.cxx
+++ b/sfx2/source/doc/Metadatable.cxx
@@ -1307,7 +1307,7 @@ void Metadatable::RemoveMetadataReference()
             m_pReg = 0;
         }
     }
-    catch (uno::Exception &)
+    catch (const uno::Exception &)
     {
         OSL_FAIL("Metadatable::RemoveMetadataReference: exception");
     }
@@ -1469,7 +1469,7 @@ Metadatable::RegisterAsCopyOf(Metadatable const & i_rSource,
             }
         }
     }
-    catch (uno::Exception &)
+    catch (const uno::Exception &)
     {
         OSL_FAIL("Metadatable::RegisterAsCopyOf: exception");
     }
@@ -1492,7 +1492,7 @@ Metadatable::RegisterAsCopyOf(Metadatable const & i_rSource,
             return pUndo;
         }
     }
-    catch (uno::Exception &)
+    catch (const uno::Exception &)
     {
         OSL_FAIL("Metadatable::CreateUndo: exception");
     }
@@ -1562,7 +1562,7 @@ Metadatable::JoinMetadatable(Metadatable const & i_rOther,
             pRegDoc->JoinMetadatables(*this, i_rOther);
         }
     }
-    catch (uno::Exception &)
+    catch (const uno::Exception &)
     {
         OSL_FAIL("Metadatable::JoinMetadatable: exception");
     }
diff --git a/sfx2/source/doc/docfac.cxx b/sfx2/source/doc/docfac.cxx
index cbd4082..7afd79b 100644
--- a/sfx2/source/doc/docfac.cxx
+++ b/sfx2/source/doc/docfac.cxx
@@ -317,7 +317,7 @@ void SfxObjectFactory::SetSystemTemplate( const String& rServiceName, const Stri
                 ::comphelper::ConfigurationHelper::flush( xConfig );
             }
         }
-        catch( uno::Exception& )
+        catch(const uno::Exception&)
         {
         }
     }
@@ -424,9 +424,12 @@ String SfxObjectFactory::GetModuleName() const
         return String(sModuleName);
     }
     catch(const css::uno::RuntimeException&)
-        { throw; }
+    {
+        throw;
+    }
     catch(const css::uno::Exception&)
-        {}
+    {
+    }
 
     return String();
 }
diff --git a/sfx2/source/doc/docmacromode.cxx b/sfx2/source/doc/docmacromode.cxx
index eda8f50..9ac9fdf 100644
--- a/sfx2/source/doc/docmacromode.cxx
+++ b/sfx2/source/doc/docmacromode.cxx
@@ -295,7 +295,7 @@ namespace sfx2
                 return disallowMacroExecution();
             }
         }
-        catch ( Exception& )
+        catch ( const Exception& )
         {
             if  (   ( nMacroExecutionMode == MacroExecMode::FROM_LIST_NO_WARN )
                 ||  ( nMacroExecutionMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN )
diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx
index 30c0e21..5058725 100644
--- a/sfx2/source/doc/graphhelp.cxx
+++ b/sfx2/source/doc/graphhelp.cxx
@@ -489,7 +489,7 @@ sal_Bool GraphicHelper::getThumbnailReplacement_Impl( sal_Int32 nResID, const un
                     }
                 }
             }
-            catch( uno::Exception& )
+            catch(const uno::Exception&)
             {
             }
         }
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index ac4c671..783d623 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -208,10 +208,10 @@ public:
                 m_xDocumentSettings->setPropertyValue( aLoadReadonlyString, uno::makeAny( bReadOnly ) );
                 m_bReadOnlySupported = sal_True;
             }
-            catch( uno::Exception& )
+            catch( const uno::Exception& )
             {}
         }
-        catch( uno::Exception& )
+        catch( const uno::Exception& )
         {}
 
         if ( ( bReadOnly && !m_bReadOnlySupported ) )
@@ -229,7 +229,7 @@ public:
                 if ( m_bReadOnlySupported )
                     m_xDocumentSettings->setPropertyValue( aLoadReadonlyString, uno::makeAny( m_bPreserveReadOnly ) );
             }
-            catch( uno::Exception& )
+            catch( const uno::Exception& )
             {
                 OSL_FAIL( "Unexpected exception!" );
             }
@@ -458,7 +458,7 @@ void ModelData_Impl::CheckInteractionHandler()
                                             DEFINE_CONST_UNICODE("com.sun.star.task.InteractionHandler") ),
                             uno::UNO_QUERY );
         }
-        catch( uno::Exception& )
+        catch( const uno::Exception& )
         {
         }
     }
@@ -600,18 +600,18 @@ sal_Bool ModelData_Impl::ExecuteFilterDialog_Impl( const ::rtl::OUString& aFilte
                 }
         }
     }
-    catch( container::NoSuchElementException& )
+    catch( const container::NoSuchElementException& )
     {
         // the filter name is unknown
         throw task::ErrorCodeIOException( ::rtl::OUString(),
                                             uno::Reference< uno::XInterface >(),
                                             ERRCODE_IO_INVALIDPARAMETER );
     }
-    catch( task::ErrorCodeIOException& )
+    catch( const task::ErrorCodeIOException& )
     {
         throw;
     }
-    catch( uno::Exception& )
+    catch( const uno::Exception& )
     {
     }
 
@@ -659,7 +659,7 @@ sal_Int8 ModelData_Impl::CheckSaveAcceptable( sal_Int8 nCurStatus )
                     nResult = STATUS_NO_ACTION;
             }
         }
-        catch( uno::Exception& )
+        catch( const uno::Exception& )
         {
             // impossibility to get the configuration access means normal saving flow for now
         }
@@ -1087,7 +1087,7 @@ sal_Bool ModelData_Impl::OutputFileDialog( sal_Int8 nStoreMode,
                       ( GetMediaDescr().find( aFilterDataString ) == GetMediaDescr().end()
                       && GetMediaDescr().find( aFilterOptionsString ) == GetMediaDescr().end() );
             }
-            catch( lang::IllegalArgumentException& )
+            catch( const lang::IllegalArgumentException& )
             {}
         }
     }
@@ -1136,7 +1136,7 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
             }
         }
     }
-    catch ( uno::Exception& )
+    catch ( const uno::Exception& )
     {
     }
 
@@ -1197,7 +1197,7 @@ sal_Bool ModelData_Impl::ShowDocumentInfoDialog()
             try {
                 uno::Reference< frame::XTitle > xTitle( GetModel(), uno::UNO_QUERY_THROW );
                 aReccomendedName = xTitle->getTitle();
-            } catch( uno::Exception& ) {}
+            } catch( const uno::Exception& ) {}
         }
 
         if ( aReccomendedName.getLength() && aTypeName.getLength() )
@@ -1403,7 +1403,7 @@ sal_Bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >&
             {
                 aModelData.GetStorable2()->storeSelf( aModelData.GetMediaDescr().getAsConstPropertyValueList() );
             }
-            catch( lang::IllegalArgumentException& )
+            catch( const lang::IllegalArgumentException& )
             {
                 OSL_FAIL( "ModelData didn't handle illegal parameters, all the parameters are ignored!\n" );
                 aModelData.GetStorable()->store();
@@ -1625,7 +1625,7 @@ sal_Bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >&
             else
                 aModelData.GetStorable()->storeAsURL( aURL.GetMainURL( INetURLObject::NO_DECODE ), aArgsSequence );
         }
-        catch( uno::Exception& )
+        catch( const uno::Exception& )
         {
             if ( ( nStoreMode & EXPORT_REQUESTED ) )
                 SetDocInfoState( aModelData.GetModel(), xOldDocInfo, sal_True );
@@ -1676,7 +1676,7 @@ sal_Bool SfxStoringHelper::CheckFilterOptionsAppearence(
                        bUseFilterOptions = sal_True;
             }
         }
-        catch( uno::Exception& )
+        catch( const uno::Exception& )
         {
         }
     }
@@ -1725,7 +1725,7 @@ void SfxStoringHelper::SetDocInfoState(
                 // it is possible that the propertysets from XML and binary files differ; we shouldn't break then
                 xSet->setPropertyValue( pProps[i].Name, aValue );
             }
-            catch ( uno::Exception& ) {}
+            catch ( const uno::Exception& ) {}
         }
 
         sal_Int16 nCount = i_xOldDocInfo->getUserFieldCount();
@@ -1738,7 +1738,7 @@ void SfxStoringHelper::SetDocInfoState(
             xDocInfoToFill->setUserFieldValue( nInd, aPropVal );
         }
     }
-    catch ( uno::Exception& ) {}
+    catch ( const uno::Exception& ) {}
 
     // set the modified flag back if required
     if ( bNoModify && bIsModified != xModifiable->isModified() )
@@ -1794,7 +1794,7 @@ Window* SfxStoringHelper::GetModelWindow( const uno::Reference< frame::XModel >&
             }
         }
     }
-    catch ( uno::Exception& )
+    catch ( const uno::Exception& )
     {
     }
 
diff --git a/sfx2/source/doc/plugin.cxx b/sfx2/source/doc/plugin.cxx
index 475aab6..279c6ae 100644
--- a/sfx2/source/doc/plugin.cxx
+++ b/sfx2/source/doc/plugin.cxx
@@ -155,7 +155,7 @@ throw( uno::RuntimeException )
                     }
                 }
             }
-            catch( uno::Exception& )
+            catch( const uno::Exception& )
             {
             }
         }
commit fc7980d50c07aac60042a9d675bd4532bd3ac4cd
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 13 16:56:49 2011 +0100

    add hwp to desktop etc. files

diff --git a/sysui/desktop/debian/postinst b/sysui/desktop/debian/postinst
index 062014c..11f4458 100755
--- a/sysui/desktop/debian/postinst
+++ b/sysui/desktop/debian/postinst
@@ -111,6 +111,7 @@ application/vnd.sun.xml.writer.template; %PREFIX -view %s
 application/vnd.sun.xml.writer.global; %PREFIX -view %s
 application/vnd.stardivision.writer; %PREFIX -view %s
 application/vnd.stardivision.writer-global; %PREFIX -view %s
+application/x-hwp; %PREFIX -view %s
 application/x-starwriter; %PREFIX -view %s
 application/vnd.oasis.opendocument.formula; %PREFIX -view %s
 application/vnd.sun.xml.math; %PREFIX -view %s
diff --git a/sysui/desktop/menus/writer.desktop b/sysui/desktop/menus/writer.desktop
index e9c05a5..625df59 100755
--- a/sysui/desktop/menus/writer.desktop
+++ b/sysui/desktop/menus/writer.desktop
@@ -5,7 +5,7 @@ Icon=writer
 Type=Application
 Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Wordprocessors;
 Exec=${UNIXBASISROOTNAME} --writer %U
-MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
+MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;application/x-hwp;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
 Name=%PRODUCTNAME Writer
 GenericName=Word Processor
 Comment=Create and edit text and graphics in letters, reports, documents and Web pages by using Writer.
diff --git a/sysui/desktop/mimetypes/openoffice.applications b/sysui/desktop/mimetypes/openoffice.applications
index 4c3b31a..32692d2 100755
--- a/sysui/desktop/mimetypes/openoffice.applications
+++ b/sysui/desktop/mimetypes/openoffice.applications
@@ -5,5 +5,5 @@ OFFICENAME
 	expects_uris=true
 	requires_terminal=false
 	uses_gnomevfs=true
-	mime_types=application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.text-flat-xml,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.text-web,application/vnd.oasis.opendocument.text-master,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-flat-xml,application/vnd.oasis.opendocument.graphics-template,application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.presentation-flat-xml,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.spreadsheet-flat-xml,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.formula,application/vnd.oasis.opendocument.database,application/vnd.ms-excel,application/rtf,application/msword,application/vnd.ms-powerpoint,application/vnd.stardivision.calc,application/vnd.stardivision.chart,application/vnd.stardivision.dr
 aw,application/vnd.stardivision.impress,application/vnd.stardivision.mail,application/vnd.stardivision.math,application/vnd.stardivision.writer,application/vnd.sun.xml.calc,application/vnd.sun.xml.calc.template,application/vnd.sun.xml.draw,application/vnd.sun.xml.draw.template,application/vnd.sun.xml.impress,application/vnd.sun.xml.impress.template,application/vnd.sun.xml.math,application/vnd.sun.xml.writer,application/vnd.sun.xml.writer.global,application/vnd.sun.xml.writer.template,application/vnd.sun.xml.base,image/x-emf,image/x-pcx,image/x-photo-cd,image/x-pict;application/vnd.wordperfect;application/vnd.lotus-wordpro;application/vnd.openofficeorg.extension;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application
 /vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;
+	mime_types=application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.text-flat-xml,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.text-web,application/vnd.oasis.opendocument.text-master,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-flat-xml,application/vnd.oasis.opendocument.graphics-template,application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.presentation-flat-xml,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.spreadsheet-flat-xml,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.formula,application/vnd.oasis.opendocument.database,application/vnd.ms-excel,application/rtf,application/msword,application/vnd.ms-powerpoint,application/vnd.stardivision.calc,application/vnd.stardivision.chart,application/vnd.stardivision.dr
 aw,application/vnd.stardivision.impress,application/vnd.stardivision.mail,application/vnd.stardivision.math,application/vnd.stardivision.writer,application/vnd.sun.xml.calc,application/vnd.sun.xml.calc.template,application/vnd.sun.xml.draw,application/vnd.sun.xml.draw.template,application/vnd.sun.xml.impress,application/vnd.sun.xml.impress.template,application/vnd.sun.xml.math,application/vnd.sun.xml.writer,application/vnd.sun.xml.writer.global,application/vnd.sun.xml.writer.template,application/vnd.sun.xml.base,image/x-emf,image/x-pcx,image/x-photo-cd,image/x-pict;application/vnd.wordperfect;application/vnd.lotus-wordpro;application/vnd.openofficeorg.extension;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application
 /vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;application/x-hwp;
 
diff --git a/sysui/desktop/redhat/redhat-menus.spec b/sysui/desktop/redhat/redhat-menus.spec
index 4772ee3..2472f5e 100755
--- a/sysui/desktop/redhat/redhat-menus.spec
+++ b/sysui/desktop/redhat/redhat-menus.spec
@@ -287,6 +287,7 @@ application/vnd.openxmlformats-officedocument.presentationml.presentation; %unix
 application/vnd.ms-powerpoint.presentation.macroenabled.12; %unixfilename -view %s
 application/vnd.openxmlformats-officedocument.presentationml.template; %unixfilename -view %s
 application/vnd.ms-powerpoint.template.macroenabled.12; %unixfilename -view %s
+application/x-hwp; %unixfilename -view %s
 END
 
   # and replace the original file
diff --git a/sysui/desktop/solaris/mailcap b/sysui/desktop/solaris/mailcap
index f9fc623..c9d8cf3 100755
--- a/sysui/desktop/solaris/mailcap
+++ b/sysui/desktop/solaris/mailcap
@@ -75,6 +75,7 @@ application/wordperfect; %PREFIX -view %s
 application/vnd.lotus-wordpro; %PREFIX -view %s
 application/wpwin; %PREFIX -view %s
 application/vnd.openofficeorg.extension; %PREFIX %s
+application/x-hwp; %PREFIX -view %s
 END
 else
 # backing all entries pointing to our binary
diff --git a/sysui/desktop/suse/suse-menus.spec b/sysui/desktop/suse/suse-menus.spec
index ebb5534..5b0ac01 100755
--- a/sysui/desktop/suse/suse-menus.spec
+++ b/sysui/desktop/suse/suse-menus.spec
@@ -298,6 +298,7 @@ application/vnd.openxmlformats-officedocument.presentationml.presentation; %unix
 application/vnd.ms-powerpoint.presentation.macroenabled.12; %unixfilename -view %s
 application/vnd.openxmlformats-officedocument.presentationml.template; %unixfilename -view %s
 application/vnd.ms-powerpoint.template.macroenabled.12; %unixfilename -view %s
+application/x-hwp; %unixfilename -view %s
 END
 
   # and replace the original file


More information about the Libreoffice-commits mailing list