Once the extension is installed, you can assign categories to any page from the backend, at Extended tab.
To use the methods defined you just like to include the class and call to the function.
<?php
...
if (t3lib_extMgm::isLoaded('gl_pages_cat')) { require_once(t3lib_extMgm::extPath('gl_pages_cat').'class.tx_glpagescat_div.php');}
...
$news = tx_glpagescat_div::getNewsCategorized();
...
$categories = tx_glpagescat_div::getPageCategories();
...
?>
If you like that tt_news plugin shows only items with one of the categories than the current page you can use the next TypoScript code:
...
includeLibs.user_pages_cat = EXT:gl_pages_cat/class.tx_glpagescat_div.php
lib.page.category = USER
lib.page.category.preUserFunc = tx_glpagescat_div->getPageCategories
plugin.tt_news.categorySelection < lib.page.category
plugin.tt_news.categoryMode = 1
...