Lines Matching defs:format
151 wxFAIL_MSG( wxT("invalid data format") );
159 wxT("name of predefined format cannot be retrieved") );
164 void wxDataFormat::SetId( NativeFormat format )
171 m_format = (NativeFormat) CFStringCreateCopy(NULL, (CFStringRef)format);
172 if ( UTTypeConformsTo( (CFStringRef)format, CFSTR("public.utf16-plain-text") ) )
176 else if ( UTTypeConformsTo( (CFStringRef)format, CFSTR("public.plain-text") ) )
181 else if ( UTTypeConformsTo( (CFStringRef)format, CFSTR("public.tiff") ) )
185 else if ( UTTypeConformsTo( (CFStringRef)format, CFSTR("com.adobe.pdf") ) )
190 else if ( UTTypeConformsTo( (CFStringRef)format, CFSTR("com.apple.pict") ) )
195 else if ( UTTypeConformsTo( (CFStringRef)format, CFSTR("public.file-url") ) )
202 m_id = wxMacCFStringHolder( (CFStringRef) CFRetain((CFStringRef) format )).AsString();
219 bool wxDataFormat::operator==(const wxDataFormat& format) const
221 if (IsStandard() || format.IsStandard())
222 return ( format.m_type == m_type );
224 return ( UTTypeConformsTo( (CFStringRef) m_format , (CFStringRef) format.m_format ) );
743 bool wxBitmapDataObject::GetDataHere( const wxDataFormat& format, void *pBuf ) const
754 if ( format != GetPreferredFormat() )
762 size_t wxBitmapDataObject::GetDataSize( const wxDataFormat& format ) const
764 if ( format != GetPreferredFormat() )
820 bool wxBitmapDataObject::SetData( const wxDataFormat& format, size_t nSize, const void *pBuf )
832 if ( format == s_pict )
867 OSStatus err = OpenADefaultComponent(GraphicsImporterComponentType, s_pict == format ? kQTFileTypePicture : kQTFileTypeTIFF, &importer);
884 if ( format == s_pict )