Office Depot agreed to buy OfficeMax in an all-stock deal that values the rival office-supplies retailer at roughly $1.19 billion, the Wall Street Journal and Associated Press report.