#NEWLINE# def setDocument( self , doc ) : #NEWLINE# #INDENT# '\n        Set the document this range is contained within\n\n        @param doc document to set\n        ' #NEWLINE# if ( self . m_document != self ) : #NEWLINE# #INDENT# self . m_document = doc #NEWLINE# self . m_range = createFromDocument ( doc )