To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=108926
User yujinliang changed the following:
What |Old value |New value
================================================================================
Status|STARTED |RESOLVED
--------------------------------------------------------------------------------
Resolution| |FIXED
--------------------------------------------------------------------------------
------- Additional comments from [email protected] Thu Feb 4 12:28:39
+0000 2010 -------
I have fixed it
my code:
--- sd/source/ui/dlg/custsdlg.cxx 2010-02-04 10:47:13.576798163 +0800
+++ sd/source/ui/dlg/custsdlg.cxx.new 2010-02-04 10:40:27.903900089 +0800
@@ -402,6 +402,34 @@
//BOOL bCSPages = aLbCustomPages.GetSelectEntryPos() !=
LISTBOX_ENTRY_NOTFOUND;
BOOL bCSPages = aLbCustomPages.FirstSelected() != NULL;
BOOL bCount = aLbCustomPages.GetEntryCount() > 0;
+ //check Sdpage Exclude attribute,
+ USHORT nCount = aLbPages.GetSelectEntryCount();
+ if( bPages && nCount > 0 )
+ {
+
+
+ for( USHORT i = 0; i < nCount; i++ )
+ {
+
+ SdPage* pPage = rDoc.GetSdPage( (USHORT) aLbPages.
+ GetSelectEntryPos( i ), PK_STANDARD );
+ if( bPages && pPage )
+ {
+ if ( pPage->IsExcluded() )
+ {
+ bPages = FALSE;//disable add button
while SdPage::IsExcluded() is TRUE;
+ }
+ }
+ else
+ {
+ bPages = FALSE;
+ }
+
+
+ }
+
+ }
+
aBtnOK.Enable( bCount );
aBtnAdd.Enable( bPages );
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]