Every court may punish contempts against it whether such contempts be direct, indirect, or constructive, and in any such proceeding the court shall proceed to hear and determine all questions of law and fact.