CQL Descripton

Hi,

 

I would like to write a macro which can identify a certain shape and replace it with another one. 

I guess the CQL provides a very nice way to find shapes, unfortunately I haven't found a documentation in detail about it. There is this blog post which helps : 

http://community.coreldraw.com/blogs/insider/pages/using-corel-query-language-cql-to-search-for-objects-in-coreldraw-documents.aspx

 

But it isn't quite complete and detailed as necessary for me. I searched a lot, but could not find a good documentation about CQL. Please help me out.