summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-12-06 13:54:39 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2023-12-07 09:28:08 +0100
commitf6536f4db61b73cf7fd4a44bb5ba61eff61f8f91 (patch)
tree52a0aff314ec81f6c011c793574ad464f5816a25 /sfx2
parent0f32809a86630d9e8bbf46fef23e189896c8a497 (diff)
some cosmetic improvements, better warnings
Change-Id: I05a7eeb74088c278aab94519c7f53b0482e38058 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160400 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 42fe7d72b8c5..f4dd7b62e10f 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2954,13 +2954,11 @@ void SfxMedium::Download( const Link<void*,void>& aLink )
}
-void SfxMedium::Init_Impl()
-/* [Description]
- Includes a valid:: sun:: com:: star:: util:: URL (If a file name was
- previously in there) in the logical name and if available sets the
- physical name as the file name.
+/**
+ Sets m_aLogicName to a valid URL and if available sets
+ the physical name m_aName to the file name.
*/
-
+void SfxMedium::Init_Impl()
{
Reference< XOutputStream > rOutStream;
@@ -4124,7 +4122,7 @@ bool SfxMedium::SignDocumentContentUsingCertificate(
}
catch ( const uno::Exception& )
{
- SAL_WARN( "sfx.doc", "Couldn't use signing functionality!" );
+ TOOLS_WARN_EXCEPTION("sfx.doc", "Couldn't use signing functionality!");
}
CloseAndRelease();
@@ -4134,6 +4132,7 @@ bool SfxMedium::SignDocumentContentUsingCertificate(
return bChanges;
}
+// note: this is the only function creating scripting signature
bool SfxMedium::SignContents_Impl(weld::Window* pDialogParent,
bool bSignScriptingContent,
bool bHasValidDocumentSignature,
@@ -4294,7 +4293,7 @@ bool SfxMedium::SignContents_Impl(weld::Window* pDialogParent,
}
catch ( const uno::Exception& )
{
- SAL_WARN( "sfx.doc", "Couldn't use signing functionality!" );
+ TOOLS_WARN_EXCEPTION("sfx.doc", "Couldn't use signing functionality!");
}
CloseAndRelease();