attachmentsModel;
- protected JTextPane bodyPane;
-
- protected Action removeAttachmentAction;
-
- private boolean sent = false;
-//
-// public static void main( String args[] )
-// throws Exception
-// {
-// MailDialog mailDialog = new MailDialog( null );
-// mailDialog.setTo( "fredPalma@netcabo.pt" );
-// mailDialog.setBcc( "fpalma@evolute.pt" );
-// mailDialog.setSubject( "SIPRP - Marca\u00E7\u00E3o de consulta de 'Frederico Palma'" );
-// mailDialog.setMessage(
-// ""
-// + "Vimos pelo presente informar que 'Frederico Palma' deverá comparecer "
-// + "nas nossas instalações para a realização da consulta de Medicina "
-// + "do Trabalho, no dia '10-01-2008', pelas 08H30. "
-// + "
"
-// + ""
-// + "Solicitamos, também, que o colaborador seja portador do Boletim de Vacinas e "
-// + "dos últimos exames complementares realizados."
-// + "
"
-// + ""
-// + "Caso não seja possível a comparência deste colaborador na data "
-// + "indicada, contacte-nos, por favor, através do telefone 21 350 45 40 "
-// + "ou respondendo ao remetente desta mensagem."
-// + "
"
-// + ""
-// + "Cumprimentos,"
-// + "
"
-// + ""
-// + "SIPRP"
-//// color=\"#497895\"
-// + "
"
-// + ""
-// + "ATRIUM SALDANHA"
-// + "
"
-// + ""
-// + "Praça Duque de Saldanha, 1 - 9ºG"
-// + "
"
-// + ""
-// + "1050-094 Lisboa"
-// + "
" );
-// mailDialog.setSize( 1024, 768 );
-// mailDialog.setVisible( true );
-// System.exit( 0 );
-// }
-
- private final String[] additionalBCCs;
-
- public MailDialog( SIPRPFrame owner, String to, String bcc, String subject, String message, Vector files, String ... additionalBCCs)
- throws Exception
- {
- super( owner, true );
- this.additionalBCCs = additionalBCCs;
- this.owner = owner;
- commonStartup();
- setTo( to );
- setBcc( bcc );
- setSubject( subject );
- setMessage( message );
- attach( files );
- setModal( true );
- setSize( 800, 600 );
- setLocationRelativeTo( null );
- setVisible( true );
- }
-
-// public MailDialog( SIPRPFrame owner )
-// throws Exception
-// {
-// super( owner, true );
-// this.owner = owner;
-// commonStartup();
-// setModal( true );
-// setSize( 1024, 768 );
-// setVisible( true );
-// }
-
- private void commonStartup()
- throws Exception
- {
- setupComponents();
- if( owner != null )
- {
- centerSuper();
- }
- else
- {
- center();
- }
- }
-
- private void setupComponents()
- throws Exception
- {
- setLayout( new BorderLayout() );
- JPanel headerPanel = new JPanel();
- setupHeaderComponents( headerPanel );
- add( headerPanel, BorderLayout.NORTH );
- JPanel htmlPanel = new JPanel();
- setupHTMLComponents( htmlPanel );
- add( htmlPanel, BorderLayout.CENTER );
- }
-
- private void setupHeaderComponents( JPanel headerPanel )
- throws Exception
- {
- Action sendAction = new AbstractAction( "send" ){
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public void actionPerformed( ActionEvent e )
- {
- try
- {
- setCursor( new Cursor(Cursor.WAIT_CURSOR) );
- send();
- }
- finally
- {
- setCursor( new Cursor(Cursor.DEFAULT_CURSOR ) );
- }
- close();
- }
- };
- sendAction.putValue( Action.SHORT_DESCRIPTION, "Enviar" );
- JButton sendButton = createButton( sendAction, "siprp/medicina/processo/mail/icons/mail2.png" );
- Action attachAction = new AbstractAction( "attach" ){
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public void actionPerformed( ActionEvent e )
- {
- FileDialog fd = new FileDialog( owner, "Escolha um ficheiro", FileDialog.LOAD );
- fd.setDirectory( System.getProperty( "user.home" ) );
- fd.setVisible( true );
- // String filename = "c:\\test.xls";
- String filename = fd.getFile();
- if( filename != null )
- {
- String dir = fd.getDirectory();
- attach( filename, dir );
- }
- }
- };
- attachAction.putValue( Action.SHORT_DESCRIPTION, "Acrescentar anexo" );
- JButton attachButton = createButton( attachAction, "siprp/medicina/processo/mail/icons/mail_attachment.png" );
- removeAttachmentAction = new AbstractAction( "remove-attachment" ){
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public void actionPerformed( ActionEvent e )
- {
- int selected = attachmentsTable.getSelectedRow();
- if( selected > -1 && selected < attachmentsTable.getRowCount() )
- {
- attachmentsModel.removeRowAt( selected );
- }
- }
- };
- removeAttachmentAction.putValue( Action.SHORT_DESCRIPTION, "Remover anexo" );
- JButton removeAttachmentButton = createButton( removeAttachmentAction, "siprp/medicina/processo/mail/icons/delete2.png" );
- removeAttachmentAction.setEnabled( false );
-
- JPanel buttonPanel = new JPanel();
- buttonPanel.setLayout( new GridLayout( 1, 2 ) );
- JPanel leftButtonPanel = new JPanel();
- buttonPanel.add( leftButtonPanel );
- JPanel rightButtonPanel = new JPanel();
-// buttonPanel.add( rightButtonPanel );
- leftButtonPanel.setLayout( new FlowLayout( FlowLayout.LEFT ) );
- leftButtonPanel.add( sendButton );
- rightButtonPanel.setLayout( new FlowLayout( FlowLayout.RIGHT ) );
- rightButtonPanel.add( attachButton );
- rightButtonPanel.add( removeAttachmentButton );
-
- JLabel toLabel = new JLabel( "Para:" );
- toText = new JTextField();
- JLabel bccLabel = new JLabel( "C\u00f3pia:" );
- bccText = new JTextField();
- JLabel assuntoLabel = new JLabel( "Assunto:" );
- subjectText = new JTextField();
- attachmentsModel = new VectorTableModel( new String[]{ "" } );
- attachmentsTable = new BaseTable( attachmentsModel );
-// JScrollPane attachmentsScroll = new JScrollPane( attachmentsTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
-// JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
- attachmentsTable.getSelectionModel().addListSelectionListener( new ListSelectionListener(){
-
- @Override
- public void valueChanged(ListSelectionEvent e)
- {
- removeAttachmentAction.setEnabled( attachmentsTable.getSelectedRow() != -1 );
- }
-
- } );
-
- TableLayout layout =
- new TableLayout(
- new double[]{ TableLayoutConstraints.MINIMUM, TableLayoutConstraints.FILL },
- new double[]{ TableLayoutConstraints.PREFERRED, TableLayoutConstraints.MINIMUM, TableLayoutConstraints.MINIMUM,
- TableLayoutConstraints.MINIMUM } );
- layout.setHGap( 2 );
- layout.setVGap( 2 );
-
- headerPanel.setLayout( layout );
- headerPanel.add( buttonPanel, new TableLayoutConstraints( 0, 0, 1, 0 ) );
- headerPanel.add( toLabel, new TableLayoutConstraints( 0, 1 ) );
- headerPanel.add( toText, new TableLayoutConstraints( 1, 1 ) );
-// headerPanel.add( attachmentsScroll, new TableLayoutConstraints( 2, 1, 2, 3 ) );
- headerPanel.add( bccLabel, new TableLayoutConstraints( 0, 2 ) );
- headerPanel.add( bccText, new TableLayoutConstraints( 1, 2 ) );
- headerPanel.add( assuntoLabel, new TableLayoutConstraints( 0, 3 ) );
- headerPanel.add( subjectText, new TableLayoutConstraints( 1, 3 ) );
- }
-
- private void setupHTMLComponents( JPanel htmlPanel )
- throws Exception
- {
- HTMLEditorKit kit = new HTMLEditorKit();
- Action actions[] = kit.getActions();
- Vector fontSizeActions =
- new Vector();
- for( int n = 0; n < actions.length; n++ )
- {
- String str = actions[ n ].getValue( Action.NAME ).toString();
- if( str.toLowerCase().indexOf( "font-size" ) != -1 )
- {
- int size = Integer.parseInt( str.split( "-" )[ 2 ] );
- if( size == 16 )
- {
- continue;
- }
- fontSizeActions.add( ( StyledEditorKit.FontSizeAction ) actions[ n ] );
- }
- }
-
- FONT_SIZE_ACTIONS = fontSizeActions.toArray( new StyledEditorKit.FontSizeAction[ fontSizeActions.size() ] );
- Arrays.sort( FONT_SIZE_ACTIONS, new Comparator(){
- public int compare( StyledEditorKit.FontSizeAction fsa1, StyledEditorKit.FontSizeAction fsa2 )
- {
- String str1 = fsa1.getValue( Action.NAME ).toString();
- String str2 = fsa2.getValue( Action.NAME ).toString();
- int size1 = Integer.parseInt( str1.split( "-" )[ 2 ] );
- int size2 = Integer.parseInt( str2.split( "-" )[ 2 ] );
- return size1 > size2 ? 1 : -1;
- }
- } );
- FONT_SIZES = new int[ FONT_SIZE_ACTIONS.length ];
- for( int n = 0; n < FONT_SIZES.length; n++ )
- {
- FONT_SIZES[ n ] = Integer.parseInt( FONT_SIZE_ACTIONS[ n ].getValue( Action.NAME ).toString().split( "-" )[ 2 ] );
- }
-
- bodyPane = new JTextPane();
- bodyPane.setEditorKit( kit );
- ActionMap actionMap = bodyPane.getActionMap();
-
- Action cutAction = actionMap.get( DefaultEditorKit.cutAction );
- cutAction.putValue( Action.SHORT_DESCRIPTION, "Cortar" );
- Action copyAction = actionMap.get( DefaultEditorKit.copyAction );
- copyAction.putValue( Action.SHORT_DESCRIPTION, "Copiar" );
- Action pasteAction = actionMap.get( DefaultEditorKit.pasteAction );
- pasteAction.putValue( Action.SHORT_DESCRIPTION, "Colar" );
-
- Action boldAction = actionMap.get( "font-bold" );
- boldAction.putValue( Action.SHORT_DESCRIPTION, "Bold" );
- Action italicAction = actionMap.get( "font-italic" );
- italicAction.putValue( Action.SHORT_DESCRIPTION, "It\u00e1lico" );
- Action underlineAction = actionMap.get( "font-underline" );
- underlineAction.putValue( Action.SHORT_DESCRIPTION, "Sublinhado" );
- Action fontBiggerAction = new StyledEditorKit.FontSizeAction( "font-bigger", 30 ){
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public void actionPerformed( ActionEvent e )
- {
-
- int start = bodyPane.getSelectionStart();
- AttributeSet set = bodyPane.getStyledDocument().getCharacterElement( start ).getAttributes();
- int size = StyleConstants.getFontSize( set );
- for( int n = 0; n < FONT_SIZES.length; n++ )
- {
- if( size < FONT_SIZES[ n ] )
- {
- FONT_SIZE_ACTIONS[ n ].actionPerformed( e );
- break;
- }
- }
- bodyPane.requestFocusInWindow();
- }
- };
- fontBiggerAction.putValue( Action.SHORT_DESCRIPTION, "Fonte maior" );
- Action fontSmallerAction =
- new StyledEditorKit.FontSizeAction( "font-smaller", 5 ){
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public void actionPerformed( ActionEvent e )
- {
-
- int start = bodyPane.getSelectionStart();
- AttributeSet set = bodyPane.getStyledDocument().getCharacterElement( start ).getAttributes();
- int size = StyleConstants.getFontSize( set );
- for( int n = FONT_SIZES.length - 1; n >= 0; n-- )
- {
- if( size > FONT_SIZES[ n ] )
- {
- FONT_SIZE_ACTIONS[ n ].actionPerformed( e );
- break;
- }
- }
- bodyPane.requestFocusInWindow();
- }
- };
- fontSmallerAction.putValue( Action.SHORT_DESCRIPTION, "Fonte menor" );
- Action colorAction =
- new StyledEditorKit.ForegroundAction( "color", Color.black ){
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- public void actionPerformed( ActionEvent e )
- {
- ColorChooserDialog dialog = new ColorChooserDialog( owner, Color.black );
- dialog.setVisible( true );
- Color color = dialog.getColor();
- if( color != null )
- {
- bodyPane.requestFocusInWindow();
- Action colorTempAction = new StyledEditorKit.ForegroundAction( "color-temp", color );
- bodyPane.getActionMap().put( "color-temp", colorTempAction );
- colorTempAction.actionPerformed( e );
- }
- bodyPane.requestFocusInWindow();
- }
- };
- colorAction.putValue( Action.SHORT_DESCRIPTION, "C\u00f4r" );
- String fontFamilies[] = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
- JComboBox fontCombo = new JComboBox();
- for( int n = 0; n < fontFamilies.length; n++ )
- {
- fontCombo.addItem( fontFamilies[ n ] );
- }
- fontCombo.addItemListener( new ItemListener(){
-
- @Override
- public void itemStateChanged(ItemEvent e)
- {
- String selected = ( String ) e.getItem();
- Action fontFamilyAction =
- new StyledEditorKit.FontFamilyAction( "font-family-action" , selected );
- bodyPane.getActionMap().put( "font-family-action", fontFamilyAction );
- fontFamilyAction.actionPerformed(
- new ActionEvent( e.getSource(), e.getID(), "" ) );
- bodyPane.requestFocusInWindow();
- }
- } );
-
- Action alignLeftAction = actionMap.get( "left-justify" );
- alignLeftAction.putValue( Action.SHORT_DESCRIPTION, "Alinhado \u00e0 esquerda" );
- Action alignCenterAction = actionMap.get( "center-justify" );
- alignCenterAction.putValue( Action.SHORT_DESCRIPTION, "Centrado" );
- Action alignRightAction = actionMap.get( "right-justify" );
- alignRightAction.putValue( Action.SHORT_DESCRIPTION, "Alinhado \u00e0 direita" );
- Action alignJustifyAction =
- new StyledEditorKit.AlignmentAction( "justify",
- javax.swing.text.StyleConstants.ALIGN_JUSTIFIED );
- actionMap.put( "justify", alignJustifyAction );
- alignJustifyAction.putValue( Action.SHORT_DESCRIPTION, "Justificado" );
-
- JButton exportButton = new JButton( "X" );
- exportButton.addActionListener( new ActionListener(){
- public void actionPerformed( ActionEvent e )
- {
- System.out.println( bodyPane.getText() );
- }
- } );
-
- JPanel upperPanel = new JPanel();
- upperPanel.setLayout( new FlowLayout( FlowLayout.LEFT ) );
- upperPanel.add( exportButton );
- upperPanel.add( createButton( cutAction, "siprp/medicina/processo/mail/icons/cut.png" ) );
- upperPanel.add( createButton( copyAction, "siprp/medicina/processo/mail/icons/copy.png" ) );
- upperPanel.add( createButton( pasteAction, "siprp/medicina/processo/mail/icons/paste.png" ) );
- upperPanel.add( new JLabel( " " ) );
- upperPanel.add( createButton( boldAction, "siprp/medicina/processo/mail/icons/text_bold.png" ) );
- upperPanel.add( createButton( italicAction, "siprp/medicina/processo/mail/icons/text_italics.png" ) );
- upperPanel.add( createButton( underlineAction, "siprp/medicina/processo/mail/icons/text_underlined.png" ) );
- upperPanel.add( createButton( fontBiggerAction, "siprp/medicina/processo/mail/icons/font_bigger.png" ) );
- upperPanel.add( createButton( fontSmallerAction, "siprp/medicina/processo/mail/icons/font_smaller.png" ) );
- upperPanel.add( createButton( colorAction, "siprp/medicina/processo/mail/icons/colorwheel.png" ) );
- upperPanel.add( fontCombo );
- upperPanel.add( new JLabel( " " ) );
- upperPanel.add( createButton( alignLeftAction, "siprp/medicina/processo/mail/icons/text_align_left.png" ) );
- upperPanel.add( createButton( alignCenterAction, "siprp/medicina/processo/mail/icons/text_align_center.png" ) );
- upperPanel.add( createButton( alignRightAction, "siprp/medicina/processo/mail/icons/text_align_right.png" ) );
- upperPanel.add( createButton( alignJustifyAction, "siprp/medicina/processo/mail/icons/text_align_justified.png" ) );
-
- htmlPanel.setLayout( new BorderLayout() );
-
- htmlPanel.add( upperPanel, BorderLayout.NORTH );
- htmlPanel.add( new JScrollPane( bodyPane, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
- JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ), BorderLayout.CENTER );
- }
-
- private JButton createButton( Action action, String iconPath )
- throws Exception
- {
- action.putValue( Action.SMALL_ICON, ImageIconLoader.loadImageIcon( iconPath ) );
- JButton button = new JButton( action );
- button.setText( null );
-
- return button;
- }
-
- public void setTo( String to )
- {
- toText.setText( to );
- }
-
- public String getTo()
- {
- return toText.getText();
- }
-
- public void setBcc( String bcc )
- {
- bccText.setText( bcc );
- }
-
- public String getBcc()
- {
- return bccText.getText();
- }
-
- public void setSubject( String subject )
- {
- subjectText.setText( subject );
- }
-
- public String getSubject()
- {
- return subjectText.getText();
- }
-
- public void setMessage( String message )
- {
- bodyPane.setText( message );
- }
-
- public String getMessage()
- {
- return bodyPane.getText();
- }
-
- public void send()
- {
-// close();
- String to = toText.getText();
- String bcc = bccText.getText();
- if( additionalBCCs != null )
- {
- String bccconcat = "";
- for( String b : additionalBCCs )
- {
- bccconcat += b + ", ";
- }
- bcc = bccconcat + bcc;
- if( bcc.endsWith( ", " ) )
- {
- bcc = bcc.substring( 0, bcc.length() - 2 );
- }
- }
- String subject = subjectText.getText();
- String body = bodyPane.getText();
- String attachmentList[] = new String[ attachmentsTable.getRowCount() ];
- List attachments = new LinkedList();
- Vector values = attachmentsModel.getValues();
- for( int n = 0; n < attachmentList.length; n++ )
- {
- String str = values.elementAt( n );
- String name = str.substring( 0, str.indexOf( "(") - 1 );
- String path = str.substring( str.indexOf( "(") + 1, str.indexOf( ")") );
-// try
-// {
- File file = new File(path + name);
- if( file != null && file.exists() )
- {
- attachments.add(file);
- }
-// FileInputStream fis = new FileInputStream( path + name );
-// Vector bytes = new Vector();
-// int available = 0;
-// int total = 0;
-// while( ( available = fis.available() ) > 0 )
-// {
-// byte b[] = new byte[ available ];
-// fis.read( b );
-// bytes.add( b );
-// total += available;
-// }
-// attachments[ n ] = new byte[ total ];
-// int pos = 0;
-// for( byte[] chunk : bytes )
-// {
-// System.arraycopy( chunk, 0, attachments[ n ], pos, chunk.length );
-// pos += chunk.length;
-// }
-// }
-// catch( FileNotFoundException fnfex )
-// {
-// JOptionPane.showMessageDialog( owner,
-// "O ficheiro " + path + name + " n\u00e3o existe.",
-// "Ficheiro inexistente",
-// JOptionPane.ERROR_MESSAGE );
-// return;
-// }
-// catch( IOException ioex )
-// {
-// DialogException.showExceptionMessage( ioex, "Erro a ler ficheiro " + path + name, true );
-// return;
-// }
- }
- MailSender sender = new MailSender();
- try
- {
- sender.send( to, bcc, subject, body, attachmentList, attachments );
- sent = true;
- }
- catch( Exception ex )
- {
- ex.printStackTrace();
- }
- }
-
- public boolean wasSent()
- {
- return sent;
- }
-
- public void close()
- {
- SwingUtilities.invokeLater( new Runnable(){
- public void run()
- {
- setVisible( false );
- dispose();
- }
- } );
-
- }
-
- private void attach( Vector files )
- {
- for (File file : files )
- {
- attach( file.getName(), file.getParent() + File.separator );
- }
- }
-
- public void attach( String filename, String dir )
- {
- String full = filename + " (" + dir + ")";
- Vector values = attachmentsModel.getValues();
- values.add( full );
- attachmentsModel.setValues( values );
- }
-}
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/MailSender.java b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/MailSender.java
deleted file mode 100644
index 58f8d71d..00000000
--- a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/MailSender.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package siprp.medicina.processo.mail;
-
-import java.io.File;
-import java.util.Date;
-import java.util.List;
-import java.util.Properties;
-
-import javax.activation.DataHandler;
-import javax.activation.DataSource;
-import javax.activation.FileDataSource;
-import javax.mail.Address;
-import javax.mail.Authenticator;
-import javax.mail.Message;
-import javax.mail.Multipart;
-import javax.mail.PasswordAuthentication;
-import javax.mail.Session;
-import javax.mail.Transport;
-import javax.mail.internet.InternetAddress;
-import javax.mail.internet.MimeBodyPart;
-import javax.mail.internet.MimeMessage;
-import javax.mail.internet.MimeMultipart;
-
-public class MailSender
-{
- public static final String from = "departamentotecnico@siprp.pt";
- protected String mailServer = "mail2.evolute.pt";
- protected String userName = "auto@siprp.pt";
- protected String password = "sdfoyias78e";
-
- public MailSender()
- {
-
- }
-
- public void send( String to, String bcc, String subject, String body, String attachmentNames[], List attachments ) throws Exception
- {
- Properties props = System.getProperties();
- props.put( "mail.smtp.host", mailServer );
- props.put( "mail.smtp.auth", "true" );
-
- Authenticator auth = new SMTPAuthenticator();
- Session session = Session.getInstance( props, auth );
-
- MimeMessage msg = new MimeMessage( session );
-
- msg.setFrom( new InternetAddress( from ) );
- msg.setReplyTo( new Address[]{ new InternetAddress(from)} );
- msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to, true ) );
- msg.setRecipients( Message.RecipientType.CC, InternetAddress.parse( bcc, true ) );
- msg.setSubject( subject );
-
- MimeBodyPart bodyPart = new MimeBodyPart();
- bodyPart.setContent( body,"text/html" );
-
- Multipart multipart = new MimeMultipart();
- multipart.addBodyPart(bodyPart);
-
- if( attachmentNames != null && !attachments.isEmpty() )
- {
- for(int i = 0; i < attachmentNames.length; ++i )
- {
-// String attachName = attachmentNames[i];
- MimeBodyPart attachPart = new MimeBodyPart();
- DataSource dataSource = new FileDataSource(attachments.get(i));
- attachPart.setDataHandler( new DataHandler(dataSource));
- attachPart.setFileName(attachments.get(i).getName());
- multipart.addBodyPart(attachPart, i + 1);
- }
- }
- msg.setContent(multipart);
- msg.setHeader( "X-Mailer", "Evolute Mailer" );
- msg.setSentDate( new Date() );
- Transport.send( msg );
- }
-
- private class SMTPAuthenticator extends javax.mail.Authenticator
- {
-
- public PasswordAuthentication getPasswordAuthentication()
- {
- return new PasswordAuthentication(userName, password);
- }
- }
-}
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/Thumbs.db b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/Thumbs.db
deleted file mode 100644
index d1514ff6..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/Thumbs.db and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/arrow_down.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/arrow_down.png
deleted file mode 100644
index ad8f6a36..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/arrow_down.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/colorwheel.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/colorwheel.png
deleted file mode 100644
index a655727e..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/colorwheel.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/copy.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/copy.png
deleted file mode 100644
index 87cf5c96..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/copy.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/cut.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/cut.png
deleted file mode 100644
index bb623773..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/cut.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/delete2.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/delete2.png
deleted file mode 100644
index c617f7dc..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/delete2.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font.png
deleted file mode 100644
index a87f6e45..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font_bigger.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font_bigger.png
deleted file mode 100644
index 2f9217ee..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font_bigger.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font_smaller.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font_smaller.png
deleted file mode 100644
index e7dafe03..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/font_smaller.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/mail2.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/mail2.png
deleted file mode 100644
index 6315fdc2..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/mail2.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/mail_attachment.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/mail_attachment.png
deleted file mode 100644
index 668440ad..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/mail_attachment.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/paste.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/paste.png
deleted file mode 100644
index e3397b27..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/paste.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_center.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_center.png
deleted file mode 100644
index fceafc18..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_center.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_justified.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_justified.png
deleted file mode 100644
index 639e7f63..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_justified.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_left.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_left.png
deleted file mode 100644
index d930bf9d..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_left.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_right.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_right.png
deleted file mode 100644
index 6570be7f..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_align_right.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_bold.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_bold.png
deleted file mode 100644
index 4fb8dd90..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_bold.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_italics.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_italics.png
deleted file mode 100644
index 14db2c1d..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_italics.png and /dev/null differ
diff --git a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_underlined.png b/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_underlined.png
deleted file mode 100644
index 0e5fb06c..00000000
Binary files a/trunk/SIPRPSoft/src/siprp/medicina/processo/mail/icons/text_underlined.png and /dev/null differ