42 #include <svx/svxids.hrc>
43 #include <svx/strings.hrc>
46 #include <osl/diagnose.h>
53 #include <bitmaps.hlst>
78 else if (pBindings !=
nullptr)
87 "Docking3DEffects",
"svx/ui/docking3deffects.ui")
89 , m_xBtnGeo(m_xBuilder->weld_toggle_button(
"geometry"))
90 , m_xBtnRepresentation(m_xBuilder->weld_toggle_button(
"representation"))
91 , m_xBtnLight(m_xBuilder->weld_toggle_button(
"light"))
92 , m_xBtnTexture(m_xBuilder->weld_toggle_button(
"texture"))
93 , m_xBtnMaterial(m_xBuilder->weld_toggle_button(
"material"))
94 , m_xBtnUpdate(m_xBuilder->weld_toggle_button(
"update"))
95 , m_xBtnAssign(m_xBuilder->weld_button(
"assign"))
97 , m_xFLGeometrie(m_xBuilder->weld_container(
"geoframe"))
98 , m_xFtPercentDiagonal(m_xBuilder->weld_label(
"diagonalft"))
99 , m_xMtrPercentDiagonal(m_xBuilder->weld_metric_spin_button(
"diagonal",
FieldUnit::
PERCENT))
100 , m_xFtBackscale(m_xBuilder->weld_label(
"scaleddepthft"))
101 , m_xMtrBackscale(m_xBuilder->weld_metric_spin_button(
"scaleddepth",
FieldUnit::
PERCENT))
102 , m_xFtEndAngle(m_xBuilder->weld_label(
"angleft"))
103 , m_xMtrEndAngle(m_xBuilder->weld_metric_spin_button(
"angle",
FieldUnit::
DEGREE))
104 , m_xFtDepth(m_xBuilder->weld_label(
"depthft"))
105 , m_xMtrDepth(m_xBuilder->weld_metric_spin_button(
"depth",
FieldUnit::
CM))
107 , m_xFLSegments(m_xBuilder->weld_container(
"segmentsframe"))
108 , m_xNumHorizontal(m_xBuilder->weld_spin_button(
"hori"))
109 , m_xNumVertical(m_xBuilder->weld_spin_button(
"veri"))
111 , m_xFLNormals(m_xBuilder->weld_container(
"normals"))
112 , m_xBtnNormalsObj(m_xBuilder->weld_toggle_button(
"objspecific"))
113 , m_xBtnNormalsFlat(m_xBuilder->weld_toggle_button(
"flat"))
114 , m_xBtnNormalsSphere(m_xBuilder->weld_toggle_button(
"spherical"))
115 , m_xBtnNormalsInvert(m_xBuilder->weld_toggle_button(
"invertnormals"))
116 , m_xBtnTwoSidedLighting(m_xBuilder->weld_toggle_button(
"doublesidedillum"))
117 , m_xBtnDoubleSided(m_xBuilder->weld_toggle_button(
"doublesided"))
119 , m_xFLRepresentation(m_xBuilder->weld_container(
"shadingframe"))
120 , m_xLbShademode(m_xBuilder->weld_combo_box(
"mode"))
122 , m_xFLShadow(m_xBuilder->weld_container(
"shadowframe"))
123 , m_xBtnShadow3d(m_xBuilder->weld_toggle_button(
"shadow"))
124 , m_xFtSlant(m_xBuilder->weld_label(
"slantft"))
125 , m_xMtrSlant(m_xBuilder->weld_metric_spin_button(
"slant",
FieldUnit::
DEGREE))
127 , m_xFLCamera(m_xBuilder->weld_container(
"cameraframe"))
128 , m_xMtrDistance(m_xBuilder->weld_metric_spin_button(
"distance",
FieldUnit::
CM))
129 , m_xMtrFocalLength(m_xBuilder->weld_metric_spin_button(
"focal",
FieldUnit::
CM))
131 , m_xFLLight(m_xBuilder->weld_container(
"illumframe"))
132 , m_xBtnLight1(new
LightButton(m_xBuilder->weld_toggle_button(
"light1")))
133 , m_xBtnLight2(new
LightButton(m_xBuilder->weld_toggle_button(
"light2")))
134 , m_xBtnLight3(new
LightButton(m_xBuilder->weld_toggle_button(
"light3")))
135 , m_xBtnLight4(new
LightButton(m_xBuilder->weld_toggle_button(
"light4")))
136 , m_xBtnLight5(new
LightButton(m_xBuilder->weld_toggle_button(
"light5")))
137 , m_xBtnLight6(new
LightButton(m_xBuilder->weld_toggle_button(
"light6")))
138 , m_xBtnLight7(new
LightButton(m_xBuilder->weld_toggle_button(
"light7")))
139 , m_xBtnLight8(new
LightButton(m_xBuilder->weld_toggle_button(
"light8")))
148 , m_xBtnLightColor(m_xBuilder->weld_button(
"colorbutton1"))
149 , m_xLbAmbientlight(
new ColorListBox(m_xBuilder->weld_menu_button(
"ambientcolor"), [
this]{
return GetFrameWeld(); }))
150 , m_xBtnAmbientColor(m_xBuilder->weld_button(
"colorbutton2"))
152 , m_xFLTexture(m_xBuilder->weld_container(
"textureframe"))
153 , m_xBtnTexLuminance(m_xBuilder->weld_toggle_button(
"textype"))
154 , m_xBtnTexColor(m_xBuilder->weld_toggle_button(
"texcolor"))
155 , m_xBtnTexReplace(m_xBuilder->weld_toggle_button(
"texreplace"))
156 , m_xBtnTexModulate(m_xBuilder->weld_toggle_button(
"texmodulate"))
157 , m_xBtnTexObjectX(m_xBuilder->weld_toggle_button(
"texobjx"))
158 , m_xBtnTexParallelX(m_xBuilder->weld_toggle_button(
"texparallelx"))
159 , m_xBtnTexCircleX(m_xBuilder->weld_toggle_button(
"texcirclex"))
160 , m_xBtnTexObjectY(m_xBuilder->weld_toggle_button(
"texobjy"))
161 , m_xBtnTexParallelY(m_xBuilder->weld_toggle_button(
"texparallely"))
162 , m_xBtnTexCircleY(m_xBuilder->weld_toggle_button(
"texcircley"))
163 , m_xBtnTexFilter(m_xBuilder->weld_toggle_button(
"texfilter"))
165 , m_xFLMaterial(m_xBuilder->weld_container(
"materialframe"))
166 , m_xLbMatFavorites(m_xBuilder->weld_combo_box(
"favorites"))
168 , m_xBtnMatColor(m_xBuilder->weld_button(
"colorbutton3"))
170 , m_xBtnEmissionColor(m_xBuilder->weld_button(
"colorbutton4"))
172 , m_xFLMatSpecular(m_xBuilder->weld_container(
"specframe"))
174 , m_xBtnSpecularColor(m_xBuilder->weld_button(
"colorbutton5"))
175 , m_xMtrMatSpecularIntensity(m_xBuilder->weld_metric_spin_button(
"intensity", FieldUnit::PERCENT))
178 , m_xCtlPreviewWin(
new weld::CustomWeld(*m_xBuilder,
"preview", *m_xCtlPreview))
180 , m_xLightPreviewGrid(m_xBuilder->weld_container(
"lightpreviewgrid"))
181 , m_xHoriScale(m_xBuilder->weld_scale(
"horiscale"))
182 , m_xVertScale(m_xBuilder->weld_scale(
"vertscale"))
183 , m_xBtn_Corner(m_xBuilder->weld_button(
"corner"))
185 , m_xCtlLightPreviewWin(
new weld::CustomWeld(*m_xBuilder,
"lightpreview", *m_xLightPreview))
186 , m_xCtlLightPreview(
new SvxLightCtl3D(*m_xLightPreview, *m_xHoriScale, *m_xVertScale, *m_xBtn_Corner))
188 , m_xBtnConvertTo3D(m_xBuilder->weld_button(
"to3d"))
189 , m_xBtnLatheObject(m_xBuilder->weld_button(
"tolathe"))
190 , m_xBtnPerspective(m_xBuilder->weld_toggle_button(
"perspective"))
194 , pBindings(pInBindings)
196 , ePoolUnit(MapUnit::MapMM)
198 SetText(
SvxResId(RID_SVXDLG_FLOAT3D_STR_TITLE));
203 m_xCtlPreview->SetOutputSizePixel(aSize);
205 m_xLightPreviewGrid->set_size_request(aSize.Width(), aSize.Height());
206 pDrawingArea = m_xLightPreview->GetDrawingArea();
209 mpImpl->pPool =
nullptr;
212 eFUnit = pInBindings->GetDispatcher()->GetModule()->GetFieldUnit();
214 m_xMtrDepth->set_unit( eFUnit );
215 m_xMtrDistance->set_unit( eFUnit );
216 m_xMtrFocalLength->set_unit( eFUnit );
218 pControllerItem.reset(
new Svx3DCtrlItem(SID_3D_STATE, pBindings) );
220 pConvertTo3DLatheItem.reset(
new SvxConvertTo3DItem(SID_CONVERT_TO_3D_LATHE_FAST, pBindings) );
222 m_xBtnAssign->connect_clicked(
LINK(
this,
Svx3DWin, ClickAssignHdl ) );
223 m_xBtnUpdate->connect_toggled(
LINK(
this,
Svx3DWin, ClickUpdateHdl ) );
226 m_xBtnGeo->connect_clicked( aLink );
227 m_xBtnRepresentation->connect_clicked( aLink );
228 m_xBtnLight->connect_clicked( aLink );
229 m_xBtnTexture->connect_clicked( aLink );
230 m_xBtnMaterial->connect_clicked( aLink );
233 m_xBtnPerspective->connect_clicked( aLink );
234 m_xBtnConvertTo3D->connect_clicked( aLink );
235 m_xBtnLatheObject->connect_clicked( aLink );
238 m_xBtnNormalsObj->connect_clicked( aLink );
239 m_xBtnNormalsFlat->connect_clicked( aLink );
240 m_xBtnNormalsSphere->connect_clicked( aLink );
241 m_xBtnTwoSidedLighting->connect_clicked( aLink );
242 m_xBtnNormalsInvert->connect_clicked( aLink );
243 m_xBtnDoubleSided->connect_clicked( aLink );
246 m_xBtnShadow3d->connect_clicked( aLink );
249 m_xBtnLight1->connect_clicked( aLink );
250 m_xBtnLight2->connect_clicked( aLink );
251 m_xBtnLight3->connect_clicked( aLink );
252 m_xBtnLight4->connect_clicked( aLink );
253 m_xBtnLight5->connect_clicked( aLink );
254 m_xBtnLight6->connect_clicked( aLink );
255 m_xBtnLight7->connect_clicked( aLink );
256 m_xBtnLight8->connect_clicked( aLink );
259 m_xBtnTexLuminance->connect_clicked( aLink );
260 m_xBtnTexColor->connect_clicked( aLink );
261 m_xBtnTexReplace->connect_clicked( aLink );
262 m_xBtnTexModulate->connect_clicked( aLink );
263 m_xBtnTexParallelX->connect_clicked( aLink );
264 m_xBtnTexCircleX->connect_clicked( aLink );
265 m_xBtnTexObjectX->connect_clicked( aLink );
266 m_xBtnTexParallelY->connect_clicked( aLink );
267 m_xBtnTexCircleY->connect_clicked( aLink );
268 m_xBtnTexObjectY->connect_clicked( aLink );
269 m_xBtnTexFilter->connect_clicked( aLink );
273 m_xBtnLightColor->connect_clicked( aLink );
274 m_xBtnAmbientColor->connect_clicked( aLink );
275 m_xBtnMatColor->connect_clicked( aLink );
276 m_xBtnEmissionColor->connect_clicked( aLink );
277 m_xBtnSpecularColor->connect_clicked( aLink );
282 m_xLbMatFavorites->connect_changed( aLink2 );
283 m_xLbMatColor->SetSelectHdl( aLink4 );
284 m_xLbMatEmission->SetSelectHdl( aLink4 );
285 m_xLbMatSpecular->SetSelectHdl( aLink4 );
286 m_xLbLight1->SetSelectHdl( aLink4 );
287 m_xLbLight2->SetSelectHdl( aLink4 );
288 m_xLbLight3->SetSelectHdl( aLink4 );
289 m_xLbLight4->SetSelectHdl( aLink4 );
290 m_xLbLight5->SetSelectHdl( aLink4 );
291 m_xLbLight6->SetSelectHdl( aLink4 );
292 m_xLbLight7->SetSelectHdl( aLink4 );
293 m_xLbLight8->SetSelectHdl( aLink4 );
294 m_xLbAmbientlight->SetSelectHdl( aLink4 );
295 m_xLbShademode->connect_changed( aLink2 );
299 m_xMtrMatSpecularIntensity->connect_value_changed( aLink3 );
300 m_xNumHorizontal->connect_value_changed( aLink5 );
301 m_xNumVertical->connect_value_changed( aLink5 );
302 m_xMtrSlant->connect_value_changed( aLink3 );
305 m_xCtlLightPreview->SetUserSelectionChangeCallback(
LINK(
this,
Svx3DWin, ChangeSelectionCallbackHdl ));
307 aSize = GetOutputSizePixel();
308 SetMinOutputSizePixel( aSize );
314 if (pDispatcher !=
nullptr)
318 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, { &aItem });
324 aSize = get_preferred_size();
325 set_width_request(aSize.Width());
326 set_height_request(aSize.Height());
472 sal_uInt16 nWhich(aIter.FirstWhich());
477 if(SfxItemState::DONTCARE == eState)
479 else if(SfxItemState::SET == eState)
482 nWhich = aIter.NextWhich();
500 if( SfxItemState::SET == eState )
503 bool bExtrude = ( nState & 2 );
504 bool bSphere = ( nState & 4 );
505 bool bCube = ( nState & 8 );
507 bool bChart = ( nState & 32 );
518 m_xFtDepth->set_sensitive( !bCube && !bSphere );
525 if( bCube || bSphere )
533 m_xFtEndAngle->set_sensitive( !bExtrude && !bCube && !bSphere );
535 if( bExtrude || bCube || bSphere )
566 if(eState != SfxItemState::DONTCARE)
569 bBitmap = (eXFS == drawing::FillStyle_BITMAP || eXFS == drawing::FillStyle_GRADIENT || eXFS == drawing::FillStyle_HATCH);
579 if(eState != SfxItemState::DONTCARE)
604 if( eState != SfxItemState::DONTCARE )
607 if( nValue != static_cast<sal_uInt32>(
m_xNumVertical->get_value()) )
629 if( eState != SfxItemState::DONTCARE )
633 if( nValue != nValue2 )
656 if( eState != SfxItemState::DONTCARE )
680 if( eState != SfxItemState::DONTCARE )
705 if( eState != SfxItemState::DONTCARE )
730 if( eState != SfxItemState::DONTCARE )
751 if( eState != SfxItemState::DONTCARE )
780 if( eState != SfxItemState::DONTCARE )
802 if( eState != SfxItemState::DONTCARE )
825 if( eState != SfxItemState::DONTCARE )
845 if( eState != SfxItemState::DONTCARE )
869 if( eState != SfxItemState::DONTCARE )
872 if( nValue !=
m_xMtrSlant->get_value(FieldUnit::DEGREE) )
889 if( eState != SfxItemState::DONTCARE )
893 if( nValue != nValue2 )
913 if( eState != SfxItemState::DONTCARE )
917 if( nValue != nValue2 )
939 if( eState != SfxItemState::DONTCARE )
959 if( eState != SfxItemState::DONTCARE )
980 if( eState != SfxItemState::DONTCARE )
987 if( eState != SfxItemState::DONTCARE )
1007 if( eState != SfxItemState::DONTCARE )
1028 if( eState != SfxItemState::DONTCARE )
1035 if( eState != SfxItemState::DONTCARE )
1055 if( eState != SfxItemState::DONTCARE )
1076 if( eState != SfxItemState::DONTCARE )
1083 if( eState != SfxItemState::DONTCARE )
1103 if( eState != SfxItemState::DONTCARE )
1124 if( eState != SfxItemState::DONTCARE )
1131 if( eState != SfxItemState::DONTCARE )
1151 if( eState != SfxItemState::DONTCARE )
1172 if( eState != SfxItemState::DONTCARE )
1179 if( eState != SfxItemState::DONTCARE )
1199 if( eState != SfxItemState::DONTCARE )
1220 if( eState != SfxItemState::DONTCARE )
1227 if( eState != SfxItemState::DONTCARE )
1247 if( eState != SfxItemState::DONTCARE )
1268 if( eState != SfxItemState::DONTCARE )
1275 if( eState != SfxItemState::DONTCARE )
1295 if( eState != SfxItemState::DONTCARE )
1316 if( eState != SfxItemState::DONTCARE )
1323 if( eState != SfxItemState::DONTCARE )
1348 if( eState != SfxItemState::DONTCARE )
1373 if( eState != SfxItemState::DONTCARE )
1398 if( eState != SfxItemState::DONTCARE )
1427 if( eState != SfxItemState::DONTCARE )
1456 if( eState != SfxItemState::DONTCARE )
1483 if( eState != SfxItemState::DONTCARE )
1504 if( eState != SfxItemState::DONTCARE )
1525 if( eState != SfxItemState::DONTCARE )
1546 if( eState != SfxItemState::DONTCARE )
1568 if( eState != SfxItemState::DONTCARE )
1613 sal_uInt32 nNumber(0xffffffff);
1632 if(nNumber != 0xffffffff)
1654 if(SfxItemState::DONTCARE == eState)
1656 else if(SfxItemState::SET == eState)
1672 rAttrs.
Put(Svx3DPerspectiveItem(nValue));
1681 OSL_FAIL(
"No Pool in GetAttr()! May be incompatible to drviewsi.cxx ?" );
1763 rAttrs.
Put(Svx3DNormalsKindItem(nValue));
1792 rAttrs.
Put(Svx3DShadeModeItem(nValue));
1814 sal_uInt16 nValue2 =
static_cast<sal_uInt16
>(
m_xMtrSlant->get_value(FieldUnit::DEGREE));
2052 if( nValue == 1 || nValue == 3 )
2053 rAttrs.
Put(Svx3DTextureKindItem(nValue));
2065 if( nValue == 1 || nValue == 2 )
2066 rAttrs.
Put(Svx3DTextureModeItem(nValue));
2080 rAttrs.
Put(Svx3DTextureProjectionXItem(nValue));
2094 rAttrs.
Put(Svx3DTextureProjectionYItem(nValue));
2152 Size aWinSize( GetOutputSizePixel() );
2199 bUpdate = m_xBtnUpdate->get_active();
2204 if (pDispatcher !=
nullptr)
2208 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, { &aItem });
2220 if (pDispatcher !=
nullptr)
2224 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, { &aItem });
2231 bool bUpdatePreview = m_xBtnLight->get_active();
2233 m_xBtnGeo->set_active(m_xBtnGeo.get() == &rBtn);
2234 m_xBtnRepresentation->set_active(m_xBtnRepresentation.get() == &rBtn);
2235 m_xBtnLight->set_active(m_xBtnLight.get() == &rBtn);
2236 m_xBtnTexture->set_active(m_xBtnTexture.get() == &rBtn);
2237 m_xBtnMaterial->set_active(m_xBtnMaterial.get() == &rBtn);
2239 if( m_xBtnGeo->get_active() )
2241 if( m_xBtnRepresentation->get_active() )
2243 if( m_xBtnLight->get_active() )
2245 if( m_xBtnTexture->get_active() )
2247 if( m_xBtnMaterial->get_active() )
2253 m_xFLSegments->show();
2254 m_xFLGeometrie->show();
2255 m_xFLNormals->show();
2259 m_xFLSegments->hide();
2260 m_xFLGeometrie->hide();
2261 m_xFLNormals->hide();
2267 m_xFLShadow->show();
2268 m_xFLCamera->show();
2269 m_xFLRepresentation->show();
2273 m_xFLShadow->hide();
2274 m_xFLCamera->hide();
2275 m_xFLRepresentation->hide();
2287 m_xLightPreviewGrid->show();
2288 m_xCtlPreview->Hide();
2294 if( !m_xCtlPreview->IsVisible() )
2296 m_xCtlPreview->Show();
2297 m_xLightPreviewGrid->hide();
2303 m_xFLTexture->show();
2305 m_xFLTexture->hide();
2310 m_xFLMatSpecular->show();
2311 m_xFLMaterial->show();
2315 m_xFLMatSpecular->hide();
2316 m_xFLMaterial->hide();
2318 if( bUpdatePreview && !m_xBtnLight->get_active() )
2324 bool bUpdatePreview =
false;
2325 sal_uInt16 nSId = 0;
2327 if( &rBtn == m_xBtnConvertTo3D.get() )
2329 nSId = SID_CONVERT_TO_3D;
2331 else if( &rBtn == m_xBtnLatheObject.get() )
2333 nSId = SID_CONVERT_TO_3D_LATHE_FAST;
2336 else if( &rBtn == m_xBtnNormalsObj.get() ||
2337 &rBtn == m_xBtnNormalsFlat.get() ||
2338 &rBtn == m_xBtnNormalsSphere.get() )
2340 m_xBtnNormalsObj->set_active( &rBtn == m_xBtnNormalsObj.get() );
2341 m_xBtnNormalsFlat->set_active( &rBtn == m_xBtnNormalsFlat.get() );
2342 m_xBtnNormalsSphere->set_active( &rBtn == m_xBtnNormalsSphere.get() );
2343 bUpdatePreview =
true;
2345 else if( &rBtn == m_xBtnLight1->get_widget() ||
2346 &rBtn == m_xBtnLight2->get_widget() ||
2347 &rBtn == m_xBtnLight3->get_widget() ||
2348 &rBtn == m_xBtnLight4->get_widget() ||
2349 &rBtn == m_xBtnLight5->get_widget() ||
2350 &rBtn == m_xBtnLight6->get_widget() ||
2351 &rBtn == m_xBtnLight7->get_widget() ||
2352 &rBtn == m_xBtnLight8->get_widget() )
2362 if (pToggleBtn != m_xBtnLight1.get() && m_xBtnLight1->
get_active())
2364 m_xBtnLight1->set_active(
false );
2365 m_xBtnLight1->set_prev_active(
false);
2366 m_xLbLight1->hide();
2368 if (pToggleBtn != m_xBtnLight2.get() && m_xBtnLight2->
get_active())
2370 m_xBtnLight2->set_active(
false );
2371 m_xBtnLight2->set_prev_active(
false);
2372 m_xLbLight2->hide();
2374 if( pToggleBtn != m_xBtnLight3.get() && m_xBtnLight3->
get_active() )
2376 m_xBtnLight3->set_active(
false );
2377 m_xBtnLight3->set_prev_active(
false);
2378 m_xLbLight3->hide();
2380 if( pToggleBtn != m_xBtnLight4.get() && m_xBtnLight4->
get_active() )
2382 m_xBtnLight4->set_active(
false );
2383 m_xBtnLight4->set_prev_active(
false);
2384 m_xLbLight4->hide();
2386 if( pToggleBtn != m_xBtnLight5.get() && m_xBtnLight5->
get_active() )
2388 m_xBtnLight5->set_active(
false );
2389 m_xBtnLight5->set_prev_active(
false);
2390 m_xLbLight5->hide();
2392 if( pToggleBtn != m_xBtnLight6.get() && m_xBtnLight6->
get_active() )
2394 m_xBtnLight6->set_active(
false );
2395 m_xBtnLight6->set_prev_active(
false);
2396 m_xLbLight6->hide();
2398 if( pToggleBtn != m_xBtnLight7.get() && m_xBtnLight7->
get_active() )
2400 m_xBtnLight7->set_active(
false );
2401 m_xBtnLight7->set_prev_active(
false);
2402 m_xLbLight7->hide();
2404 if( pToggleBtn != m_xBtnLight8.get() && m_xBtnLight8->
get_active() )
2406 m_xBtnLight8->set_active(
false );
2407 m_xBtnLight8->set_prev_active(
false);
2408 m_xLbLight8->hide();
2418 m_xBtnLightColor->set_sensitive( bEnable );
2421 ClickLight(*pToggleBtn);
2422 bUpdatePreview =
true;
2425 else if( &rBtn == m_xBtnTexLuminance.get() ||
2426 &rBtn == m_xBtnTexColor.get() )
2428 m_xBtnTexLuminance->set_active( &rBtn == m_xBtnTexLuminance.get() );
2429 m_xBtnTexColor->set_active( &rBtn == m_xBtnTexColor.get() );
2430 bUpdatePreview =
true;
2432 else if( &rBtn == m_xBtnTexReplace.get() ||
2433 &rBtn == m_xBtnTexModulate.get() )
2435 m_xBtnTexReplace->set_active( &rBtn == m_xBtnTexReplace.get() );
2436 m_xBtnTexModulate->set_active( &rBtn == m_xBtnTexModulate.get() );
2437 bUpdatePreview =
true;
2439 else if( &rBtn == m_xBtnTexParallelX.get() ||
2440 &rBtn == m_xBtnTexCircleX.get() ||
2441 &rBtn == m_xBtnTexObjectX.get() )
2443 m_xBtnTexParallelX->set_active( &rBtn == m_xBtnTexParallelX.get() );
2444 m_xBtnTexCircleX->set_active( &rBtn == m_xBtnTexCircleX.get() );
2445 m_xBtnTexObjectX->set_active( &rBtn == m_xBtnTexObjectX.get() );
2446 bUpdatePreview =
true;
2448 else if( &rBtn == m_xBtnTexParallelY.get() ||
2449 &rBtn == m_xBtnTexCircleY.get() ||
2450 &rBtn == m_xBtnTexObjectY.get() )
2452 m_xBtnTexParallelY->set_active( &rBtn == m_xBtnTexParallelY.get() );
2453 m_xBtnTexCircleY->set_active( &rBtn == m_xBtnTexCircleY.get() );
2454 m_xBtnTexObjectY->set_active( &rBtn == m_xBtnTexObjectY.get() );
2455 bUpdatePreview =
true;
2457 else if (&rBtn == m_xBtnShadow3d.get())
2459 m_xFtSlant->set_sensitive( m_xBtnShadow3d->get_active() );
2460 m_xMtrSlant->set_sensitive( m_xBtnShadow3d->get_active() );
2461 bUpdatePreview =
true;
2466 bUpdatePreview =
true;
2472 if (pDispatcher !=
nullptr)
2476 SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, { &aItem });
2479 else if( bUpdatePreview )
2488 if( &rBtn == m_xBtnLightColor.get() )
2489 pLb = GetCLbByButton();
2490 else if( &rBtn == m_xBtnAmbientColor.get() )
2491 pLb = m_xLbAmbientlight.get();
2492 else if( &rBtn == m_xBtnMatColor.get() )
2493 pLb = m_xLbMatColor.get();
2494 else if( &rBtn == m_xBtnEmissionColor.get() )
2495 pLb = m_xLbMatEmission.get();
2497 pLb = m_xLbMatSpecular.get();
2505 LBSelectColor(pLb, aColor);
2506 SelectColorHdl(*pLb);
2512 bool bUpdatePreview =
false;
2515 if (&rListBox == m_xLbMatFavorites.get())
2520 sal_uInt16 nSpecIntens = 20;
2522 switch( m_xLbMatFavorites->get_active() )
2526 aColObj =
Color(230,230,255);
2527 aColEmis =
Color(10,10,30);
2528 aColSpec =
Color(200,200,200);
2535 aColObj =
Color(230,255,0);
2536 aColEmis =
Color(51,0,0);
2537 aColSpec =
Color(255,255,240);
2544 aColObj =
Color(36,117,153);
2545 aColEmis =
Color(18,30,51);
2546 aColSpec =
Color(230,230,255);
2553 aColObj =
Color(255,48,57);
2554 aColEmis =
Color(35,0,0);
2555 aColSpec =
Color(179,202,204);
2562 aColObj =
Color(153,71,1);
2563 aColEmis =
Color(21,22,0);
2564 aColSpec =
Color(255,255,153);
2569 LBSelectColor( m_xLbMatColor.get(), aColObj );
2570 LBSelectColor( m_xLbMatEmission.get(), aColEmis );
2571 LBSelectColor( m_xLbMatSpecular.get(), aColSpec );
2572 m_xMtrMatSpecularIntensity->set_value(nSpecIntens, FieldUnit::PERCENT);
2574 bUpdatePreview =
true;
2576 else if (&rListBox == m_xLbShademode.get())
2577 bUpdatePreview =
true;
2579 if( bUpdatePreview )
2585 bool bUpdatePreview =
false;
2587 if( &rListBox == m_xLbMatColor.get() ||
2588 &rListBox == m_xLbMatEmission.get() ||
2589 &rListBox == m_xLbMatSpecular.get() )
2591 m_xLbMatFavorites->set_active( 0 );
2592 bUpdatePreview =
true;
2595 else if( &rListBox == m_xLbAmbientlight.get() )
2597 bUpdatePreview =
true;
2599 else if( &rListBox == m_xLbLight1.get() ||
2600 &rListBox == m_xLbLight2.get() ||
2601 &rListBox == m_xLbLight3.get() ||
2602 &rListBox == m_xLbLight4.get() ||
2603 &rListBox == m_xLbLight5.get() ||
2604 &rListBox == m_xLbLight6.get() ||
2605 &rListBox == m_xLbLight7.get() ||
2606 &rListBox == m_xLbLight8.get() )
2608 bUpdatePreview =
true;
2611 if( bUpdatePreview )
2633 switch(nLightSource)
2653 const sal_uInt32 nLight(m_xCtlLightPreview->GetSvx3DLightControl().GetSelectedLight());
2658 case 0: pBtn = m_xBtnLight1->get_widget();
break;
2659 case 1: pBtn = m_xBtnLight2->get_widget();
break;
2660 case 2: pBtn = m_xBtnLight3->get_widget();
break;
2661 case 3: pBtn = m_xBtnLight4->get_widget();
break;
2662 case 4: pBtn = m_xBtnLight5->get_widget();
break;
2663 case 5: pBtn = m_xBtnLight6->get_widget();
break;
2664 case 6: pBtn = m_xBtnLight7->get_widget();
break;
2665 case 7: pBtn = m_xBtnLight8->get_widget();
break;
2674 if( m_xBtnLight1->get_active() )
2676 m_xBtnLight1->set_active(
false );
2677 m_xLbLight1->set_sensitive(
false );
2679 else if( m_xBtnLight2->get_active() )
2681 m_xBtnLight2->set_active(
false );
2682 m_xLbLight2->set_sensitive(
false );
2684 else if( m_xBtnLight3->get_active() )
2686 m_xBtnLight3->set_active(
false );
2687 m_xLbLight3->set_sensitive(
false );
2689 else if( m_xBtnLight4->get_active() )
2691 m_xBtnLight4->set_active(
false );
2692 m_xLbLight4->set_sensitive(
false );
2694 else if( m_xBtnLight5->get_active() )
2696 m_xBtnLight5->set_active(
false );
2697 m_xLbLight5->set_sensitive(
false );
2699 else if( m_xBtnLight6->get_active() )
2701 m_xBtnLight6->set_active(
false );
2702 m_xLbLight6->set_sensitive(
false );
2704 else if( m_xBtnLight7->get_active() )
2706 m_xBtnLight7->set_active(
false );
2707 m_xLbLight7->set_sensitive(
false );
2709 else if( m_xBtnLight8->get_active() )
2711 m_xBtnLight8->set_active(
false );
2712 m_xLbLight8->set_sensitive(
false );
2714 m_xBtnLightColor->set_sensitive(
false );
2720 OUString lcl_makeColorName(
const Color& rColor)
2723 OUString::number(rColor.
GetRed()) +
2726 OUString::number(rColor.
GetGreen()) +
2729 OUString::number(rColor.
GetBlue());
2738 pLb->
SelectEntry(std::make_pair(rColor, lcl_makeColorName(rColor)));
2785 sal_uInt16 nLight = 8;
2811 if( pBtn ==
nullptr )
2911 bool bNewState = (eState != SfxItemState::DISABLED);
2916 if (pDispatcher !=
nullptr)
2920 SfxCallMode::ASYNCHRON|SfxCallMode::RECORD, { &aItem });
2926 : m_xButton(
std::move(xButton))
2928 , m_bButtonPrevActive(false)
2930 m_xButton->set_from_icon_name(RID_SVXBMP_LAMP_OFF);
2939 m_xButton->set_from_icon_name(RID_SVXBMP_LAMP_ON);
2941 m_xButton->set_from_icon_name(RID_SVXBMP_LAMP_OFF);
#define LINK(Instance, Class, Member)
std::unique_ptr< SfxItemSet > mpRemember2DAttributes
SvxColorItem makeSvx3DLightcolor7Item(const Color &rCol)
void SetFieldUnit(weld::MetricSpinButton &rField, FieldUnit eUnit, bool bAll)
std::unique_ptr< weld::ToggleButton > m_xBtnTexModulate
std::unique_ptr< weld::Container > m_xFLShadow
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
std::unique_ptr< weld::ToggleButton > m_xBtnTexFilter
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_4(SDRATTR_3DSCENE_FIRST+16)
SfxBoolItem makeSvx3DLightOnOff2Item(bool bVal)
SfxBoolItem makeSvx3DDoubleSidedItem(bool bVal)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_5(SDRATTR_3DSCENE_FIRST+25)
constexpr TypedWhichId< Svx3DTextureKindItem > SDRATTR_3DOBJ_TEXTURE_KIND(SDRATTR_3DOBJ_FIRST+16)
SVX_DLLPRIVATE ColorListBox * GetCLbByButton(const LightButton *pBtn=nullptr)
constexpr TypedWhichId< Svx3DTextureProjectionXItem > SDRATTR_3DOBJ_TEXTURE_PROJ_X(SDRATTR_3DOBJ_FIRST+9)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DOBJ_MAT_SPECULAR(SDRATTR_3DOBJ_FIRST+14)
std::unique_ptr< weld::ToggleButton > m_xBtnUpdate
IMPL_LINK_NOARG(Svx3DWin, ClickUpdateHdl, weld::ToggleButton &, void)
Svx3DWin(SfxBindings *pBindings, SfxChildWindow *pCW, vcl::Window *pParent)
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_VERT_SEGS(SDRATTR_3DOBJ_FIRST+4)
std::unique_ptr< LightButton > m_xBtnLight6
std::unique_ptr< weld::ToggleButton > m_xBtnShadow3d
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_2(SDRATTR_3DSCENE_FIRST+22)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_NORMALS_INVERT(SDRATTR_3DOBJ_FIRST+8)
std::unique_ptr< weld::Container > m_xFLNormals
virtual void StateChanged(sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem *pState) override
std::unique_ptr< weld::ToggleButton > m_xBtnNormalsSphere
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_5(SDRATTR_3DSCENE_FIRST+8)
std::unique_ptr< weld::ToggleButton > m_xBtnMaterial
std::unique_ptr< weld::Label > m_xFtBackscale
SfxDispatcher * GetDispatcher()
std::unique_ptr< weld::SpinButton > m_xNumVertical
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
virtual void StateChanged(sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem *pState) override
std::unique_ptr< weld::Label > m_xFtEndAngle
std::unique_ptr< FmFormModel > pModel
constexpr OUStringLiteral PERCENT(u"Percent")
void InvalidateItem(sal_uInt16 nWhich)
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY(SDRATTR_3DOBJ_FIRST+15)
std::unique_ptr< weld::ToggleButton > m_xBtnDoubleSided
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_DOUBLE_SIDED(SDRATTR_3DOBJ_FIRST+6)
std::unique_ptr< ColorListBox > m_xLbAmbientlight
void SetWindow(const VclPtr< vcl::Window > &p)
constexpr TypedWhichId< XLineStyleItem > XATTR_LINESTYLE(XATTR_LINE_FIRST)
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_DEPTH(SDRATTR_3DOBJ_FIRST+2)
std::unique_ptr< weld::ToggleButton > m_xBtnLight
std::unique_ptr< weld::Button > m_xBtn_Corner
SVX_DLLPRIVATE void Construct()
SvxColorItem makeSvx3DLightcolor2Item(const Color &rCol)
SfxUInt32Item makeSvx3DVerticalSegmentsItem(sal_uInt32 nVal)
void ClickLight(const LightButton &rBtn)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_7(SDRATTR_3DSCENE_FIRST+19)
static SVX_DLLPRIVATE void LBSelectColor(ColorListBox *pLb, const Color &rColor)
std::unique_ptr< ColorListBox > m_xLbMatSpecular
SfxUInt16Item makeSvx3DMaterialSpecularIntensityItem(sal_uInt16 nVal)
class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Svx3DNormalsKindItem SfxBoolItem makeSvx3DNormalsInvertItem(bool bVal)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_2(SDRATTR_3DSCENE_FIRST+14)
constexpr sal_uInt16 SDRATTR_START(XATTR_START)
std::unique_ptr< weld::MetricSpinButton > m_xMtrPercentDiagonal
constexpr TypedWhichId< Svx3DTextureModeItem > SDRATTR_3DOBJ_TEXTURE_MODE(SDRATTR_3DOBJ_FIRST+17)
Svx3DCtrlItem(sal_uInt16, SfxBindings *)
std::unique_ptr< weld::Button > m_xBtnAssign
FieldUnit GetModuleFieldUnit(const SfxItemSet &rSet)
std::unique_ptr< weld::Label > m_xFtDepth
SfxBoolItem makeSvx3DLightOnOff7Item(bool bVal)
constexpr tools::Long Width() const
SfxUInt16Item makeSvx3DPercentDiagonalItem(sal_uInt16 nVal)
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DSCENE_DISTANCE(SDRATTR_3DSCENE_FIRST+1)
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DSCENE_SHADOW_SLANT(SDRATTR_3DSCENE_FIRST+29)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_3(SDRATTR_3DSCENE_FIRST+6)
std::unique_ptr< weld::MetricSpinButton > m_xMtrDistance
std::unique_ptr< weld::ToggleButton > m_xBtnTexCircleY
OUString SvxResId(const char *pId)
short Execute(weld::Window *pParent)
std::unique_ptr< weld::Container > m_xFLSegments
SVX_DLLPRIVATE sal_uInt16 GetLightSource(const LightButton *pBtn)
std::unique_ptr< weld::ToggleButton > m_xBtnTwoSidedLighting
SfxBoolItem makeSvx3DLightOnOff1Item(bool bVal)
class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Svx3DTextureKindItem final class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Svx3DTextureModeItem final SfxBoolItem makeSvx3DTextureFilterItem(bool bVal)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_7(SDRATTR_3DSCENE_FIRST+27)
std::unique_ptr< Svx3DWinImpl > mpImpl
std::unique_ptr< weld::Button > m_xBtnAmbientColor
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_6(SDRATTR_3DSCENE_FIRST+26)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_6(SDRATTR_3DSCENE_FIRST+18)
Svx3DChildWindow(vcl::Window *, sal_uInt16, SfxBindings *, SfxChildWinInfo *)
std::unique_ptr< weld::Button > m_xBtnConvertTo3D
virtual OutputDevice & get_ref_device()=0
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_1(SDRATTR_3DSCENE_FIRST+13)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_SHADOW(SDRATTR_SHADOW_FIRST+0)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_1(SDRATTR_3DSCENE_FIRST+4)
std::unique_ptr< weld::ToggleButton > m_xBtnTexObjectY
sal_uInt8 GetBlue() const
SvxColorItem makeSvx3DMaterialSpecularItem(const Color &rCol)
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_HORZ_SEGS(SDRATTR_3DOBJ_FIRST+3)
std::unique_ptr< weld::CustomWeld > m_xCtlLightPreviewWin
std::unique_ptr< SvxConvertTo3DItem > pConvertTo3DLatheItem
void SetColor(const Color &rColor)
std::unique_ptr< weld::ToggleButton > m_xBtnPerspective
std::unique_ptr< weld::ToggleButton > m_xBtnTexCircleX
std::unique_ptr< ColorListBox > m_xLbLight3
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_TEXTURE_FILTER(SDRATTR_3DOBJ_FIRST+18)
std::unique_ptr< weld::ToggleButton > m_xBtnTexParallelX
void SelectEntry(const NamedColor &rColor)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_3(SDRATTR_3DSCENE_FIRST+15)
std::unique_ptr< ColorListBox > m_xLbMatEmission
std::unique_ptr< weld::MetricSpinButton > m_xMtrEndAngle
std::unique_ptr< Svx3DCtrlItem > pControllerItem
SfxUInt32Item makeSvx3DFocalLengthItem(sal_uInt32 nVal)
SvxConvertTo3DItem(sal_uInt16 nId, SfxBindings *pBindings)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
#define DBG_ASSERT(sCon, aError)
std::unique_ptr< LightButton > m_xBtnLight8
std::unique_ptr< LightButton > m_xBtnLight3
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_7(SDRATTR_3DSCENE_FIRST+10)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_1(SDRATTR_3DSCENE_FIRST+21)
std::unique_ptr< weld::Container > m_xFLMatSpecular
std::unique_ptr< weld::Container > m_xFLLight
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_5(SDRATTR_3DSCENE_FIRST+17)
class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Svx3DPerspectiveItem SfxUInt32Item makeSvx3DDistanceItem(sal_uInt32 nVal)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_TWO_SIDED_LIGHTING(SDRATTR_3DSCENE_FIRST+3)
SVX_DLLPRIVATE LightButton * GetLbByButton(const weld::Button *pBtn)
std::unique_ptr< weld::Label > m_xFtPercentDiagonal
std::unique_ptr< LightButton > m_xBtnLight2
std::unique_ptr< LightButton > m_xBtnLight4
int GetCoreValue(const weld::MetricSpinButton &rField, MapUnit eUnit)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_AMBIENTCOLOR(SDRATTR_3DSCENE_FIRST+12)
std::unique_ptr< LightButton > m_xBtnLight1
std::unique_ptr< LightButton > m_xBtnLight7
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_8(SDRATTR_3DSCENE_FIRST+20)
std::unique_ptr< ColorListBox > m_xLbLight4
SfxUInt16Item makeSvx3DBackscaleItem(sal_uInt16 nVal)
std::unique_ptr< ColorListBox > m_xLbLight5
SfxBindings & GetBindings()
constexpr sal_uInt16 SDRATTR_3D_LAST(SDRATTR_3DSCENE_LAST)
std::unique_ptr< weld::ToggleButton > m_xBtnGeo
const Size & GetMinOutputSizePixel() const
SVX_DLLPRIVATE void Reset()
std::unique_ptr< weld::ToggleButton > m_xBtnNormalsObj
std::unique_ptr< ColorListBox > m_xLbLight8
IMPL_LINK(Svx3DWin, ClickViewTypeHdl, weld::Button &, rBtn, void)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_8(SDRATTR_3DSCENE_FIRST+28)
virtual void Resize() override
SfxUInt32Item makeSvx3DHorizontalSegmentsItem(sal_uInt32 nVal)
constexpr TypedWhichId< Svx3DPerspectiveItem > SDRATTR_3DSCENE_PERSPECTIVE(SDRATTR_3DSCENE_FIRST+0)
std::unique_ptr< weld::MetricSpinButton > m_xMtrMatSpecularIntensity
virtual ~Svx3DWin() override
std::unique_ptr< ColorListBox > m_xLbLight7
void SetMetricValue(weld::MetricSpinButton &rField, int nCoreValue, MapUnit eUnit)
std::unique_ptr< weld::Container > m_xFLMaterial
SfxItemPool * GetPool() const
SvxColorItem makeSvx3DLightcolor1Item(const Color &rCol)
const Color & GetColor() const
std::unique_ptr< weld::MetricSpinButton > m_xMtrSlant
std::unique_ptr< weld::ToggleButton > m_xBtnRepresentation
std::unique_ptr< ColorListBox > m_xLbMatColor
Point LogicToPixel(const Point &rLogicPt) const
std::unique_ptr< weld::ToggleButton > m_xBtnTexLuminance
sal_uInt8 GetGreen() const
SfxUInt32Item makeSvx3DDepthItem(sal_uInt32 nVal)
SvxColorItem makeSvx3DLightcolor4Item(const Color &rCol)
void Update(SfxItemSet const &rSet)
SvxColorItem makeSvx3DLightcolor8Item(const Color &rCol)
SvxColorItem makeSvx3DMaterialEmissionItem(const Color &rCol)
std::unique_ptr< Svx3DPreviewControl > m_xCtlPreview
SvxColorItem makeSvx3DAmbientcolorItem(const Color &rCol)
void GetAttr(SfxItemSet &rSet)
virtual void dispose() override
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr sal_uInt16 SDRATTR_SHADOW_LAST(SDRATTR_SHADOWBLUR)
std::unique_ptr< weld::MetricSpinButton > m_xMtrBackscale
std::unique_ptr< weld::MetricSpinButton > m_xMtrFocalLength
void Initialize(SfxChildWinInfo *pInfo)
std::unique_ptr< weld::ToggleButton > m_xBtnTexParallelY
std::unique_ptr< weld::Button > m_xBtnMatColor
static SfxViewFrame * Current()
std::unique_ptr< weld::ComboBox > m_xLbShademode
Color const & GetSelectEntryColor() const
SfxBoolItem makeSvx3DLightOnOff4Item(bool bVal)
std::unique_ptr< Svx3DLightControl > m_xLightPreview
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DSCENE_FOCAL_LENGTH(SDRATTR_3DSCENE_FIRST+2)
std::unique_ptr< SvxConvertTo3DItem > pConvertTo3DItem
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DOBJ_BACKSCALE(SDRATTR_3DOBJ_FIRST+1)
constexpr tools::Long Height() const
std::unique_ptr< weld::Scale > m_xVertScale
std::unique_ptr< weld::CustomWeld > m_xCtlPreviewWin
class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Svx3DTextureProjectionXItem class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) Svx3DTextureProjectionYItem SfxBoolItem makeSvx3DShadow3DItem(bool bVal)
std::unique_ptr< weld::Widget > m_xLightPreviewGrid
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_WHITE
SfxUInt32Item makeSvx3DEndAngleItem(sal_uInt32 nVal)
SfxBoolItem makeSvx3DLightOnOff8Item(bool bVal)
static VclPtr< reference_type > Create(Arg &&...arg)
std::unique_ptr< weld::Container > m_xFLRepresentation
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_3(SDRATTR_3DSCENE_FIRST+23)
std::unique_ptr< ColorListBox > m_xLbLight1
std::unique_ptr< weld::MetricSpinButton > m_xMtrDepth
SfxBoolItem makeSvx3DLightOnOff3Item(bool bVal)
std::unique_ptr< weld::ToggleButton > m_xBtnTexObjectX
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DOBJ_PERCENT_DIAGONAL(SDRATTR_3DOBJ_FIRST+0)
void set_sensitive(bool sensitive)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_8(SDRATTR_3DSCENE_FIRST+11)
std::unique_ptr< weld::ToggleButton > m_xBtnTexColor
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
SdrOnOffItem makeSdrShadowItem(bool bShadow)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_6(SDRATTR_3DSCENE_FIRST+9)
std::unique_ptr< weld::Label > m_xFtSlant
std::unique_ptr< weld::Button > m_xBtnLightColor
std::unique_ptr< weld::ToggleButton > m_xBtnNormalsFlat
std::unique_ptr< SvxLightCtl3D > m_xCtlLightPreview
std::unique_ptr< weld::Container > m_xFLGeometrie
std::unique_ptr< weld::ToggleButton > m_xBtnTexture
constexpr sal_uInt16 SDRATTR_3D_FIRST(SDRATTR_GRAF_LAST+1)
SfxBoolItem makeSvx3DTwoSidedLightingItem(bool bVal)
std::unique_ptr< ColorListBox > m_xLbLight2
SfxDispatcher * GetDispatcher() const
SvxColorItem makeSvx3DLightcolor3Item(const Color &rCol)
SfxBoolItem makeSvx3DLightOnOff5Item(bool bVal)
constexpr TypedWhichId< Svx3DShadeModeItem > SDRATTR_3DSCENE_SHADE_MODE(SDRATTR_3DSCENE_FIRST+30)
virtual void Resize() override
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_END_ANGLE(SDRATTR_3DOBJ_FIRST+5)
std::unique_ptr< weld::Button > m_xBtnEmissionColor
std::unique_ptr< weld::ToggleButton > m_xBtnTexReplace
std::unique_ptr< LightButton > m_xBtnLight5
SfxUInt16Item makeSvx3DShadowSlantItem(sal_uInt16 nVal)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_2(SDRATTR_3DSCENE_FIRST+5)
SvxColorItem makeSvx3DLightcolor6Item(const Color &rCol)
virtual void dispose() override
constexpr TypedWhichId< Svx3DNormalsKindItem > SDRATTR_3DOBJ_NORMALS_KIND(SDRATTR_3DOBJ_FIRST+7)
std::unique_ptr< weld::SpinButton > m_xNumHorizontal
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
std::unique_ptr< weld::Button > m_xBtnLatheObject
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DOBJ_MAT_EMISSION(SDRATTR_3DOBJ_FIRST+13)
SvxColorItem makeSvx3DLightcolor5Item(const Color &rCol)
std::unique_ptr< ColorListBox > m_xLbLight6
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_4(SDRATTR_3DSCENE_FIRST+7)
SFX_IMPL_DOCKINGWINDOW_WITHID(SvxFontWorkChildWindow, SID_FONTWORK)
std::unique_ptr< weld::Scale > m_xHoriScale
SfxBoolItem makeSvx3DLightOnOff6Item(bool bVal)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_4(SDRATTR_3DSCENE_FIRST+24)
std::unique_ptr< weld::Container > m_xFLTexture
std::unique_ptr< weld::ComboBox > m_xLbMatFavorites
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_SHADOW_3D(SDRATTR_3DOBJ_FIRST+11)
std::unique_ptr< weld::ToggleButton > m_xBtnNormalsInvert
std::unique_ptr< weld::Container > m_xFLCamera
std::unique_ptr< weld::Button > m_xBtnSpecularColor
constexpr TypedWhichId< Svx3DTextureProjectionYItem > SDRATTR_3DOBJ_TEXTURE_PROJ_Y(SDRATTR_3DOBJ_FIRST+10)