| 596 | } |
| 597 | |
| 598 | int DocViewNative::doCommand( int cmd, int param ) |
| 599 | { |
| 600 | switch (cmd) { |
| 601 | case DCMD_OPEN_RECENT_BOOK: |
| 602 | { |
| 603 | return openRecentBook(); |
| 604 | } |
| 605 | break; |
| 606 | case DCMD_CLOSE_BOOK: |
| 607 | { |
| 608 | return closeBook(); |
| 609 | } |
| 610 | break; |
| 611 | case DCMD_RESTORE_POSITION: |
| 612 | { |
| 613 | if ( _docview->isDocumentOpened() ) { |
| 614 | _docview->restorePosition(); |
| 615 | } |
| 616 | } |
| 617 | break; |
| 618 | default: |
| 619 | return 0; |
| 620 | } |
| 621 | return 1; |
| 622 | } |
| 623 | |
| 624 | |
| 625 | /* |
no test coverage detected