ooo-build r14525 - in branches/ooo-build-3-0: . patches/dev300



Author: kyoshida
Date: Tue Nov 18 05:27:10 2008
New Revision: 14525
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14525&view=rev

Log:
2008-11-18  Kohei Yoshida  <kyoshida novell com>

	* patches/dev300/document-password-change-sfx2.diff: flag the document 
	modified when the document password changes in the File - Document 
	Properties dialog.


Modified:
   branches/ooo-build-3-0/ChangeLog
   branches/ooo-build-3-0/patches/dev300/document-password-change-sfx2.diff

Modified: branches/ooo-build-3-0/patches/dev300/document-password-change-sfx2.diff
==============================================================================
--- branches/ooo-build-3-0/patches/dev300/document-password-change-sfx2.diff	(original)
+++ branches/ooo-build-3-0/patches/dev300/document-password-change-sfx2.diff	Tue Nov 18 05:27:10 2008
@@ -21,7 +21,7 @@
  protected:
  	SfxDocumentPage( Window* pParent, const SfxItemSet& );
 diff --git sfx2/source/dialog/dinfdlg.cxx sfx2/source/dialog/dinfdlg.cxx
-index 075f9ee..b897c9c 100644
+index 075f9ee..811c068 100644
 --- sfx2/source/dialog/dinfdlg.cxx
 +++ sfx2/source/dialog/dinfdlg.cxx
 @@ -66,6 +66,7 @@
@@ -51,7 +51,7 @@
  
      // if the button text is too wide, then broaden it
      const long nOffset = 12;
-@@ -878,6 +882,31 @@ IMPL_LINK( SfxDocumentPage, SignatureHdl, PushButton*, EMPTYARG )
+@@ -878,6 +882,32 @@ IMPL_LINK( SfxDocumentPage, SignatureHdl, PushButton*, EMPTYARG )
      return 0;
  }
  
@@ -75,6 +75,7 @@
 +
 +        String aNewPass = pDlg->GetPassword();
 +        pMedSet->Put( SfxStringItem(SID_PASSWORD, aNewPass) );
++        pShell->SetModified(true);
 +    }
 +    while (false);
 +    return 0;
@@ -83,7 +84,7 @@
  void SfxDocumentPage::ImplUpdateSignatures()
  {
  	SfxObjectShell*	pDoc = SfxObjectShell::Current();
-@@ -913,6 +942,34 @@ void SfxDocumentPage::ImplUpdateSignatures()
+@@ -913,6 +943,34 @@ void SfxDocumentPage::ImplUpdateSignatures()
  	}
  }
  
@@ -154,4 +155,3 @@
  	FixedLine FL_FILE_1
  	{
  		Pos = MAP_APPFONT ( 6 , 31 ) ;
-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]