He took the oath of office Tuesday before parliament and several foreign dignitaries , including Libyan leader Moammar Gadhafi .