diff options
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index a0d401eb4f..21941e26fa 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -60,6 +60,7 @@ #include <svx/svdopath.hxx> #include <svx/sdr/contact/objectcontactofobjlistpainter.hxx> #include <svx/sdr/contact/displayinfo.hxx> +#include "linectrl.hrc" #define OUTPUT_DRAWMODE_COLOR (DRAWMODE_DEFAULT) #define OUTPUT_DRAWMODE_CONTRAST (DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT) @@ -1774,6 +1775,30 @@ void LineLB::Fill( const XDashList* pList ) SetUpdateMode( TRUE ); } +void LineLB::FillStyles() +{ + ResMgr& rMgr = DIALOG_MGR(); + + // Linienstile + Clear(); + InsertEntry( String( ResId( RID_SVXSTR_INVISIBLE, rMgr ) ) ); + + const StyleSettings& rStyles = Application::GetSettings().GetStyleSettings(); + Bitmap aBitmap ( SVX_RES ( RID_SVXCTRL_LINECTRL ) ); + Color aSourceColors[2]; + Color aDestColors[2]; + + aSourceColors[0] = Color( COL_WHITE ); + aSourceColors[1] = Color( COL_BLACK ); + + aDestColors[0] = rStyles.GetFieldColor(); + aDestColors[1] = rStyles.GetFieldTextColor(); + + aBitmap.Replace ( aSourceColors, aDestColors, 2 ); + Image aSolidLine ( aBitmap ); + InsertEntry( String( ResId( RID_SVXSTR_SOLID, rMgr ) ), aSolidLine ); +} + /************************************************************************/ void LineLB::Append( XDashEntry* pEntry, Bitmap* pBmp ) |