Freud described the evolution of his clinical method and set out his theory of the psychogenetic origins of hysteria, demonstrated in a number of case histories, in Studies on Hysteria published in 1895 (co-authored with Josef Breuer ). In 1899 he published The Interpretation of Dreams in which, following a critical review of existing theory, Freud gives detailed interpretations of his own and his patients' dreams in terms of wish-fulfillments made subject to the repression and censorship of the "dream work". He then sets out the theoretical model of mental structure (the unconscious, pre-conscious and conscious) on which this account is based. An abridged version, On Dreams , was published in 1901. In works which would win him a more general readership, Freud applied his theories outside the clinical setting in The Psychopathology of Everyday Life (1901) and Jokes and their Relation to the Unconscious (1905).  In Three Essays on the Theory of Sexuality , published in 1905, Freud elaborates his theory of infantile sexuality, describing its "polymorphous perverse" forms and the functioning of the "drives", to which it gives rise, in the formation of sexual identity.  The same year he published ‘Fragment of an Analysis of a Case of Hysteria ( Dora )' which became one of his more famous and controversial case studies. 
Projection , which Anna Freud also called displacement outward, is almost the complete opposite of turning against the self. It involves the tendency to see your own unacceptable desires in other people. In other words, the desires are still there, but they're not your desires anymore. I confess that whenever I hear someone going on and on about how aggressive everybody is, or how perverted they all are, I tend to wonder if this person doesn't have an aggressive or sexual streak in themselves that they'd rather not acknowledge.