filter/source/pdf/pdfexport.hxx |   31 +++++++++++++------------------
 1 file changed, 13 insertions(+), 18 deletions(-)

New commits:
commit e893606068a82c84103b1466a5eb92e2bd415b4b
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Mon Feb 7 08:16:33 2022 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Feb 7 09:06:49 2022 +0100

    filter: avoid 'using namespace' in pdfexport.hxx
    
    Helps to see if we have an rtl::Reference or an uno::Reference here.
    
    Change-Id: I5b8c42fbf01a026d637b1aaec299cae51673188a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129585
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/filter/source/pdf/pdfexport.hxx b/filter/source/pdf/pdfexport.hxx
index 031547beeb45..12d43ada945e 100644
--- a/filter/source/pdf/pdfexport.hxx
+++ b/filter/source/pdf/pdfexport.hxx
@@ -35,19 +35,14 @@ class Size;
 
 namespace vcl { class PDFWriter; }
 
-using namespace ::com::sun::star;
-using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::uno;
-
 class PDFExport
 {
 private:
 
-    Reference< XComponent > mxSrcDoc;
-    Reference< uno::XComponentContext > mxContext;
-    Reference< task::XStatusIndicator > mxStatusIndicator;
-    Reference< task::XInteractionHandler > mxIH;
+    css::uno::Reference< css::lang::XComponent > mxSrcDoc;
+    css::uno::Reference< css::uno::XComponentContext > mxContext;
+    css::uno::Reference< css::task::XStatusIndicator > mxStatusIndicator;
+    css::uno::Reference< css::task::XInteractionHandler > mxIH;
 
     bool                mbUseTaggedPDF;
     sal_Int32           mnPDFTypeSelection;
@@ -115,7 +110,7 @@ private:
     OUString            msSignContact;
     OUString            msSignReason;
     OUString            msSignPassword;
-    Reference< security::XCertificate > maSignCertificate;
+    css::uno::Reference< css::security::XCertificate > maSignCertificate;
     OUString            msSignTSA;
 
     void                ImplWriteWatermark( vcl::PDFWriter& rWriter, const 
Size& rPageSize );
@@ -125,20 +120,20 @@ private:
 
 public:
 
-                        PDFExport(  const Reference< XComponent >& rxSrcDoc,
-                                    const Reference< task::XStatusIndicator >& 
xStatusIndicator,
-                                    const Reference< task::XInteractionHandler 
>& xIH,
-                                    const Reference< uno::XComponentContext >& 
xFact );
+                        PDFExport(  const css::uno::Reference< 
css::lang::XComponent >& rxSrcDoc,
+                                    const css::uno::Reference< 
css::task::XStatusIndicator >& xStatusIndicator,
+                                    const css::uno::Reference< 
css::task::XInteractionHandler >& xIH,
+                                    const css::uno::Reference< 
css::uno::XComponentContext >& xFact );
                         ~PDFExport();
 
     bool                ExportSelection( vcl::PDFWriter& rPDFWriter,
-                                    Reference< css::view::XRenderable > const 
& rRenderable,
-                                    const Any& rSelection,
+                                    css::uno::Reference< 
css::view::XRenderable > const & rRenderable,
+                                    const css::uno::Any& rSelection,
                                     const StringRangeEnumerator& rRangeEnum,
-                                    Sequence< PropertyValue >& rRenderOptions,
+                                    css::uno::Sequence< 
css::beans::PropertyValue >& rRenderOptions,
                                     sal_Int32 nPageCount );
 
-    bool                Export( const OUString& rFile, const Sequence< 
PropertyValue >& rFilterData );
+    bool                Export( const OUString& rFile, const 
css::uno::Sequence< css::beans::PropertyValue >& rFilterData );
 
     void                showErrors( const std::set<vcl::PDFWriter::ErrorCode>& 
);
 };

Reply via email to