Kaydet (Commit) 8a1ac048 authored tarafından Robert Dargaud's avatar Robert Dargaud Kaydeden (comit) Katarina Machalkova

Unlimited number of conditions for conditional formatting

(libs-core part, style preview window)
üst cf4a55dd
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include <vcl/window.hxx> #include <vcl/window.hxx>
#include <editeng/svxfont.hxx> #include <editeng/svxfont.hxx>
#include "svx/svxdllapi.h" #include "svx/svxdllapi.h"
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
...@@ -61,6 +63,8 @@ public: ...@@ -61,6 +63,8 @@ public:
virtual void StateChanged( StateChangedType nStateChange ); virtual void StateChanged( StateChangedType nStateChange );
virtual void DataChanged( const DataChangedEvent& rDCEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt );
void Init( const SfxItemSet& rSet );
// for reasons of efficiency not const // for reasons of efficiency not const
SvxFont& GetFont(); SvxFont& GetFont();
const SvxFont& GetFont() const; const SvxFont& GetFont() const;
...@@ -74,6 +78,8 @@ public: ...@@ -74,6 +78,8 @@ public:
void ResetColor(); void ResetColor();
void SetBackColor( const Color& rColor ); void SetBackColor( const Color& rColor );
void UseResourceText( sal_Bool bUse = sal_True ); void UseResourceText( sal_Bool bUse = sal_True );
void SetDrawBaseLine( sal_Bool bSet = sal_True );
void SetPreviewBackgroundToCharacter( sal_Bool bSet = sal_True );
void Paint( const Rectangle& ); void Paint( const Rectangle& );
sal_Bool IsTwoLines() const; sal_Bool IsTwoLines() const;
...@@ -89,6 +95,12 @@ public: ...@@ -89,6 +95,12 @@ public:
void SetPreviewText( const ::rtl::OUString& rString ); void SetPreviewText( const ::rtl::OUString& rString );
void SetFontNameAsPreviewText(); void SetFontNameAsPreviewText();
//void SetFontSize( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont );
void SetFont( const SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont );
void SetFontStyle( const SfxItemSet& rSet, sal_uInt16 nSlotPosture, sal_uInt16 nSlotWeight, SvxFont& rFont ); // posture/weight
void SetFontWidthScale( const SfxItemSet& rSet );
void SetFontEscapement( sal_uInt8 nProp, sal_uInt8 nEscProp, short nEsc );
void SetFromItemSet( const SfxItemSet &rSet, void SetFromItemSet( const SfxItemSet &rSet,
bool bPreviewBackgroundToCharacter = false ); bool bPreviewBackgroundToCharacter = false );
}; };
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment