font operations now make the document unclean. they can't be undone, but R5 doesn't let you undo them either.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1865 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2002-11-07 00:08:05 +00:00
parent 844ea151d0
commit a49482266a

View File

@ -958,6 +958,11 @@ StyledEditWindow::SetFontSize(float fontSize)
fTextView->GetFontAndColor(&font,&sameProperties);
font.SetSize(fontSize);
fTextView->SetFontAndColor(&font,B_FONT_SIZE);
fClean = false;
fUndoCleans = false;
fRedoCleans = false;
fRevertItem->SetEnabled(fSaveMessage != NULL);
fSaveItem->SetEnabled(true);
}/***StyledEditWindow::SetFontSize()***/
void
@ -968,7 +973,11 @@ StyledEditWindow::SetFontColor(rgb_color *color)
fTextView->GetFontAndColor(&font,&sameProperties,NULL,NULL);
fTextView->SetFontAndColor(&font, B_FONT_ALL,color);
fClean = false;
fUndoCleans = false;
fRedoCleans = false;
fRevertItem->SetEnabled(fSaveMessage != NULL);
fSaveItem->SetEnabled(true);
}/***StyledEditWindow::SetFontColor()***/
void
@ -984,5 +993,9 @@ StyledEditWindow::SetFontStyle(const char *fontFamily, const char *fontStyle)
BMenuItem *superItem;
superItem= fMenuBar->FindItem(fontFamily);
superItem->SetMarked(true);
fClean = false;
fUndoCleans = false;
fRedoCleans = false;
fRevertItem->SetEnabled(fSaveMessage != NULL);
fSaveItem->SetEnabled(true);
}/***StyledEditWindow::SetFontStyle()***/