| | 308 | /// @brief The "Zoom Fit Best" was activated. |
| | 309 | /// |
| | 310 | void |
| | 311 | MainPter::zoomFitActivated (void) |
| | 312 | { |
| | 313 | g_assert ( NULL != m_Document && "Tried to zoom fit a NULL document."); |
| | 314 | |
| | 315 | gint width; |
| | 316 | gint height; |
| | 317 | getView ().getPageViewSize (&width, &height); |
| | 318 | m_Document->zoomToFit (width, height); |
| | 319 | showPage (); |
| | 320 | } |
| | 321 | |
| | 322 | /// |
| | 323 | /// @brief The "Zoom In" was activated. |
| | 324 | /// |
| | 325 | void |
| | 326 | MainPter::zoomInActivated (void) |
| | 327 | { |
| | 328 | g_assert ( NULL != m_Document && "Tried to zoom in a NULL document."); |
| | 329 | |
| | 330 | m_Document->zoomIn (); |
| | 331 | showPage (); |
| | 332 | } |
| | 333 | |
| | 334 | /// |
| | 335 | /// @brief The "Zoom Out" was activated. |
| | 336 | /// |
| | 337 | void |
| | 338 | MainPter::zoomOutActivated (void) |
| | 339 | { |
| | 340 | g_assert ( NULL != m_Document && "Tried to zoom out a NULL document."); |
| | 341 | |
| | 342 | m_Document->zoomOut (); |
| | 343 | showPage (); |
| | 344 | } |
| | 345 | |
| | 346 | /// |
| | 347 | /// @brief The "Zoom Fit Width" was activated. |
| | 348 | /// |
| | 349 | void |
| | 350 | MainPter::zoomWidthActivated (void) |
| | 351 | { |
| | 352 | g_assert ( NULL != m_Document && "Tried to zoom width a NULL document."); |
| | 353 | |
| | 354 | gint width; |
| | 355 | gint height; |
| | 356 | getView ().getPageViewSize (&width, &height); |
| | 357 | m_Document->zoomToWidth (width); |
| | 358 | showPage (); |
| | 359 | } |
| | 360 | |
| | 361 | /// |