First the relevant rules quotes:
What the question is - if a rogue is hidden from an enemy behind cover, and moves out of cover to attack an enemy (in the turn) does the rogue have CA vs the enemy for being hidden? Does him moving out from cover count as the action, so he doesn't have CA when he starts the next action (the attack)? Would the answer be different if the rogue charged out of cover/concealment?
Keep Out of Sight: If you no longer have any cover or concealment against an enemy, you don’t remain hidden from that enemy. You don’t need superior cover, total concealment, or to stay outside line of sight, but you do need some degree of cover or concealment to remain hidden. You can’t use another creature as cover to remain hidden.
Not Remaining Hidden: If you take an action that causes you not to remain hidden, you retain the benefits of being hidden until you resolve the action. You can’t become hidden again as part of that same action.
What the question is - if a rogue is hidden from an enemy behind cover, and moves out of cover to attack an enemy (in the turn) does the rogue have CA vs the enemy for being hidden? Does him moving out from cover count as the action, so he doesn't have CA when he starts the next action (the attack)? Would the answer be different if the rogue charged out of cover/concealment?