transfer.cxx (cdf0e10c) transfer.cxx (8178a74e)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 136 unchanged lines hidden (view full) ---

145
146 return rOStm;
147}
148
149// -----------------------------------------------------------------------------
150// the reading of the parameter is done using the special service ::com::sun::star::datatransfer::MimeContentType,
151// a similar approach should be implemented for creation of the mimetype string;
152// for now the set of acceptable characters has to be hardcoded, in future it should be part of the service that creates the mimetype
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 136 unchanged lines hidden (view full) ---

145
146 return rOStm;
147}
148
149// -----------------------------------------------------------------------------
150// the reading of the parameter is done using the special service ::com::sun::star::datatransfer::MimeContentType,
151// a similar approach should be implemented for creation of the mimetype string;
152// for now the set of acceptable characters has to be hardcoded, in future it should be part of the service that creates the mimetype
153const ::rtl::OUString aQuotedParamChars = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "()<>@,;:\\\"/[]?=!#$%&'*+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~. " ) );
153const ::rtl::OUString aQuotedParamChars = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "()<>@,;:/[]?=!#$&'*+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~. " ) );
154
155static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescriptor& rObjDesc )
156{
157 const ::rtl::OUString aChar( ::rtl::OUString::createFromAscii( "\"" ) );
158 const ::rtl::OUString aClassName( rObjDesc.maClassName.GetHexName() );
159 ::rtl::OUString aParams;
160
161 if( aClassName.getLength() )

--- 2253 unchanged lines hidden ---
154
155static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescriptor& rObjDesc )
156{
157 const ::rtl::OUString aChar( ::rtl::OUString::createFromAscii( "\"" ) );
158 const ::rtl::OUString aClassName( rObjDesc.maClassName.GetHexName() );
159 ::rtl::OUString aParams;
160
161 if( aClassName.getLength() )

--- 2253 unchanged lines hidden ---