summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-04-28 23:09:13 +0300
committerTor Lillqvist <tml@collabora.com>2015-04-30 07:27:52 +0300
commitd883c12556a71c5d3719454b1f95809a505f0ace (patch)
tree6f0c1cc518a3727db95b72d609ec9db793041b20 /filter
parentd1ca0f4ed0e30394ce6759a20d4896651dd43051 (diff)
Get rid of the initial :: for the vcl namespace
We used it all over the place without leading :: already anyway, even in many files in include. So let's be consistent. In the majority of cases, prefer the easier-on-the-eyes choice, not the "safe" one. In those files in include where *all* existing uses of ::vcl:: indeed used the :: prefix, there let's keep it for consistency. Change-Id: If99cb41d3bf290d38c601d91125c3c8d935e61d0
Diffstat (limited to 'filter')
-rw-r--r--filter/source/flash/swfdialog.cxx1
-rw-r--r--filter/source/pdf/pdfdialog.cxx1
-rw-r--r--filter/source/pdf/pdfexport.cxx69
-rw-r--r--filter/source/pdf/pdfexport.hxx4
-rw-r--r--filter/source/svg/svgdialog.cxx1
-rw-r--r--filter/source/svg/svgfontexport.cxx2
-rw-r--r--filter/source/svg/svgwriter.cxx2
7 files changed, 38 insertions, 42 deletions
diff --git a/filter/source/flash/swfdialog.cxx b/filter/source/flash/swfdialog.cxx
index dcfac419788c..a9faaa84c8b6 100644
--- a/filter/source/flash/swfdialog.cxx
+++ b/filter/source/flash/swfdialog.cxx
@@ -30,7 +30,6 @@
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
-using namespace ::vcl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
diff --git a/filter/source/pdf/pdfdialog.cxx b/filter/source/pdf/pdfdialog.cxx
index 02042739e549..415ee43525ba 100644
--- a/filter/source/pdf/pdfdialog.cxx
+++ b/filter/source/pdf/pdfdialog.cxx
@@ -25,7 +25,6 @@
#include <svl/solar.hrc>
#include <com/sun/star/view/XRenderable.hpp>
-using namespace ::vcl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 4b1b76fa1d2a..7c065a4d6d51 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -76,7 +76,6 @@
#include "com/sun/star/graphic/XGraphicProvider.hpp"
#include <boost/scoped_ptr.hpp>
-using namespace ::vcl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -379,7 +378,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
INetURLObject aURL( rFile );
bool bRet = false;
- std::set< PDFWriter::ErrorCode > aErrors;
+ std::set< vcl::PDFWriter::ErrorCode > aErrors;
if( aURL.GetProtocol() != INetProtocol::File )
{
@@ -398,7 +397,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
VCLXDevice* pXDevice = new VCLXDevice;
OUString aPageRange;
Any aSelection;
- PDFWriter::PDFWriterContext aContext;
+ vcl::PDFWriter::PDFWriterContext aContext;
OUString aOpenPassword, aPermissionPassword;
Reference< beans::XMaterialHolder > xEnc;
Sequence< beans::NamedValue > aPreparedPermissionPassword;
@@ -566,10 +565,10 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
{
default:
case 0:
- aContext.Version = PDFWriter::PDF_1_4;
+ aContext.Version = vcl::PDFWriter::PDF_1_4;
break;
case 1:
- aContext.Version = PDFWriter::PDF_A_1;
+ aContext.Version = vcl::PDFWriter::PDF_A_1;
//force the tagged PDF as well
mbUseTaggedPDF = true;
//force disabling of form conversion
@@ -600,32 +599,32 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
{
default:
case 0:
- aContext.PDFDocumentMode = PDFWriter::ModeDefault;
+ aContext.PDFDocumentMode = vcl::PDFWriter::ModeDefault;
break;
case 1:
- aContext.PDFDocumentMode = PDFWriter::UseOutlines;
+ aContext.PDFDocumentMode = vcl::PDFWriter::UseOutlines;
break;
case 2:
- aContext.PDFDocumentMode = PDFWriter::UseThumbs;
+ aContext.PDFDocumentMode = vcl::PDFWriter::UseThumbs;
break;
}
switch( mnPDFDocumentAction )
{
default:
case 0:
- aContext.PDFDocumentAction = PDFWriter::ActionDefault;
+ aContext.PDFDocumentAction = vcl::PDFWriter::ActionDefault;
break;
case 1:
- aContext.PDFDocumentAction = PDFWriter::FitInWindow;
+ aContext.PDFDocumentAction = vcl::PDFWriter::FitInWindow;
break;
case 2:
- aContext.PDFDocumentAction = PDFWriter::FitWidth;
+ aContext.PDFDocumentAction = vcl::PDFWriter::FitWidth;
break;
case 3:
- aContext.PDFDocumentAction = PDFWriter::FitVisible;
+ aContext.PDFDocumentAction = vcl::PDFWriter::FitVisible;
break;
case 4:
- aContext.PDFDocumentAction = PDFWriter::ActionZoom;
+ aContext.PDFDocumentAction = vcl::PDFWriter::ActionZoom;
aContext.Zoom = mnZoom;
break;
}
@@ -634,23 +633,23 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
{
default:
case 0:
- aContext.PageLayout = PDFWriter::DefaultLayout;
+ aContext.PageLayout = vcl::PDFWriter::DefaultLayout;
break;
case 1:
- aContext.PageLayout = PDFWriter::SinglePage;
+ aContext.PageLayout = vcl::PDFWriter::SinglePage;
break;
case 2:
- aContext.PageLayout = PDFWriter::Continuous;
+ aContext.PageLayout = vcl::PDFWriter::Continuous;
break;
case 3:
- aContext.PageLayout = PDFWriter::ContinuousFacing;
+ aContext.PageLayout = vcl::PDFWriter::ContinuousFacing;
break;
}
aContext.FirstPageLeft = mbFirstPageLeft;
//check if PDF/A, which does not allow encryption
- if( aContext.Version != PDFWriter::PDF_A_1 )
+ if( aContext.Version != vcl::PDFWriter::PDF_A_1 )
{
//set values needed in encryption
//set encryption level, fixed, but here it can set by the UI if needed.
@@ -712,7 +711,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
aContext.Encryption.CanCopyOrExtract = mbCanCopyOrExtract;
aContext.Encryption.CanExtractForAccessibility = mbCanExtractForAccessibility;
if( mbEncrypt && ! xEnc.is() )
- xEnc = PDFWriter::InitEncryption( aPermissionPassword, aOpenPassword, aContext.Encryption.Security128bit );
+ xEnc = vcl::PDFWriter::InitEncryption( aPermissionPassword, aOpenPassword, aContext.Encryption.Security128bit );
if( mbEncrypt && !aPermissionPassword.isEmpty() && ! aPreparedPermissionPassword.getLength() )
aPreparedPermissionPassword = comphelper::OStorageHelper::CreatePackageEncryptionData( aPermissionPassword );
}
@@ -729,17 +728,17 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
switch( mnFormsFormat )
{
case 1:
- aContext.SubmitFormat = PDFWriter::PDF;
+ aContext.SubmitFormat = vcl::PDFWriter::PDF;
break;
case 2:
- aContext.SubmitFormat = PDFWriter::HTML;
+ aContext.SubmitFormat = vcl::PDFWriter::HTML;
break;
case 3:
- aContext.SubmitFormat = PDFWriter::XML;
+ aContext.SubmitFormat = vcl::PDFWriter::XML;
break;
default:
case 0:
- aContext.SubmitFormat = PDFWriter::FDF;
+ aContext.SubmitFormat = vcl::PDFWriter::FDF;
break;
}
aContext.AllowDuplicateFieldNames = mbAllowDuplicateFieldNames;
@@ -759,25 +758,25 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
default:
//default: URI, without fragment conversion (the bookmark in PDF may not work)
case 0:
- aContext.DefaultLinkAction = PDFWriter::URIAction;
+ aContext.DefaultLinkAction = vcl::PDFWriter::URIAction;
break;
//view PDF through the reader application
case 1:
aContext.ForcePDFAction = true;
- aContext.DefaultLinkAction = PDFWriter::LaunchAction;
+ aContext.DefaultLinkAction = vcl::PDFWriter::LaunchAction;
break;
//view PDF through an Internet browser
case 2:
- aContext.DefaultLinkAction = PDFWriter::URIActionDestination;
+ aContext.DefaultLinkAction = vcl::PDFWriter::URIActionDestination;
break;
}
aContext.ConvertOOoTargetToPDFTarget = mbConvertOOoTargetToPDFTarget;
// check for Link Launch action, not allowed on PDF/A-1
// this code chunk checks when the filter is called from scripting
- if( aContext.Version == PDFWriter::PDF_A_1 &&
- aContext.DefaultLinkAction == PDFWriter::LaunchAction )
+ if( aContext.Version == vcl::PDFWriter::PDF_A_1 &&
+ aContext.DefaultLinkAction == vcl::PDFWriter::LaunchAction )
{ //force the similar allowed URI action
- aContext.DefaultLinkAction = PDFWriter::URIActionDestination;
+ aContext.DefaultLinkAction = vcl::PDFWriter::URIActionDestination;
//and remove the remote goto action forced on PDF file
aContext.ForcePDFAction = false;
}
@@ -792,7 +791,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
aContext.SignTSA = msSignTSA;
// all context data set, time to create the printing device
- boost::scoped_ptr<PDFWriter> pPDFWriter(new PDFWriter( aContext, xEnc ));
+ boost::scoped_ptr<vcl::PDFWriter> pPDFWriter(new vcl::PDFWriter( aContext, xEnc ));
OutputDevice* pOut = pPDFWriter->GetReferenceDevice();
DBG_ASSERT( pOut, "PDFExport::Export: no reference device" );
@@ -980,14 +979,14 @@ uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL PDFEr
} // namespace
-void PDFExport::showErrors( const std::set< PDFWriter::ErrorCode >& rErrors )
+void PDFExport::showErrors( const std::set< vcl::PDFWriter::ErrorCode >& rErrors )
{
if( ! rErrors.empty() && mxIH.is() )
{
task::PDFExportException aExc;
aExc.ErrorCodes.realloc( sal_Int32(rErrors.size()) );
sal_Int32 i = 0;
- for( std::set< PDFWriter::ErrorCode >::const_iterator it = rErrors.begin();
+ for( std::set< vcl::PDFWriter::ErrorCode >::const_iterator it = rErrors.begin();
it != rErrors.end(); ++it, i++ )
{
aExc.ErrorCodes.getArray()[i] = (sal_Int32)*it;
@@ -999,7 +998,7 @@ void PDFExport::showErrors( const std::set< PDFWriter::ErrorCode >& rErrors )
-bool PDFExport::ImplExportPage( PDFWriter& rWriter, PDFExtOutDevData& rPDFExtOutDevData, const GDIMetaFile& rMtf )
+bool PDFExport::ImplExportPage( vcl::PDFWriter& rWriter, vcl::PDFExtOutDevData& rPDFExtOutDevData, const GDIMetaFile& rMtf )
{
const Size aSizePDF( OutputDevice::LogicToLogic( rMtf.GetPrefSize(), rMtf.GetPrefMapMode(), MAP_POINT ) );
Point aOrigin;
@@ -1041,10 +1040,10 @@ bool PDFExport::ImplExportPage( PDFWriter& rWriter, PDFExtOutDevData& rPDFExtOut
-void PDFExport::ImplWriteWatermark( PDFWriter& rWriter, const Size& rPageSize )
+void PDFExport::ImplWriteWatermark( vcl::PDFWriter& rWriter, const Size& rPageSize )
{
OUString aText( "Watermark" );
- Font aFont( OUString( "Helvetica" ), Size( 0, 3*rPageSize.Height()/4 ) );
+ vcl::Font aFont( OUString( "Helvetica" ), Size( 0, 3*rPageSize.Height()/4 ) );
aFont.SetItalic( ITALIC_NONE );
aFont.SetWidthType( WIDTH_NORMAL );
aFont.SetWeight( WEIGHT_NORMAL );
diff --git a/filter/source/pdf/pdfexport.hxx b/filter/source/pdf/pdfexport.hxx
index 5123bdc6c897..1015322e51e9 100644
--- a/filter/source/pdf/pdfexport.hxx
+++ b/filter/source/pdf/pdfexport.hxx
@@ -99,7 +99,7 @@ private:
sal_Int32 mnDefaultLinkAction;
bool mbConvertOOoTargetToPDFTarget;
bool mbExportBmkToDest;
- bool ImplExportPage( ::vcl::PDFWriter& rWriter, ::vcl::PDFExtOutDevData& rPDFExtOutDevData,
+ bool ImplExportPage( vcl::PDFWriter& rWriter, vcl::PDFExtOutDevData& rPDFExtOutDevData,
const GDIMetaFile& rMtf );
bool mbSignPDF;
@@ -110,7 +110,7 @@ private:
Reference< security::XCertificate > maSignCertificate;
OUString msSignTSA;
- void ImplWriteWatermark( ::vcl::PDFWriter& rWriter, const Size& rPageSize );
+ void ImplWriteWatermark( vcl::PDFWriter& rWriter, const Size& rPageSize );
public:
PDFExport( const Reference< XComponent >& rxSrcDoc,
diff --git a/filter/source/svg/svgdialog.cxx b/filter/source/svg/svgdialog.cxx
index 764fc89c99bb..c4417f56eea9 100644
--- a/filter/source/svg/svgdialog.cxx
+++ b/filter/source/svg/svgdialog.cxx
@@ -33,7 +33,6 @@
#define SVG_DIALOG_IMPLEMENTATION_NAME SVG_DIALOG_SERVICE_NAME
#define SVG_FILTER_DATA_NAME "FilterData"
-using namespace ::vcl;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
diff --git a/filter/source/svg/svgfontexport.cxx b/filter/source/svg/svgfontexport.cxx
index 231639aac3c3..cc2a5563660d 100644
--- a/filter/source/svg/svgfontexport.cxx
+++ b/filter/source/svg/svgfontexport.cxx
@@ -139,7 +139,7 @@ void SVGFontExport::implCollectGlyphs()
{
GlyphSet& rGlyphSet = implGetGlyphSet( pVDev->GetFont() );
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > xBI(
- ::vcl::unohelper::CreateBreakIterator() );
+ vcl::unohelper::CreateBreakIterator() );
if( xBI.is() )
{
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 59437328cd73..cbcc2992ddb0 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -2496,7 +2496,7 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const OUString& rText,
}
else
{
- ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > xBI( ::vcl::unohelper::CreateBreakIterator() );
+ ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > xBI( vcl::unohelper::CreateBreakIterator() );
const ::com::sun::star::lang::Locale& rLocale = Application::GetSettings().GetLanguageTag().getLocale();
sal_Int32 nCurPos = 0, nLastPos = 0, nX = aPos.X();