diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 08:45:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 09:00:34 +0100 |
commit | 856c57f20f9b07c686a854e0ccbb6ee3b0ee4791 (patch) | |
tree | 1f7e1c4b49b20f02ddb464d7e58515af8ce150b1 /dbaccess | |
parent | a498b12dc1723b072a165f8c528c377024fd4c98 (diff) |
use more Color in cppcanvas..drawinglayer
Change-Id: Ib0f15e8d4c01c1d2059cf32cc882042766d2a682
Reviewed-on: https://gerrit.libreoffice.org/50861
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/brwctrlr.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/HtmlReader.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/RtfReader.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/HtmlReader.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/RtfReader.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index a23f0f9d2437..65fded7d83a4 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -1826,7 +1826,7 @@ void SbaXDataBrowserController::ExecuteSearch() OSL_ENSURE(xModelSet.is(), "SbaXDataBrowserController::ExecuteSearch : no model set ?!"); xModelSet->setPropertyValue("DisplayIsSynchron", css::uno::Any(false)); xModelSet->setPropertyValue("AlwaysShowCursor", css::uno::Any(true)); - xModelSet->setPropertyValue("CursorColor", makeAny(sal_Int32(COL_LIGHTRED))); + xModelSet->setPropertyValue("CursorColor", makeAny(COL_LIGHTRED)); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); VclPtr<AbstractFmSearchDialog> pDialog; diff --git a/dbaccess/source/ui/inc/HtmlReader.hxx b/dbaccess/source/ui/inc/HtmlReader.hxx index 22ab02453061..89c142ae230c 100644 --- a/dbaccess/source/ui/inc/HtmlReader.hxx +++ b/dbaccess/source/ui/inc/HtmlReader.hxx @@ -41,7 +41,7 @@ namespace dbaui getTypeSelectionPageFactory() override; void TableDataOn(SvxCellHorJustify& eVal); - void TableFontOn(css::awt::FontDescriptor& _rFont,sal_Int32 &_rTextColor); + void TableFontOn(css::awt::FontDescriptor& _rFont, Color &_rTextColor); sal_Int16 GetWidthPixel( const HTMLOption& rOption ); void setTextEncoding(); void fetchOptions(); diff --git a/dbaccess/source/ui/inc/RtfReader.hxx b/dbaccess/source/ui/inc/RtfReader.hxx index 57a13497e590..c24ca3817c9a 100644 --- a/dbaccess/source/ui/inc/RtfReader.hxx +++ b/dbaccess/source/ui/inc/RtfReader.hxx @@ -29,7 +29,7 @@ namespace dbaui { class ORTFReader final : public SvRTFParser , public ODatabaseExport { - std::vector<sal_Int32> m_vecColor; + std::vector<Color> m_vecColor; bool CreateTable(int nToken); virtual void NextToken( int nToken ) override; // base class diff --git a/dbaccess/source/ui/misc/HtmlReader.cxx b/dbaccess/source/ui/misc/HtmlReader.cxx index e195bc716b4f..ca24a9f1ea4e 100644 --- a/dbaccess/source/ui/misc/HtmlReader.cxx +++ b/dbaccess/source/ui/misc/HtmlReader.cxx @@ -320,7 +320,7 @@ void OHTMLReader::TableDataOn(SvxCellHorJustify& eVal) } } -void OHTMLReader::TableFontOn(FontDescriptor& _rFont,sal_Int32 &_rTextColor) +void OHTMLReader::TableFontOn(FontDescriptor& _rFont, Color &_rTextColor) { const HTMLOptions& rHtmlOptions = GetOptions(); for (const auto & rOption : rHtmlOptions) @@ -331,7 +331,7 @@ void OHTMLReader::TableFontOn(FontDescriptor& _rFont,sal_Int32 &_rTextColor) { Color aColor; rOption.GetColor( aColor ); - _rTextColor = sal_Int32(aColor.GetRGBColor()); + _rTextColor = aColor.GetRGBColor(); } break; case HtmlOptionId::FACE : @@ -401,7 +401,7 @@ bool OHTMLReader::CreateTable(HtmlTokenId nToken) OUString aTableName; FontDescriptor aFont = VCLUnoHelper::CreateFontDescriptor(Application::GetSettings().GetStyleSettings().GetAppFont()); - sal_Int32 nTextColor = 0; + Color nTextColor; do { switch (nToken) diff --git a/dbaccess/source/ui/misc/RtfReader.cxx b/dbaccess/source/ui/misc/RtfReader.cxx index ed0b2da1cd3e..0c0d6d6edc65 100644 --- a/dbaccess/source/ui/misc/RtfReader.cxx +++ b/dbaccess/source/ui/misc/RtfReader.cxx @@ -122,7 +122,7 @@ void ORTFReader::NextToken( int nToken ) nTmpToken2 = GetNextToken(); } while(aToken[0] != ';' && eState != SvParserState::Error && eState != SvParserState::Accepted); - m_vecColor.push_back(sal_uInt32(aColor.GetRGBColor())); + m_vecColor.push_back(aColor.GetRGBColor()); nTmpToken2 = GetNextToken(); } while(nTmpToken2 == RTF_RED && eState != SvParserState::Error && eState != SvParserState::Accepted); |