| 506 | | /// @brief Set the document's number of pages. |
| | 508 | /// @brief Gets the password used to open the document. |
| | 509 | /// |
| | 510 | /// @return The password used to open the document, or NULL |
| | 511 | /// if no password was used. |
| | 512 | /// |
| | 513 | const gchar * |
| | 514 | IDocument::getPassword () |
| | 515 | { |
| | 516 | return m_Password; |
| | 517 | } |
| | 518 | |
| | 519 | /// |
| | 520 | /// @brief Sets the password user to open the document. |
| | 521 | /// |
| | 522 | /// @param password The password used. |
| | 523 | /// |
| | 524 | void |
| | 525 | IDocument::setPassword (const gchar *password) |
| | 526 | { |
| | 527 | gchar *oldPassword = m_Password; |
| | 528 | m_Password = g_strdup (password); |
| | 529 | g_free (oldPassword); |
| | 530 | } |
| | 531 | |
| | 532 | /// |
| | 533 | /// @brief Sets the document's number of pages. |